Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vector indexing error in psi::IntegralTransform::process_spaces #1220

Merged
merged 8 commits into from Sep 23, 2018

Conversation

raimis
Copy link
Member

@raimis raimis commented Sep 5, 2018

Description

This is part of Psi4 porting to Windows (#933).

Todos

Notable points (developer or user-interest) that this PR has or will accomplish.

  • Fix vector indexing error in psi::IntegralTransform::process_spaces
  • Update passing Windows tests

Questions

  • The offending line is commented out. Does a more sophisticated fix is need here? --> @andysim will find a better fix.

Checklist

Status

  • Ready for review
  • Ready for merge

@raimis
Copy link
Member Author

raimis commented Sep 6, 2018

$ ctest -j 16 -E "dft-bench|dft-grad-disk" --timeout 3600 --output-on-failure
Test project /home/raimis/psi4_2.git/build
        Start 111: dcft4
        Start  37: cc21
        Start 104: dcft-grad1
        Start 301: pywrap-all
        Start 305: pywrap-checkrun-rhf
        Start 307: pywrap-checkrun-uhf
        Start  46: cc3
        Start  41: cc25
        Start  39: cc23
        Start  77: cc7
        Start 146: dfomp2-grad3
        Start  43: cc27
        Start 395: python-vibanalysis
        Start 241: ocepa-freq1
        Start 306: pywrap-checkrun-rohf
        Start  42: cc26
  1/412 Test  #42: cc26 .............................   Passed  687.16 sec
        Start 115: dcft8
  2/412 Test #241: ocepa-freq1 ......................   Passed  734.19 sec
        Start  40: cc24
  3/412 Test  #77: cc7 ..............................   Passed  831.63 sec
        Start  36: cc2
  4/412 Test  #43: cc27 .............................   Passed  832.91 sec
        Start 156: dft-grad-lr3
  5/412 Test #306: pywrap-checkrun-rohf .............   Passed  852.37 sec
        Start  25: cc13
  6/412 Test  #41: cc25 .............................   Passed  1089.91 sec
        Start 228: mp2-def2
  7/412 Test  #37: cc21 .............................   Passed  1123.37 sec
        Start 112: dcft5
  8/412 Test  #39: cc23 .............................   Passed  1129.22 sec
        Start  30: cc14
  9/412 Test #395: python-vibanalysis ...............   Passed  1214.88 sec
        Start 179: fsapt1
 10/412 Test #156: dft-grad-lr3 .....................   Passed  406.18 sec
        Start  29: cc13d
 11/412 Test #146: dfomp2-grad3 .....................   Passed  1250.03 sec
        Start  13: cbs-xtpl-alpha
 12/412 Test #307: pywrap-checkrun-uhf ..............   Passed  1252.06 sec
        Start 183: isapt1
 13/412 Test  #46: cc3 ..............................   Passed  1265.86 sec
        Start 360: tu6-cp-ne2
 14/412 Test #305: pywrap-checkrun-rhf ..............   Passed  1275.03 sec
        Start  45: cc29
 15/412 Test #301: pywrap-all .......................   Passed  1314.72 sec
        Start  71: cc52
 16/412 Test #115: dcft8 ............................   Passed  739.08 sec
        Start 387: cookbook-rohf-orb-rot
 17/412 Test #104: dcft-grad1 .......................   Passed  1433.59 sec
        Start 282: opt-irc-2
 18/412 Test  #25: cc13 .............................   Passed  617.71 sec
        Start 380: cc-module
 19/412 Test #228: mp2-def2 .........................   Passed  401.25 sec
        Start 113: dcft6
 20/412 Test #112: dcft5 ............................   Passed  395.55 sec
        Start  32: cc16
 21/412 Test  #45: cc29 .............................   Passed  271.40 sec
        Start  18: cbs-xtpl-func
 22/412 Test  #30: cc14 .............................   Passed  418.86 sec
        Start 182: fsapt-allterms
 23/412 Test  #71: cc52 .............................   Passed  249.62 sec
        Start 194: fd-freq-energy-large
 24/412 Test  #36: cc2 ..............................   Passed  801.63 sec
        Start 196: fd-freq-gradient-large
 25/412 Test  #29: cc13d ............................   Passed  420.42 sec
        Start 279: opt13
 26/412 Test #282: opt-irc-2 ........................   Passed  233.89 sec
        Start  11: cbs-delta-energy
 27/412 Test #183: isapt1 ...........................   Passed  423.36 sec
        Start 374: dft-custom-mgga
 28/412 Test  #40: cc24 .............................   Passed  958.14 sec
        Start  48: cc31
 29/412 Test #360: tu6-cp-ne2 .......................   Passed  427.69 sec
        Start  59: cc41
 30/412 Test #113: dcft6 ............................   Passed  223.52 sec
        Start 321: sapt6
 31/412 Test  #13: cbs-xtpl-alpha ...................   Passed  500.97 sec
        Start  61: cc43
 32/412 Test #380: cc-module ........................   Passed  316.28 sec
        Start  98: cisd-opt-fd
 33/412 Test  #32: cc16 .............................   Passed  277.18 sec
        Start  47: cc30
 34/412 Test #387: cookbook-rohf-orb-rot ............   Passed  373.24 sec
        Start 159: dfscf-bz2
 35/412 Test #111: dcft4 ............................   Passed  1816.21 sec
        Start 105: dcft-grad2
 36/412 Test  #59: cc41 .............................   Passed  136.95 sec
        Start 348: sapt-dft2
 37/412 Test  #48: cc31 .............................   Passed  161.28 sec
        Start  75: cc5a
 38/412 Test #374: dft-custom-mgga ..................   Passed  194.81 sec
        Start 303: pywrap-cbs1
 39/412 Test  #47: cc30 .............................   Passed   74.35 sec
        Start 184: isapt2
 40/412 Test  #61: cc43 .............................   Passed  122.03 sec
        Start  92: cepa-module
 41/412 Test #321: sapt6 ............................   Passed  175.33 sec
        Start 155: dft-grad-lr2
 42/412 Test  #11: cbs-delta-energy .................   Passed  277.51 sec
        Start 169: dft1
 43/412 Test #196: fd-freq-gradient-large ...........   Passed  312.40 sec
        Start 260: omp3-3
 44/412 Test #159: dfscf-bz2 ........................   Passed  150.66 sec
        Start  27: cc13b
 45/412 Test  #98: cisd-opt-fd ......................   Passed  165.52 sec
        Start  26: cc13a
 46/412 Test #105: dcft-grad2 .......................   Passed  142.01 sec
        Start 114: dcft7
 47/412 Test #348: sapt-dft2 ........................   Passed  127.97 sec
        Start 206: frac-traverse
 48/412 Test  #75: cc5a .............................   Passed  116.05 sec
        Start 317: sapt2
 49/412 Test #184: isapt2 ...........................   Passed  121.27 sec
        Start 319: sapt4
 50/412 Test #303: pywrap-cbs1 ......................   Passed  132.02 sec
        Start 326: scf-bz2
 51/412 Test #155: dft-grad-lr2 .....................   Passed  112.86 sec
        Start 262: omp3-5
 52/412 Test  #92: cepa-module ......................   Passed  134.25 sec
        Start 372: dft-custom-dhdf
 53/412 Test  #27: cc13b ............................   Passed   61.84 sec
        Start 281: opt-irc-1
 54/412 Test #260: omp3-3 ...........................   Passed   75.45 sec
        Start  17: cbs-xtpl-opt
 55/412 Test #262: omp3-5 ...........................   Passed   37.38 sec
        Start 116: dcft9
 56/412 Test #169: dft1 .............................   Passed  111.17 sec
        Start  76: cc6
 57/412 Test #116: dcft9 ............................   Passed   29.49 sec
        Start  28: cc13c
 58/412 Test  #17: cbs-xtpl-opt .....................   Passed   65.63 sec
        Start 280: opt14
 59/412 Test  #28: cc13c ............................   Passed   20.50 sec
        Start  31: cc15
 60/412 Test #281: opt-irc-1 ........................   Passed   90.19 sec
        Start 231: mp2-module
 61/412 Test #372: dft-custom-dhdf ..................   Passed  101.66 sec
        Start  70: cc51
 62/412 Test #194: fd-freq-energy-large .............   Passed  554.36 sec
        Start  19: cbs-xtpl-nbody
 63/412 Test  #31: cc15 .............................   Passed   28.61 sec
        Start 318: sapt3
 64/412 Test  #76: cc6 ..............................   Passed   69.60 sec
        Start 108: dcft1
 65/412 Test #326: scf-bz2 ..........................   Passed  138.38 sec
        Start 293: psimrcc-fd-freq2
 66/412 Test #108: dcft1 ............................   Passed   21.44 sec
        Start 193: fd-freq-energy
 67/412 Test #182: fsapt-allterms ...................   Passed  599.68 sec
        Start 320: sapt5
 68/412 Test  #19: cbs-xtpl-nbody ...................   Passed   51.30 sec
        Start 157: dfomp2p5-grad2
 69/412 Test #280: opt14 ............................   Passed   85.55 sec
        Start 150: dfomp3-grad2
 70/412 Test  #70: cc51 .............................   Passed   72.72 sec
        Start  44: cc28
 71/412 Test #231: mp2-module .......................   Passed   79.59 sec
        Start 245: ocepa2
 72/412 Test #206: frac-traverse ....................   Passed  233.30 sec
        Start 261: omp3-4
 73/412 Test #318: sapt3 ............................   Passed   83.47 sec
        Start 251: omp2-5
 74/412 Test #157: dfomp2p5-grad2 ...................   Passed   32.79 sec
        Start  20: cbs-xtpl-wrapper
 75/412 Test #150: dfomp3-grad2 .....................   Passed   42.64 sec
        Start  62: cc44
 76/412 Test #193: fd-freq-energy ...................   Passed   70.15 sec
        Start 243: ocepa-grad2
 77/412 Test #293: psimrcc-fd-freq2 .................   Passed   76.91 sec
        Start 205: frac-ip-fitting
 78/412 Test #320: sapt5 ............................   Passed   79.17 sec
        Start 264: omp3-grad2
 79/412 Test  #44: cc28 .............................   Passed   53.16 sec
        Start 250: omp2-4
 80/412 Test #245: ocepa2 ...........................   Passed   62.18 sec
        Start  58: cc40
 81/412 Test #261: omp3-4 ...........................   Passed   58.04 sec
        Start  65: cc47
 82/412 Test #251: omp2-5 ...........................   Passed   49.94 sec
        Start 168: dft-b3lyp
 83/412 Test  #26: cc13a ............................   Passed  327.85 sec
        Start  69: cc50
 84/412 Test #243: ocepa-grad2 ......................   Passed   63.73 sec
        Start 300: pywrap-alias
 85/412 Test  #20: cbs-xtpl-wrapper .................   Passed   79.22 sec
        Start 390: python-pubchem
 86/412 Test  #62: cc44 .............................   Passed   68.65 sec
        Start 257: omp2p5-grad2
 87/412 Test #205: frac-ip-fitting ..................   Passed   71.49 sec
        Start 145: dfomp2-grad2
 88/412 Test  #65: cc47 .............................   Passed   50.77 sec
        Start  35: cc19
 89/412 Test #264: omp3-grad2 .......................   Passed   80.57 sec
        Start  67: cc49
 90/412 Test  #58: cc40 .............................   Passed   63.55 sec
        Start  79: cc8a
 91/412 Test #250: omp2-4 ...........................   Passed   85.98 sec
        Start 152: dfomp2p5-2
 92/412 Test #114: dcft7 ............................   Passed  366.54 sec
        Start  82: cc9
 93/412 Test #168: dft-b3lyp ........................   Passed   74.16 sec
        Start 298: pubchem1
 94/412 Test  #69: cc50 .............................   Passed   59.08 sec
        Start 148: dfomp3-2
 95/412 Test #390: python-pubchem ...................   Passed   72.12 sec
        Start 141: dfomp2-2
 96/412 Test #300: pywrap-alias .....................   Passed   80.85 sec
        Start  60: cc42
 97/412 Test #317: sapt2 ............................   Passed  393.02 sec
        Start  66: cc48
 98/412 Test #257: omp2p5-grad2 .....................   Passed   84.55 sec
        Start  78: cc8
 99/412 Test  #35: cc19 .............................   Passed   69.43 sec
        Start  57: cc4
100/412 Test  #67: cc49 .............................   Passed   64.19 sec
        Start 101: ci-property
101/412 Test  #79: cc8a .............................   Passed   64.97 sec
        Start  55: cc38
102/412 Test #152: dfomp2p5-2 .......................   Passed   55.57 sec
        Start   2: adc2
103/412 Test  #82: cc9 ..............................   Passed   53.44 sec
        Start  72: cc53
104/412 Test #298: pubchem1 .........................   Passed   65.20 sec
        Start 277: opt11
105/412 Test #148: dfomp3-2 .........................   Passed   61.82 sec
        Start  80: cc8b
106/412 Test #145: dfomp2-grad2 .....................   Passed  129.23 sec
        Start  68: cc4a
107/412 Test  #78: cc8 ..............................   Passed   50.96 sec
        Start  56: cc39
108/412 Test #141: dfomp2-2 .........................   Passed   65.70 sec
        Start  74: cc55
109/412 Test  #60: cc42 .............................   Passed   58.64 sec
        Start  81: cc8c
110/412 Test  #72: cc53 .............................   Passed   42.85 sec
        Start  83: cc9a
111/412 Test   #2: adc2 .............................   Passed   44.73 sec
        Start 163: dft-grad-meta
112/412 Test  #55: cc38 .............................   Passed   48.99 sec
        Start 238: nbody-he-cluster
113/412 Test  #66: cc48 .............................   Passed   58.90 sec
        Start 171: dft1-alt
114/412 Test  #57: cc4 ..............................   Passed   54.52 sec
        Start 274: opt7
115/412 Test #101: ci-property ......................   Passed   63.78 sec
        Start  73: cc54
116/412 Test  #80: cc8b .............................   Passed   40.89 sec
        Start  64: cc46
117/412 Test #277: opt11 ............................   Passed   57.11 sec
        Start  85: cdomp2-2
118/412 Test  #56: cc39 .............................   Passed   48.43 sec
        Start 143: dfomp2-4
119/412 Test  #68: cc4a .............................   Passed   55.65 sec
        Start 246: ocepa3
120/412 Test #163: dft-grad-meta ....................   Passed   57.17 sec
        Start 308: pywrap-db1
121/412 Test #171: dft1-alt .........................   Passed   61.25 sec
        Start  12: cbs-parser
122/412 Test  #74: cc55 .............................   Passed   69.06 sec
        Start 349: sapt-compare
123/412 Test #274: opt7 .............................   Passed   67.33 sec
        Start  21: cc1
124/412 Test #238: nbody-he-cluster .................   Passed   70.58 sec
        Start 220: mints-benchmark
125/412 Test #279: opt13 ............................   Passed  837.45 sec
        Start 338: scf6
126/412 Test  #73: cc54 .............................   Passed   63.23 sec
        Start 132: dfmp2-3
127/412 Test  #64: cc46 .............................   Passed   66.40 sec
        Start 201: fnocc2
128/412 Test  #83: cc9a .............................   Passed   95.41 sec
        Start 337: scf5
129/412 Test  #81: cc8c .............................   Passed  100.16 sec
        Start  33: cc17
130/412 Test #308: pywrap-db1 .......................   Passed   48.18 sec
        Start 107: dcft-grad4
131/412 Test  #85: cdomp2-2 .........................   Passed   78.83 sec
        Start 195: fd-freq-gradient
132/412 Test #143: dfomp2-4 .........................   Passed   65.99 sec
        Start  93: ci-multi
133/412 Test #349: sapt-compare .....................   Passed   46.08 sec
        Start 361: x2c1
134/412 Test #220: mints-benchmark ..................   Passed   43.40 sec
        Start 313: rasci-ne
135/412 Test #246: ocepa3 ...........................   Passed   65.44 sec
        Start  49: cc32
136/412 Test #132: dfmp2-3 ..........................   Passed   43.03 sec
        Start 134: dfmp2-ecp
137/412 Test #338: scf6 .............................   Passed   48.44 sec
        Start 207: ghosts
138/412 Test  #12: cbs-parser .......................   Passed   75.97 sec
        Start 130: dfmp2-1
139/412 Test #337: scf5 .............................   Passed   45.22 sec
        Start 324: sapt7
140/412 Test  #49: cc32 .............................   Passed   27.50 sec
        Start 153: dfomp2p5-grad1
141/412 Test #107: dcft-grad4 .......................   Passed   40.41 sec
        Start 343: soscf-dft
142/412 Test  #33: cc17 .............................   Passed   50.32 sec
        Start 375: dft-custom-gga
143/412 Test #201: fnocc2 ...........................   Passed   64.29 sec
        Start  34: cc18
144/412 Test #195: fd-freq-gradient .................   Passed   46.19 sec
        Start 275: opt8
145/412 Test #313: rasci-ne .........................   Passed   39.16 sec
        Start 197: fd-gradient
146/412 Test  #93: ci-multi .........................   Passed   44.95 sec
        Start 127: dfccsd-t-grad1
147/412 Test #134: dfmp2-ecp ........................   Passed   36.78 sec
        Start 393: python-cc54
148/412 Test #207: ghosts ...........................   Passed   35.32 sec
        Start   1: adc1
149/412 Test #361: x2c1 .............................   Passed   46.39 sec
        Start 126: dfccsd-grad1
150/412 Test  #21: cc1 ..............................   Passed   99.11 sec
        Start 253: omp2-grad2
151/412 Test #130: dfmp2-1 ..........................   Passed   35.03 sec
        Start  51: cc34
152/412 Test #324: sapt7 ............................   Passed   34.89 sec
        Start  23: cc11
153/412 Test #343: soscf-dft ........................   Passed   33.26 sec
        Start 149: dfomp3-grad1
154/412 Test #153: dfomp2p5-grad1 ...................   Passed   35.49 sec
        Start 327: scf-ecp
155/412 Test #375: dft-custom-gga ...................   Passed   33.27 sec
        Start  52: cc35
156/412 Test   #1: adc1 .............................   Passed   25.98 sec
        Start 265: opt-lindep-change
157/412 Test #197: fd-gradient ......................   Passed   36.17 sec
        Start  63: cc45
158/412 Test #275: opt8 .............................   Passed   37.31 sec
        Start 283: opt-irc-3
159/412 Test  #34: cc18 .............................   Passed   40.58 sec
        Start  53: cc36
160/412 Test #126: dfccsd-grad1 .....................   Passed   38.81 sec
        Start  16: cbs-xtpl-gradient
161/412 Test #127: dfccsd-t-grad1 ...................   Passed   46.08 sec
        Start  50: cc33
162/412 Test  #51: cc34 .............................   Passed   34.83 sec
        Start 174: dft-omega
163/412 Test #393: python-cc54 ......................   Passed   51.11 sec
        Start 147: dfomp3-1
164/412 Test #253: omp2-grad2 .......................   Passed   42.59 sec
        Start 167: dft-psivar
165/412 Test #265: opt-lindep-change ................   Passed   27.76 sec
        Start 376: pywrap-bfs
166/412 Test #327: scf-ecp ..........................   Passed   33.21 sec
        Start 173: dft3
167/412 Test  #52: cc35 .............................   Passed   38.54 sec
        Start 160: dft-b2plyp
168/412 Test #283: opt-irc-3 ........................   Passed   32.32 sec
        Start 268: opt2
169/412 Test #149: dfomp3-grad1 .....................   Passed   45.46 sec
        Start 314: rasscf-sp
170/412 Test  #53: cc36 .............................   Passed   33.84 sec
        Start 304: pywrap-checkrun-convcrit
171/412 Test  #23: cc11 .............................   Passed   53.53 sec
        Start 129: dfccsdat1
172/412 Test  #63: cc45 .............................   Passed   44.70 sec
        Start 347: sapt-dft1
173/412 Test  #16: cbs-xtpl-gradient ................   Passed   35.66 sec
        Start 278: opt12
174/412 Test  #50: cc33 .............................   Passed   31.33 sec
        Start 164: dft-freq
175/412 Test #147: dfomp3-1 .........................   Passed   28.09 sec
        Start 203: fnocc4
176/412 Test #174: dft-omega ........................   Passed   29.62 sec
        Start 273: opt6
177/412 Test #167: dft-psivar .......................   Passed   25.38 sec
        Start 359: tu5-sapt
178/412 Test #376: pywrap-bfs .......................   Passed   25.12 sec
        Start 190: fci-tdm-2
179/412 Test #173: dft3 .............................   Passed   24.11 sec
        Start 178: extern2
180/412 Test #268: opt2 .............................   Passed   23.85 sec
        Start   7: casscf-sp
181/412 Test #304: pywrap-checkrun-convcrit .........   Passed   21.48 sec
        Start 323: sapt-dft-lrc
182/412 Test #129: dfccsdat1 ........................   Passed   18.08 sec
        Start  54: cc37
183/412 Test #160: dft-b2plyp .......................   Passed   25.40 sec
        Start 259: omp3-2
184/412 Test #314: rasscf-sp ........................   Passed   22.75 sec
        Start 208: gibbs
185/412 Test #278: opt12 ............................   Passed   24.35 sec
        Start  38: cc22
186/412 Test #164: dft-freq .........................   Passed   24.88 sec
        Start 291: psimrcc-ccsd_t-4
187/412 Test #347: sapt-dft1 ........................   Passed   25.41 sec
        Start  22: cc10
188/412 Test #359: tu5-sapt .........................   Passed   22.33 sec
        Start 151: dfomp2p5-1
189/412 Test #273: opt6 .............................   Passed   24.37 sec
        Start 316: sapt1
190/412 Test #203: fnocc4 ...........................   Passed   25.60 sec
        Start 249: omp2-3
191/412 Test #178: extern2 ..........................   Passed   24.14 sec
        Start  24: cc12
192/412 Test #190: fci-tdm-2 ........................   Passed   24.38 sec
        Start 239: nbody-intermediates
193/412 Test  #54: cc37 .............................   Passed   16.65 sec
        Start 276: opt9
194/412 Test #323: sapt-dft-lrc .....................   Passed   20.87 sec
        Start 322: sapt-dft-api
195/412 Test #259: omp3-2 ...........................   Passed   22.64 sec
        Start 139: dfmp2-grad5
196/412 Test   #7: casscf-sp ........................   Passed   24.02 sec
        Start 255: omp2p5-2
197/412 Test #208: gibbs ............................   Passed   24.52 sec
        Start 166: dft-grad2
198/412 Test  #38: cc22 .............................   Passed   18.87 sec
        Start 297: psithon2
199/412 Test #151: dfomp2p5-1 .......................   Passed   18.20 sec
        Start 170: dft-vv10
200/412 Test #291: psimrcc-ccsd_t-4 .................   Passed   19.89 sec
        Start 106: dcft-grad3
201/412 Test #316: sapt1 ............................   Passed   18.86 sec
        Start 202: fnocc3
202/412 Test  #24: cc12 .............................   Passed   18.39 sec
        Start 248: omp2-2
203/412 Test #239: nbody-intermediates ..............   Passed   18.28 sec
        Start 154: dft-grad-lr1
204/412 Test #276: opt9 .............................   Passed   17.61 sec
        Start 110: dcft3
205/412 Test  #22: cc10 .............................   Passed   21.56 sec
        Start 177: extern1
206/412 Test #249: omp2-3 ...........................   Passed   20.30 sec
        Start 200: fnocc1
207/412 Test #255: omp2p5-2 .........................   Passed   16.07 sec
        Start 144: dfomp2-grad1
208/412 Test #322: sapt-dft-api .....................   Passed   18.67 sec
        Start 302: pywrap-basis
209/412 Test #139: dfmp2-grad5 ......................   Passed   18.21 sec
        Start 292: psimrcc-fd-freq1
210/412 Test #166: dft-grad2 ........................   Passed   17.38 sec
        Start 325: sapt8
211/412 Test #106: dcft-grad3 .......................   Passed   17.48 sec
        Start 219: mints8
212/412 Test #297: psithon2 .........................   Passed   19.59 sec
        Start   5: casscf-sa-sp
213/412 Test #170: dft-vv10 .........................   Passed   19.83 sec
        Start  90: cepa3
214/412 Test #154: dft-grad-lr1 .....................   Passed   18.31 sec
        Start 341: soscf-large
215/412 Test #177: extern1 ..........................   Passed   20.99 sec
        Start  91: cepa1
216/412 Test #302: pywrap-basis .....................   Passed   19.87 sec
        Start 339: scf7
217/412 Test #325: sapt8 ............................   Passed   17.72 sec
        Start 267: opt1-fd
218/412 Test #202: fnocc3 ...........................   Passed   27.34 sec
        Start 165: dft-grad1
219/412 Test #200: fnocc1 ...........................   Passed   25.83 sec
        Start 367: dft-smoke
220/412 Test #248: omp2-2 ...........................   Passed   27.95 sec
        Start 286: props2
221/412 Test #110: dcft3 ............................   Passed   28.17 sec
        Start 351: dft-custom
222/412 Test #292: psimrcc-fd-freq1 .................   Passed   25.26 sec
        Start  14: cbs-xtpl-energy
223/412 Test #219: mints8 ...........................   Passed   17.04 sec
        Start 287: props3
224/412 Test #144: dfomp2-grad1 .....................   Passed   28.18 sec
        Start 358: tu4-h2o-freq
225/412 Test #341: soscf-large ......................   Passed   16.00 sec
        Start 342: soscf-ref
226/412 Test  #91: cepa1 ............................   Passed   13.12 sec
        Start 242: ocepa-grad1
227/412 Test  #90: cepa3 ............................   Passed   17.62 sec
        Start 198: freq-isotope1
228/412 Test   #5: casscf-sa-sp .....................   Passed   18.78 sec
        Start 369: scf-freq1
229/412 Test #267: opt1-fd ..........................   Passed   10.29 sec
        Start 218: mints6
230/412 Test #339: scf7 .............................   Passed   13.56 sec
        Start  89: cepa2
231/412 Test #165: dft-grad1 ........................   Passed   14.67 sec
        Start 373: dft-custom-hybrid
232/412 Test #286: props2 ...........................   Passed   14.02 sec
        Start 269: opt2-fd
233/412 Test #351: dft-custom .......................   Passed   13.96 sec
        Start  99: cisd-sp
234/412 Test #367: dft-smoke ........................   Passed   15.59 sec
        Start 370: dft-jk
235/412 Test  #14: cbs-xtpl-energy ..................   Passed   11.97 sec
        Start   3: casscf-fzc-sp
236/412 Test #358: tu4-h2o-freq .....................   Passed   11.11 sec
        Start  87: cepa0-grad2
237/412 Test #342: soscf-ref ........................   Passed   10.42 sec
        Start 102: cubeprop
238/412 Test #242: ocepa-grad1 ......................   Passed   11.41 sec
        Start 394: python-3-index-transforms
239/412 Test #369: scf-freq1 ........................   Passed   11.91 sec
        Start  84: cdomp2-1
240/412 Test #287: props3 ...........................   Passed   14.51 sec
        Start 158: dfrasscf-sp
241/412 Test  #89: cepa2 ............................   Passed    9.10 sec
        Start 296: psithon1
242/412 Test #198: freq-isotope1 ....................   Passed   14.13 sec
        Start 336: scf4
243/412 Test #218: mints6 ...........................   Passed   13.57 sec
        Start 271: opt4
244/412 Test  #87: cepa0-grad2 ......................   Passed    6.34 sec
        Start 227: mp2-1
245/412 Test #373: dft-custom-hybrid ................   Passed   11.28 sec
        Start 140: dfomp2-1
246/412 Test #269: opt2-fd ..........................   Passed   11.30 sec
        Start   9: castup2
247/412 Test  #99: cisd-sp ..........................   Passed   11.34 sec
        Start 191: fci-coverage
248/412 Test   #3: casscf-fzc-sp ....................   Passed    9.97 sec
        Start 123: dfccd-grad1
249/412 Test #370: dft-jk ...........................   Passed   11.87 sec
        Start 128: dfccsdt1
250/412 Test  #84: cdomp2-1 .........................   Passed    7.75 sec
        Start 368: scf-hess1
251/412 Test #102: cubeprop .........................   Passed   11.75 sec
        Start 109: dcft2
252/412 Test #158: dfrasscf-sp ......................   Passed    9.81 sec
        Start   4: casscf-semi
253/412 Test #394: python-3-index-transforms ........   Passed   12.40 sec
        Start 366: cubeprop-esp
254/412 Test #296: psithon1 .........................   Passed   10.55 sec
        Start 125: dfccsdl1
255/412 Test #271: opt4 .............................   Passed   10.22 sec
        Start 254: omp2p5-1
256/412 Test #227: mp2-1 ............................   Passed   10.20 sec
        Start 124: dfccsd1
257/412 Test #191: fci-coverage .....................   Passed    7.94 sec
        Start 225: molden2
258/412 Test #336: scf4 .............................   Passed   13.35 sec
        Start 263: omp3-grad1
259/412 Test #140: dfomp2-1 .........................   Passed    9.80 sec
        Start 199: freq-isotope2
260/412 Test #128: dfccsdt1 .........................   Passed    8.61 sec
        Start 224: molden1
261/412 Test #368: scf-hess1 ........................   Passed   11.09 sec
        Start 138: dfmp2-grad4
262/412 Test   #4: casscf-semi ......................   Passed    9.22 sec
        Start  15: cbs-xtpl-freq
263/412 Test #254: omp2p5-1 .........................   Passed    7.65 sec
        Start 133: dfmp2-4
264/412 Test #366: cubeprop-esp .....................   Passed    9.64 sec
        Start  10: castup3
265/412 Test   #9: castup2 ..........................   Passed   16.02 sec
        Start 181: fsapt-terms
266/412 Test #225: molden2 ..........................   Passed    7.78 sec
        Start 330: scf-guess-read2
267/412 Test #263: omp3-grad1 .......................   Passed    7.71 sec
        Start 162: dft-ghost
268/412 Test #109: dcft2 ............................   Passed   14.06 sec
        Start 185: fci-dipole
269/412 Test #224: molden1 ..........................   Passed    7.55 sec
        Start 233: mp2p5-grad2
270/412 Test #125: dfccsdl1 .........................   Passed   12.77 sec
        Start 256: omp2p5-grad1
271/412 Test #199: freq-isotope2 ....................   Passed    9.75 sec
        Start 270: opt3
272/412 Test #124: dfccsd1 ..........................   Passed   11.22 sec
        Start 186: fci-h2o
273/412 Test #123: dfccd-grad1 ......................   Passed   18.35 sec
        Start 386: psi4numpy-fci
274/412 Test #330: scf-guess-read2 ..................   Passed    6.79 sec
        Start 187: fci-h2o-2
275/412 Test  #15: cbs-xtpl-freq ....................   Passed    9.90 sec
        Start 100: cisd-sp-2
276/412 Test #138: dfmp2-grad4 ......................   Passed   10.75 sec
        Start 136: dfmp2-grad2
277/412 Test #233: mp2p5-grad2 ......................   Passed    6.03 sec
        Start 117: ao-dfcasscf-sp
278/412 Test #133: dfmp2-4 ..........................   Passed    9.84 sec
        Start 118: dfcasscf-sa-sp
279/412 Test #181: fsapt-terms ......................   Passed    8.27 sec
        Start 137: dfmp2-grad3
280/412 Test #185: fci-dipole .......................   Passed    7.17 sec
        Start 135: dfmp2-grad1
281/412 Test #162: dft-ghost ........................   Passed    8.28 sec
        Start 244: ocepa1
282/412 Test #386: psi4numpy-fci ....................   Passed    6.05 sec
        Start   6: ao-casscf-sp
283/412 Test #270: opt3 .............................   Passed    6.49 sec
        Start 234: mp3-grad1
284/412 Test #256: omp2p5-grad1 .....................   Passed    8.03 sec
        Start 188: fci-h2o-fzcv
285/412 Test #117: ao-dfcasscf-sp ...................   Passed    3.09 sec
        Start 142: dfomp2-3
286/412 Test  #10: castup3 ..........................   Passed   13.04 sec
        Start  96: cisd-h2o+-2
287/412 Test #186: fci-h2o ..........................   Passed    9.42 sec
        Start  86: cepa0-grad1
288/412 Test #135: dfmp2-grad1 ......................   Passed    4.39 sec
        Start 252: omp2-grad1
289/412 Test #137: dfmp2-grad3 ......................   Passed    4.57 sec
        Start 371: scf-coverage
290/412 Test #234: mp3-grad1 ........................   Passed    3.55 sec
        Start 247: omp2-1
291/412 Test #118: dfcasscf-sa-sp ...................   Passed    5.11 sec
        Start 284: opt-freeze-coords
292/412 Test #100: cisd-sp-2 ........................   Passed    6.08 sec
        Start 237: mpn-bh
293/412 Test #187: fci-h2o-2 ........................   Passed    6.99 sec
        Start 172: dft2
294/412 Test #188: fci-h2o-fzcv .....................   Passed    5.54 sec
        Start 120: dfcasscf-sp
295/412 Test   #6: ao-casscf-sp .....................   Passed    6.47 sec
        Start 230: mp2-grad2
296/412 Test #136: dfmp2-grad2 ......................   Passed    8.54 sec
        Start  94: cisd-h2o+-0
297/412 Test  #96: cisd-h2o+-2 ......................   Passed    5.62 sec
        Start  95: cisd-h2o+-1
298/412 Test  #86: cepa0-grad1 ......................   Passed    5.46 sec
        Start 229: mp2-grad1
299/412 Test #244: ocepa1 ...........................   Passed    8.89 sec
        Start 121: dfccd1
300/412 Test #247: omp2-1 ...........................   Passed    4.92 sec
        Start 377: pywrap-align
301/412 Test #237: mpn-bh ...........................   Passed    5.38 sec
        Start 232: mp2p5-grad1
302/412 Test #142: dfomp2-3 .........................   Passed    8.00 sec
        Start 180: fsapt2
303/412 Test #120: dfcasscf-sp ......................   Passed    3.66 sec
        Start 285: props1
304/412 Test #252: omp2-grad1 .......................   Passed    6.43 sec
        Start 311: rasci-c2-active
305/412 Test #230: mp2-grad2 ........................   Passed    3.93 sec
        Start 340: scf-property
306/412 Test #284: opt-freeze-coords ................   Passed    6.63 sec
        Start 332: scf1
307/412 Test #172: dft2 .............................   Passed    6.11 sec
        Start 204: frac
308/412 Test  #94: cisd-h2o+-0 ......................   Passed    5.56 sec
        Start 122: dfccdl1
309/412 Test #371: scf-coverage .....................   Passed    9.20 sec
        Start 272: opt5
310/412 Test #229: mp2-grad1 ........................   Passed    4.37 sec
        Start 235: mp3-grad2
311/412 Test  #95: cisd-h2o+-1 ......................   Passed    5.16 sec
        Start 226: mom
312/412 Test #121: dfccd1 ...........................   Passed    5.30 sec
        Start 356: tu3-h2o-opt
313/412 Test #232: mp2p5-grad1 ......................   Passed    5.44 sec
        Start 378: pywrap-align-chiral
314/412 Test #180: fsapt2 ...........................   Passed    5.69 sec
        Start 266: opt1
315/412 Test #377: pywrap-align .....................   Passed    6.95 sec
        Start 344: stability1
316/412 Test #332: scf1 .............................   Passed    5.49 sec
        Start 400: json-schema-1-energy
317/412 Test #204: frac .............................   Passed    5.38 sec
        Start 295: psimrcc-sp1
318/412 Test #285: props1 ...........................   Passed    6.21 sec
        Start 192: fcidump
319/412 Test #340: scf-property .....................   Passed    6.13 sec
        Start 345: dfep2-1
320/412 Test #122: dfccdl1 ..........................   Passed    4.43 sec
        Start 398: json-v11-energy
321/412 Test #272: opt5 .............................   Passed    4.45 sec
        Start 389: python-curve
322/412 Test #311: rasci-c2-active ..................   Passed    7.52 sec
        Start 236: mp2-property
323/412 Test #226: mom ..............................   Passed    4.69 sec
        Start 312: rasci-h2o
324/412 Test #378: pywrap-align-chiral ..............   Passed    3.44 sec
        Start 294: psimrcc-pt2
325/412 Test #235: mp3-grad2 ........................   Passed    5.64 sec
        Start 119: dfcasscf-fzc-sp
326/412 Test #356: tu3-h2o-opt ......................   Passed    4.82 sec
        Start 258: omp3-1
327/412 Test #344: stability1 .......................   Passed    3.58 sec
        Start 352: dft-reference
328/412 Test #312: rasci-h2o ........................   Passed    2.09 sec
        Start 364: zaptn-nh2
329/412 Test #398: json-v11-energy ..................   Passed    3.22 sec
        Start 412: skeletonwavefunction
330/412 Test #294: psimrcc-pt2 ......................   Passed    1.99 sec
        Start 328: scf-guess-read1
331/412 Test #345: dfep2-1 ..........................   Passed    3.72 sec
        Start 131: dfmp2-2
332/412 Test #400: json-schema-1-energy .............   Passed    4.20 sec
        Start 333: scf-occ
333/412 Test #266: opt1 .............................   Passed    5.44 sec
        Start 385: psi4numpy-rhf-hessian
334/412 Test #389: python-curve .....................   Passed    3.42 sec
        Start 392: python-mints2
335/412 Test #236: mp2-property .....................   Passed    3.47 sec
        Start 402: json-schema-1-orient
336/412 Test #295: psimrcc-sp1 ......................   Passed    4.98 sec
        Start 315: sad1
337/412 Test #192: fcidump ..........................   Passed    5.16 sec
        Start 214: mints2
338/412 Test #412: skeletonwavefunction .............   Passed    1.49 sec
        Start 329: scf-upcast-custom-basis
339/412 Test #119: dfcasscf-fzc-sp ..................   Passed    3.11 sec
        Start 346: dfep2-2
340/412 Test #258: omp3-1 ...........................   Passed    3.09 sec
        Start 290: psimrcc-ccsd_t-3
341/412 Test #328: scf-guess-read1 ..................   Passed    2.07 sec
        Start 350: sapt-sf1
342/412 Test #352: dft-reference ....................   Passed    3.27 sec
        Start 407: skeletonaointegrals
343/412 Test #333: scf-occ ..........................   Passed    2.38 sec
        Start 289: psimrcc-ccsd_t-2
344/412 Test #131: dfmp2-2 ..........................   Passed    2.41 sec
        Start 408: skeletondfmp2
345/412 Test #364: zaptn-nh2 ........................   Passed    2.79 sec
        Start 406: skeleton
346/412 Test #402: json-schema-1-orient .............   Passed    2.06 sec
        Start   8: castup1
347/412 Test #392: python-mints2 ....................   Passed    2.78 sec
        Start  97: cisd-h2o-clpse
348/412 Test #329: scf-upcast-custom-basis ..........   Passed    2.47 sec
        Start 334: scf2
349/412 Test #315: sad1 .............................   Passed    2.76 sec
        Start 357: scf-response1
350/412 Test #350: sapt-sf1 .........................   Passed    1.66 sec
        Start 409: skeletonmointegrals
351/412 Test #407: skeletonaointegrals ..............   Passed    1.54 sec
        Start 362: x2c2
352/412 Test #385: psi4numpy-rhf-hessian ............   Passed    3.38 sec
        Start 363: x2c3
353/412 Test #290: psimrcc-ccsd_t-3 .................   Passed    2.33 sec
        Start 161: dft-grac
354/412 Test #406: skeleton .........................   Passed    1.46 sec
        Start 189: fci-tdm
355/412 Test #346: dfep2-2 ..........................   Passed    2.56 sec
        Start 211: mcscf2
356/412 Test #214: mints2 ...........................   Passed    2.90 sec
        Start 353: stability2
357/412 Test #408: skeletondfmp2 ....................   Passed    1.70 sec
        Start 382: psi4numpy-dfmp2
358/412 Test   #8: castup1 ..........................   Passed    1.72 sec
        Start 331: scf-bs
359/412 Test #289: psimrcc-ccsd_t-2 .................   Passed    2.32 sec
        Start 299: pubchem2
360/412 Test  #97: cisd-h2o-clpse ...................   Passed    1.62 sec
        Start 404: json-schema-1-gradient
361/412 Test #409: skeletonmointegrals ..............   Passed    1.49 sec
        Start 288: psimrcc-ccsd_t-1
362/412 Test #334: scf2 .............................   Passed    1.76 sec
        Start 223: mints10
363/412 Test #189: fci-tdm ..........................   Passed    1.78 sec
        Start 391: python-mints9
364/412 Test #161: dft-grac .........................   Passed    1.88 sec
        Start 222: mints9
365/412 Test #362: x2c2 .............................   Passed    2.13 sec
        Start 396: python-mints13
366/412 Test #357: scf-response1 ....................   Passed    2.24 sec
        Start 411: skeletonsointegrals
367/412 Test #211: mcscf2 ...........................   Passed    1.93 sec
        Start 354: tu1-h2o-energy
368/412 Test #353: stability2 .......................   Passed    1.90 sec
        Start 103: decontract
369/412 Test #331: scf-bs ...........................   Passed    1.66 sec
        Start 221: mints-helper
370/412 Test #299: pubchem2 .........................   Passed    1.60 sec
        Start 215: mints3
371/412 Test #363: x2c3 .............................   Passed    2.61 sec
        Start 355: tu2-ch2-energy
372/412 Test #382: psi4numpy-dfmp2 ..................   Passed    2.24 sec
        Start 384: psi4numpy-rhf-gradient
373/412 Test #404: json-schema-1-gradient ...........   Passed    1.74 sec
        Start 405: json-schema-1-properties
374/412 Test #223: mints10 ..........................   Passed    1.62 sec
        Start 381: psi4numpy-cphf
375/412 Test #288: psimrcc-ccsd_t-1 .................   Passed    1.97 sec
        Start 401: json-schema-1-ghost
376/412 Test #411: skeletonsointegrals ..............   Passed    1.40 sec
        Start 399: json-v11-gradient
377/412 Test #215: mints3 ...........................   Passed    1.22 sec
        Start 379: mints12
378/412 Test #103: decontract .......................   Passed    1.68 sec
        Start 397: python-memdfjk
379/412 Test #384: psi4numpy-rhf-gradient ...........   Passed    1.31 sec
        Start 388: python-energy
380/412 Test #355: tu2-ch2-energy ...................   Passed    1.33 sec
        Start 310: pywrap-molecule
381/412 Test #354: tu1-h2o-energy ...................   Passed    1.74 sec
        Start 335: scf3
382/412 Test #221: mints-helper .....................   Passed    1.51 sec
        Start 212: mcscf3
383/412 Test #391: python-mints9 ....................   Passed    2.12 sec
        Start 217: mints5
384/412 Test #396: python-mints13 ...................   Passed    2.00 sec
        Start 383: psi4numpy-rhf
385/412 Test #222: mints9 ...........................   Passed    2.10 sec
        Start 210: mcscf1
386/412 Test #405: json-schema-1-properties .........   Passed    1.36 sec
        Start 240: numpy-array-interface
387/412 Test #401: json-schema-1-ghost ..............   Passed    1.16 sec
        Start 175: docs-bases
388/412 Test #381: psi4numpy-cphf ...................   Passed    1.45 sec
        Start 213: mints1
389/412 Test #399: json-v11-gradient ................   Passed    1.47 sec
        Start 309: pywrap-db3
390/412 Test #388: python-energy ....................   Passed    1.16 sec
        Start 216: mints4
391/412 Test #240: numpy-array-interface ............   Passed    0.92 sec
        Start 209: matrix1
392/412 Test #379: mints12 ..........................   Passed    1.36 sec
        Start 410: skeletonscf
393/412 Test #310: pywrap-molecule ..................   Passed    1.27 sec
        Start 176: docs-dft
394/412 Test #335: scf3 .............................   Passed    1.28 sec
        Start 365: options1
395/412 Test #383: psi4numpy-rhf ....................   Passed    1.16 sec
        Start 403: json-schema-1-throws
396/412 Test #212: mcscf3 ...........................   Passed    1.28 sec
        Start  88: cepa1
397/412 Test #217: mints5 ...........................   Passed    1.25 sec
398/412 Test #175: docs-bases .......................   Passed    0.78 sec
399/412 Test #210: mcscf1 ...........................   Passed    1.26 sec
400/412 Test #397: python-memdfjk ...................   Passed    1.51 sec
401/412 Test #213: mints1 ...........................   Passed    0.96 sec
402/412 Test #209: matrix1 ..........................   Passed    0.64 sec
403/412 Test #216: mints4 ...........................   Passed    0.73 sec
404/412 Test #403: json-schema-1-throws .............   Passed    0.58 sec
405/412 Test #309: pywrap-db3 .......................   Passed    0.83 sec
406/412 Test #176: docs-dft .........................   Passed    0.68 sec
407/412 Test #365: options1 .........................   Passed    0.69 sec
408/412 Test #410: skeletonscf ......................   Passed    0.77 sec
409/412 Test  #88: cepa1 ............................   Passed    3.01 sec
410/412 Test  #18: cbs-xtpl-func ....................   Passed  1324.01 sec
411/412 Test #179: fsapt1 ...........................   Passed  2063.95 sec
412/412 Test #319: sapt4 ............................   Passed  1882.34 sec

100% tests passed, 0 tests failed out of 412

Label Time Summary:
adc              =  70.71 sec*proc (2 tests)
autotest         = 2082.78 sec*proc (26 tests)
cart             = 20353.66 sec*proc (123 tests)
cas              =  63.78 sec*proc (1 test)
casscf           = 115.98 sec*proc (11 tests)
cbs              = 2564.15 sec*proc (11 tests)
cc               = 14415.83 sec*proc (65 tests)
cdomp2           =  86.58 sec*proc (2 tests)
cepa             = 188.90 sec*proc (7 tests)
ci               = 123.31 sec*proc (8 tests)
cisd             = 200.90 sec*proc (7 tests)
cookbook         = 373.24 sec*proc (1 test)
cubeprop         =  21.39 sec*proc (2 tests)
dcft             = 5267.53 sec*proc (13 tests)
df               = 2450.70 sec*proc (38 tests)
dfccd            =   5.30 sec*proc (1 test)
dfccd-grad       =  18.35 sec*proc (1 test)
dfccdl           =   4.43 sec*proc (1 test)
dfccsd           =  11.22 sec*proc (1 test)
dfccsd-grad      =  38.81 sec*proc (1 test)
dfccsd-t-grad    =  46.08 sec*proc (1 test)
dfccsdat         =  18.08 sec*proc (1 test)
dfccsdl          =  12.77 sec*proc (1 test)
dfccsdt          =   8.61 sec*proc (1 test)
dfep2            =   6.28 sec*proc (2 tests)
dfmp2            = 177.01 sec*proc (11 tests)
dfomp2           = 1556.95 sec*proc (7 tests)
dfomp2.5         = 142.03 sec*proc (4 tests)
dfomp3           = 178.00 sec*proc (4 tests)
dfscf            = 150.66 sec*proc (1 test)
dft              = 1457.60 sec*proc (27 tests)
docs             =   1.47 sec*proc (2 tests)
ecp              =  69.99 sec*proc (2 tests)
fci              =  12.53 sec*proc (2 tests)
fcidump          =   5.16 sec*proc (1 test)
findif           = 1019.26 sec*proc (5 tests)
fnocc            = 143.05 sec*proc (4 tests)
freq             = 1272.87 sec*proc (6 tests)
gradient         = 2551.58 sec*proc (16 tests)
json             =  15.79 sec*proc (8 tests)
longtests        = 3724.28 sec*proc (5 tests)
mcscf            =   4.46 sec*proc (3 tests)
minitests        =  80.09 sec*proc (4 tests)
mints            =  90.36 sec*proc (14 tests)
misc             = 538.13 sec*proc (16 tests)
mp2              = 556.27 sec*proc (13 tests)
nbody            =  88.86 sec*proc (2 tests)
numpy            =   0.92 sec*proc (1 test)
ocepa            = 945.84 sec*proc (6 tests)
omp              = 639.27 sec*proc (18 tests)
opt              = 1618.73 sec*proc (21 tests)
plug             =   9.86 sec*proc (7 tests)
prop             =   2.24 sec*proc (1 test)
properties       = 159.09 sec*proc (10 tests)
psi              = 46523.94 sec*proc (411 tests)
psi4numpy        =  15.59 sec*proc (6 tests)
psimrcc          = 135.66 sec*proc (8 tests)
python           = 1363.51 sec*proc (10 tests)
pywrap           = 4999.59 sec*proc (12 tests)
quicktests       = 4450.11 sec*proc (140 tests)
rasci            =  48.77 sec*proc (3 tests)
sapt             = 6170.03 sec*proc (21 tests)
scf              = 1892.41 sec*proc (52 tests)
shorttests       =  62.94 sec*proc (4 tests)
smoketests       = 197.48 sec*proc (11 tests)
stability        =   5.48 sec*proc (2 tests)
tutorial         = 469.03 sec*proc (6 tests)
x2c              =  51.12 sec*proc (3 tests)

Total Test time (real) = 3874.14 sec

@@ -275,7 +275,7 @@ void IntegralTransform::process_spaces() {
if (mosym_[orb] == h) {
aOrbsPI[h]++;
aOrbSym[count] = h;
if (aIndex) aIndex[count] = aindex[n];
//if (aIndex) aIndex[count] = aindex[n];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'm being slow here, but I don't see what the problem is. The (poorly named) aIndex pointer is created if custom array indexing was provided via aindex. If that vector is empty, no copy is attempted; if not, the loops should essentially reorder the aindex vector into aIndex, but sorted by irrep. There should probably be a catch to ensure that the number of orbitals and indices is the same, but I think that exists somewhere upstream.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a particular compiler error or failed test that led to this change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, whatever was the reason for this change, why does it not come into play for the beta orbital indexing where the logic is identical with different variable names?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows, the tests

  • casscf-fzc-sp
  • casscf-sa-sp
  • casscf-semi
  • casscf-sp
  • rasscf-sp
  • molden1
  • molden2

crash with run-time vector index error, which happens on that line. In case of beta orbitals, maybe there are no tests for that.

So I not sure, how to make a proper fix.

@raimis
Copy link
Member Author

raimis commented Sep 14, 2018

This is also happens on Linux!

master (b51ecbc) compiled with the address sanitizer (-DENABLE_ASAN) finds an overflow on the same line, while running casscf-fzc-sp and the others:

$ LD_PRELOAD=/shared/raimis/opt/miniconda/envs/psi4/x86_64-conda_cos6-linux-gnu/sysroot/lib/libasan.so.4.0.0 ctest -R "^casscf-fzc-sp$" --output-on-failure
Test project /home/raimis/psi4_2.git/build
    Start 3: casscf-fzc-sp
1/1 Test #3: casscf-fzc-sp ....................***Failed   27.28 sec
=================================================================
==10081==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6030003bc668 at pc 0x7f28e2c1b07c bp 0x7ffdf8287a00 sp 0x7ffdf82879f8
READ of size 4 at 0x6030003bc668 thread T0
    #0 0x7f28e2c1b07b in psi::IntegralTransform::process_spaces() /home/raimis/psi4_2.git/psi4/src/psi4/libtrans/integraltransform_moinfo.cc:278
    #1 0x7f28e2bc18ba in psi::IntegralTransform::initialize() /home/raimis/psi4_2.git/psi4/src/psi4/libtrans/integraltransform.cc:272
    #2 0x7f28e2bdfa02 in psi::IntegralTransform::IntegralTransform(std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::vector<std::shared_ptr<psi::MOSpace>, std::allocator<std::shared_ptr<psi::MOSpace> > >, psi::IntegralTransform::TransformationType, psi::IntegralTransform::OutputType, psi::IntegralTransform::MOOrdering, psi::IntegralTransform::FrozenOrbitals, bool) /home/raimis/psi4_2.git/psi4/src/psi4/libtrans/integraltransform.cc:195
    #3 0x7f28dbecd5ad in psi::detci::CIWavefunction::setup_mcscf_ints() /home/raimis/psi4_2.git/psi4/src/psi4/detci/ints.cc:360
    #4 0x7f28dbdc38d5 in psi::detci::CIWavefunction::init_mcscf_object() /home/raimis/psi4_2.git/psi4/src/psi4/detci/ciwave.cc:626
    #5 0x7f28dbdceeff in psi::detci::CIWavefunction::mcscf_object() /home/raimis/psi4_2.git/psi4/src/psi4/detci/ciwave.cc:655
    #6 0x7f28d97a0389 in pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}::operator()(psi::detci::CIWavefunction*) const /home/raimis/psi4_2.git/build/stage/include/pybind11/pybind11.h:72
    #7 0x7f28d97a0389 in std::shared_ptr<psi::SOMCSCF> pybind11::detail::argument_loader<psi::detci::CIWavefunction*>::call_impl<std::shared_ptr<psi::SOMCSCF>, pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&, 0ul, pybind11::detail::void_type>(pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&, pybind11::detail::index_sequence<0ul>, pybind11::detail::void_type&&) /home/raimis/psi4_2.git/build/stage/include/pybind11/cast.h:1870
    #8 0x7f28d97a0389 in std::enable_if<!std::is_void<std::shared_ptr<psi::SOMCSCF> >::value, std::shared_ptr<psi::SOMCSCF> >::type pybind11::detail::argument_loader<psi::detci::CIWavefunction*>::call<std::shared_ptr<psi::SOMCSCF>, pybind11::detail::void_type, pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&>(pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&) && /home/raimis/psi4_2.git/build/stage/include/pybind11/cast.h:1847
    #9 0x7f28d97a0389 in void pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}, std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction*, pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(pybind11::cpp_function::initialize<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&&, std::shared_ptr<psi::SOMCSCF> (*)(psi::detci::CIWavefunction*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(pybind11::detail::function_call&)#3}::operator()(pybind11::detail::function_call) const /home/raimis/psi4_2.git/build/stage/include/pybind11/pybind11.h:154
    #10 0x7f28d8411da1 in pybind11::cpp_function::dispatcher(_object*, _object*, _object*) /home/raimis/psi4_2.git/build/stage/include/pybind11/pybind11.h:627
    #11 0x561a734dcb93 in _PyCFunction_FastCallDict (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x10eb93)
    #12 0x561a7356c7cd in call_function (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19e7cd)
    #13 0x561a7358ecb9 in _PyEval_EvalFrameDefault (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x1c0cb9)
    #14 0x561a7356670a in fast_function (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19870a)
    #15 0x561a7356c754 in call_function (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19e754)
    #16 0x561a7358ecb9 in _PyEval_EvalFrameDefault (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x1c0cb9)
    #17 0x561a73567458 in PyEval_EvalCodeEx (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x199458)
    #18 0x561a73568375 in function_call (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19a375)
    #19 0x561a734dc99d in PyObject_Call (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x10e99d)
    #20 0x561a7359046f in _PyEval_EvalFrameDefault (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x1c246f)
    #21 0x561a73565a93 in _PyEval_EvalCodeWithName (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x197a93)
    #22 0x561a73566940 in fast_function (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x198940)
    #23 0x561a7356c754 in call_function (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19e754)
    #24 0x561a7358ecb9 in _PyEval_EvalFrameDefault (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x1c0cb9)
    #25 0x561a73567458 in PyEval_EvalCodeEx (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x199458)
    #26 0x561a735681eb in PyEval_EvalCode (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19a1eb)
    #27 0x561a735e29a3 in run_mod (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x2149a3)
    #28 0x561a735e2a3c in PyRun_StringFlags (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x214a3c)
    #29 0x561a7358c661 in builtin_exec (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x1be661)
    #30 0x561a734dcad0 in _PyCFunction_FastCallDict (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x10ead0)
    #31 0x561a7356c67b in call_function (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19e67b)
    #32 0x561a7358ecb9 in _PyEval_EvalFrameDefault (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x1c0cb9)
    #33 0x561a73567458 in PyEval_EvalCodeEx (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x199458)
    #34 0x561a735681eb in PyEval_EvalCode (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x19a1eb)
    #35 0x561a735e29a3 in run_mod (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x2149a3)
    #36 0x561a735e2da0 in PyRun_FileExFlags (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x214da0)
    #37 0x561a735e2fa3 in PyRun_SimpleFileExFlags (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x214fa3)
    #38 0x561a735e6a9d in Py_Main (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x218a9d)
    #39 0x561a734ae4bd in main (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0xe04bd)
    #40 0x7f290458a444 in __libc_start_main (/lib64/libc.so.6+0x22444)
    #41 0x561a73595772  (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x1c7772)

0x6030003bc668 is located 0 bytes to the right of 24-byte region [0x6030003bc650,0x6030003bc668)
allocated by thread T0 here:
    #0 0x7f2904bfbe10 in operator new(unsigned long) /opt/conda/conda-bld/compilers_linux-64_1520532893746/work/.build/src/gcc-7.2.0/libsanitizer/asan/asan_new_delete.cc:80
    #1 0x7f28e2c07ef9 in __gnu_cxx::new_allocator<int>::allocate(unsigned long, void const*) /shared/raimis/opt/miniconda/envs/psi4/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/ext/new_allocator.h:111
    #2 0x7f28e2c07ef9 in std::allocator_traits<std::allocator<int> >::allocate(std::allocator<int>&, unsigned long) /shared/raimis/opt/miniconda/envs/psi4/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/bits/alloc_traits.h:436
    #3 0x7f28e2c07ef9 in std::_Vector_base<int, std::allocator<int> >::_M_allocate(unsigned long) /shared/raimis/opt/miniconda/envs/psi4/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/bits/stl_vector.h:172
    #4 0x7f28e2c07ef9 in std::_Vector_base<int, std::allocator<int> >::_M_create_storage(unsigned long) /shared/raimis/opt/miniconda/envs/psi4/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/bits/stl_vector.h:187
    #5 0x7f28e2c07ef9 in std::_Vector_base<int, std::allocator<int> >::_Vector_base(unsigned long, std::allocator<int> const&) /shared/raimis/opt/miniconda/envs/psi4/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/bits/stl_vector.h:138
    #6 0x7f28e2c07ef9 in std::vector<int, std::allocator<int> >::vector(std::vector<int, std::allocator<int> > const&) /shared/raimis/opt/miniconda/envs/psi4/x86_64-conda_cos6-linux-gnu/include/c++/7.2.0/bits/stl_vector.h:328
    #7 0x7f28e2c07ef9 in psi::IntegralTransform::process_spaces() /home/raimis/psi4_2.git/psi4/src/psi4/libtrans/integraltransform_moinfo.cc:265
    #8 0x7f28e2bc18ba in psi::IntegralTransform::initialize() /home/raimis/psi4_2.git/psi4/src/psi4/libtrans/integraltransform.cc:272
    #9 0x7f28e2bdfa02 in psi::IntegralTransform::IntegralTransform(std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::shared_ptr<psi::Matrix>, std::vector<std::shared_ptr<psi::MOSpace>, std::allocator<std::shared_ptr<psi::MOSpace> > >, psi::IntegralTransform::TransformationType, psi::IntegralTransform::OutputType, psi::IntegralTransform::MOOrdering, psi::IntegralTransform::FrozenOrbitals, bool) /home/raimis/psi4_2.git/psi4/src/psi4/libtrans/integraltransform.cc:195
    #10 0x7f28dbecd5ad in psi::detci::CIWavefunction::setup_mcscf_ints() /home/raimis/psi4_2.git/psi4/src/psi4/detci/ints.cc:360
    #11 0x7f28dbdc38d5 in psi::detci::CIWavefunction::init_mcscf_object() /home/raimis/psi4_2.git/psi4/src/psi4/detci/ciwave.cc:626
    #12 0x7f28dbdceeff in psi::detci::CIWavefunction::mcscf_object() /home/raimis/psi4_2.git/psi4/src/psi4/detci/ciwave.cc:655
    #13 0x7f28d97a0389 in pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}::operator()(psi::detci::CIWavefunction*) const /home/raimis/psi4_2.git/build/stage/include/pybind11/pybind11.h:72
    #14 0x7f28d97a0389 in std::shared_ptr<psi::SOMCSCF> pybind11::detail::argument_loader<psi::detci::CIWavefunction*>::call_impl<std::shared_ptr<psi::SOMCSCF>, pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&, 0ul, pybind11::detail::void_type>(pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&, pybind11::detail::index_sequence<0ul>, pybind11::detail::void_type&&) /home/raimis/psi4_2.git/build/stage/include/pybind11/cast.h:1870
    #15 0x7f28d97a0389 in std::enable_if<!std::is_void<std::shared_ptr<psi::SOMCSCF> >::value, std::shared_ptr<psi::SOMCSCF> >::type pybind11::detail::argument_loader<psi::detci::CIWavefunction*>::call<std::shared_ptr<psi::SOMCSCF>, pybind11::detail::void_type, pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&>(pybind11::cpp_function::cpp_function<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&) && /home/raimis/psi4_2.git/build/stage/include/pybind11/cast.h:1847
    #16 0x7f28d97a0389 in void pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}, std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction*, pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(pybind11::cpp_function::initialize<std::shared_ptr<psi::SOMCSCF>, psi::detci::CIWavefunction, , pybind11::name, pybind11::is_method, pybind11::sibling, char [10]>(std::shared_ptr<psi::SOMCSCF> (psi::detci::CIWavefunction::*)(), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(psi::detci::CIWavefunction*)#1}&&, std::shared_ptr<psi::SOMCSCF> (*)(psi::detci::CIWavefunction*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, char const (&) [10])::{lambda(pybind11::detail::function_call&)#3}::operator()(pybind11::detail::function_call) const /home/raimis/psi4_2.git/build/stage/include/pybind11/pybind11.h:154
    #17 0x7f28d8411da1 in pybind11::cpp_function::dispatcher(_object*, _object*, _object*) /home/raimis/psi4_2.git/build/stage/include/pybind11/pybind11.h:627
    #18 0x561a734dcb93 in _PyCFunction_FastCallDict (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x10eb93)

SUMMARY: AddressSanitizer: heap-buffer-overflow /home/raimis/psi4_2.git/psi4/src/psi4/libtrans/integraltransform_moinfo.cc:278 in psi::IntegralTransform::process_spaces()
Shadow bytes around the buggy address:
  0x0c068006f870: 00 00 00 fa fa fa 00 00 00 fa fa fa fd fd fd fa
  0x0c068006f880: fa fa fd fd fd fa fa fa 00 00 00 fa fa fa 00 00
  0x0c068006f890: 00 fa fa fa 00 00 00 fa fa fa 00 00 00 fa fa fa
  0x0c068006f8a0: 00 00 00 00 fa fa 00 00 00 00 fa fa 00 00 00 00
  0x0c068006f8b0: fa fa fd fd fd fd fa fa 00 00 00 00 fa fa 00 00
=>0x0c068006f8c0: 00 00 fa fa 00 00 00 00 fa fa 00 00 00[fa]fa fa
  0x0c068006f8d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c068006f8e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c068006f8f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c068006f900: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c068006f910: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==10081==ABORTING
Exit Status: infile ( 1 ); autotest ( None ); sowreap ( None ); overall ( 1 )

=================================================================
==10025==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 282802 byte(s) in 124 object(s) allocated from:
    #0 0x7f0f92dd6afc in __interceptor_malloc /opt/conda/conda-bld/compilers_linux-64_1520532893746/work/.build/src/gcc-7.2.0/libsanitizer/asan/asan_malloc_linux.cc:62
    #1 0x557f1794b8b3 in PyObject_Malloc (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0xe88b3)

Direct leak of 2 byte(s) in 2 object(s) allocated from:
    #0 0x7f0f92dd6afc in __interceptor_malloc /opt/conda/conda-bld/compilers_linux-64_1520532893746/work/.build/src/gcc-7.2.0/libsanitizer/asan/asan_malloc_linux.cc:62
    #1 0x557f17949fe0 in _PyObject_Alloc.isra.0 (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0xe6fe0)

Indirect leak of 19819 byte(s) in 22 object(s) allocated from:
    #0 0x7f0f92dd6afc in __interceptor_malloc /opt/conda/conda-bld/compilers_linux-64_1520532893746/work/.build/src/gcc-7.2.0/libsanitizer/asan/asan_malloc_linux.cc:62
    #1 0x557f1794b8b3 in PyObject_Malloc (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0xe88b3)

Indirect leak of 648 byte(s) in 1 object(s) allocated from:
    #0 0x7f0f92dd6df8 in __interceptor_realloc /opt/conda/conda-bld/compilers_linux-64_1520532893746/work/.build/src/gcc-7.2.0/libsanitizer/asan/asan_malloc_linux.cc:75
    #1 0x557f1797673c in _PyObject_GC_Resize (/shared/raimis/opt/miniconda/envs/psi4/bin/python3.6+0x11373c)

SUMMARY: AddressSanitizer: 303271 byte(s) leaked in 149 allocation(s).


0% tests passed, 1 tests failed out of 1

Label Time Summary:
casscf        =  27.28 sec*proc (1 test)
psi           =  27.28 sec*proc (1 test)
quicktests    =  27.28 sec*proc (1 test)

Total Test time (real) =  27.46 sec

The following tests FAILED:
	  3 - casscf-fzc-sp (Failed)
Errors while running CTest

@raimis
Copy link
Member Author

raimis commented Sep 14, 2018

Just on Linux it doesn't cause a crash for a normal build!

@andysim
Copy link
Member

andysim commented Sep 14, 2018

This is very helpful - thank you very much. I'll figure out where the problem is soon and send a PR to you. Commenting the line out will fix the problem, but will impact anybody who uses the library with custom MO spaces and the IWL integral format (which, admittedly, should be 0 people). Rather than suddenly deprecate the feature, I'd like to understand where the bad call is happening and fix that instead. Thank you for your patience.

@andysim
Copy link
Member

andysim commented Sep 23, 2018

I finally figured out where the problem was, and have created a PR to fix it. Once that PR is merged into your branch, this fix should be good to go. Sorry for taking so long on this - it was quite a tricky issue to figure out.

@andysim andysim merged commit 5c1472c into psi4:master Sep 23, 2018
@loriab loriab added this to the Psi4 1.3 milestone Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants