Q-Chem Error using aug-ANO-pVDZ basis set

Hello,

I have encountered an error for both the aug-ANO-pVDZ and saug-ANO-pVDZ basis sets (as custom basis set in the $basis input section, taken from basissetexchange.org) in Q-Chem. This is probably caused by the diffuse functions in the basis set and/or the large number of primitives (corresponding ANO-pVDZ basis set works fine), but so far I have not been able to solve this issue. I played around with the BASIS_LIN_DEP_THRESH keyword up to 10⁻² without any effect. I also tried different versions of Q-chem 5.4.2 and 6.1.0, for both, the same error occurs for the same systems. Setting purecart = 2 does not change anything as well. I put the xyz coords of a small random system that did not work at the end. While the random system is a NCI complex, the same error also occured in solely planar aromatic systems (Q-CHEM OUTPUT cutout).

Is there a way to fix this?
Any help is greatly appreciated!

Q-CHEM INPUT:

$rem
thresh 12
threads 28
jobtype sp
method hf
basis gen
scf_convergence 8
mem_static 4000
mem_total 378000
sym_ignore true
symmetry false
unrestricted false
purecart 1
$end

$molecule
read input.xyz
$end

$basis
Too long to put here, aug-ANO-pVDZ basis for elements: H,B,C,N,O,F,P (taken from basissetexchange.org)
$end

Q-CHEM OUTPUT:

Nuclear Repulsion Energy = 3097.49471181 hartrees
There are 108 alpha and 108 beta electrons
Requested basis set is non-standard
There are 405 shells and 927 basis functions

Total QAlloc Memory Limit 196000 MB
Mega-Array Size 1956 MB
MEM_STATIC part 2000 MB

Q-Chem fatal error occurred in module /tmp1/QC542_TRUNK/forms2/s2calc.F, line 702:

MaxKIJ too small in S2calc
Segmentation fault
Error: in the serial run

Small random system:

14

B -1.03927480644227 -0.96858445333904 -0.13519337137261
O -1.15657661443435 -1.80222652041784 0.86540129446149
H -1.11467418161827 -1.41610885383906 1.78768032636276
F -1.07392019710804 -1.37116970992706 -1.39367163700384
F -0.88042347774331 0.34907932090205 0.02327049501407
P 1.09648952021091 -2.53260910691365 3.51391113732089
C -0.50086625171782 -1.82693825675219 4.20341137174704
H 0.48863424890111 -3.19287828425948 2.45261042702994
H 1.06118164852458 -3.66250360423255 4.33024616272481
N -0.96049752285540 -0.76284336473263 3.31872937027412
H -0.30701247845795 -1.48178441211282 5.23051967056548
H -1.27164552094371 -2.60056958733006 4.24055238961041
H -0.26963162700966 -0.02053788646720 3.26155507003361
H -1.83054273930619 -0.35996528057847 3.65083729323361

Can you please provide an input file? I would also try setting THRESH=16 and S2THRESH=16.

Thanks for the fast reply! Setting THRESH=16 and S2THRESH=16 unfortunately did not help.
Here an input file:
$rem
thresh 16
s2thresh 16
scf_max_cycles 250
threads 28
jobtype sp
method hf
basis gen
scf_convergence 8
mem_static 2000
mem_total 378000
sym_ignore true
symmetry false
unrestricted false
purecart 1
$end

$molecule
0 1
C -0.72539714931273 -1.22235936535533 -0.00160629123825
C 0.68218230596840 -1.21561758685967 0.00125266763739
C 1.39180225471575 0.00000319672029 -0.00160623517060
C -1.42336345077517 -0.00000318631104 0.00125416492419
C -0.72540269507309 1.22235616392379 -0.00160593617751
C 0.68217679127744 1.21562076211314 0.00125281432486
C 0.68132188714349 3.65528892318717 0.00007043915475
C -0.70438558373705 3.63730467643232 0.00025304439816
C -1.44294154235630 2.46510986142603 -0.00001111980099
N -2.83302681666957 -0.00000638618285 0.00046026340786
C -3.53578834820928 1.22052902722220 0.00007017246126
C -2.82737613726455 2.41157968457274 0.00025298376112
C -1.44293033883160 -2.46511632484671 -0.00001137947869
C -2.82736518157433 -2.41159243924042 0.00025271279512
C -3.53578279507839 -1.22054500207933 0.00006998005729
C -4.93544182226883 -1.19247047120331 -0.00019727148104
C -5.62428555862089 -0.00001272988057 -0.00030826430043
C -4.93544724646331 1.19244814402915 -0.00019705703855
C 1.40547208196158 4.85339052809574 -0.00019630888978
C -0.70436905830144 -3.63730778588895 0.00025233718009
C 0.68133850293737 -3.65528575686178 0.00006978127367
N 1.38697286256897 -2.43640308949788 0.00045945363971
C 2.79538239552010 -2.43472864832797 0.00006952982003
C 3.47268516522073 -1.22570195310593 0.00025199434545
C 2.82681454836240 0.00000647129028 -0.00001188184002
C 3.47267958616070 1.22571782384750 0.00025214661061
C 2.79537133071738 2.43474144957219 0.00006996299769
C 3.47087259230094 3.66093430054373 -0.00019659785725
C 2.78258985897672 4.85370034094700 -0.00030717497303
N 1.38696178932062 2.43640947412490 0.00045983536677
C 1.40549414488966 -4.85338406155028 -0.00019732304543
C 2.78261192614487 -4.85368760373684 -0.00030821278559
C 3.47088923259040 -3.66091843819712 -0.00019732340072
H -1.21142008294950 4.58975097130229 0.00058571590843
H -3.39870520018010 3.32689965092521 0.00058546270401
H -3.39869008569859 -3.32691500775329 0.00058504679211
H -5.44791337323190 -2.14106471573808 -0.00035315763051
H -6.70524501998422 -0.00001519261148 -0.00052728403793
H -5.44792310897092 2.14104006203659 -0.00035280816512
H 0.84017312321061 5.77148114704424 -0.00035169429515
H -1.21139925816919 -4.58975636868198 0.00058471043494
H 4.55104118007630 -1.26286025732812 0.00058427849957
H 4.55103542996727 1.26288102901063 0.00058444440462
H 4.54861548285142 3.63046225605303 -0.00035212058375
H 3.32310385596976 5.78982015206995 -0.00052569394138
H 0.84019937982566 -5.77147726548437 -0.00035296610764
H 3.32313015901156 -5.78980496777382 -0.00052698707972
H 4.54863198603082 -3.63044149199298 -0.00035285358055
$end

$basis
H 0
S 8 1.00
402.0099000000 -0.0004429508
60.2419600000 -0.0032507467
13.7321700000 -0.0181152250
3.9045050000 -0.0636329998
1.2827090000 -0.2221636410
0.4655440000 -0.4041047831
0.1811200000 -0.3481081094
0.0727910000 -0.0927213251
S 8 1.00
402.0099000000 -0.0005857917
60.2419600000 -0.0020963443
13.7321700000 -0.0304299021
3.9045050000 -0.0288272025
1.2827090000 -0.7526945634
0.4655440000 -0.5303060000
0.1811200000 0.9524676196
0.0727910000 0.1944104297
S 8 1.00
402.0099000000 -0.0006083150
60.2419600000 -0.0052483500
13.7321700000 -0.0254171128
3.9045050000 -0.2376406403
1.2827090000 -1.7096583473
0.4655440000 2.6789654303
0.1811200000 -1.0333863147
0.0727910000 -0.2486237019
P 6 1.00
9.8800000000 0.0055312240
3.9500000000 0.0053232428
1.5800000000 0.1503847471
0.6300000000 0.5829443939
0.2500000000 0.3399470552
0.1000000000 0.0317494051
P 6 1.00
9.8800000000 -0.0280600947
3.9500000000 0.0343704220
1.5800000000 -0.8940158660
0.6300000000 -0.2472687692
0.2500000000 0.8487826893
0.1000000000 0.0228203559
****
C 0
S 16 1.00
312100.0000000000 0.0000056888
46740.0000000000 0.0000442122
10640.0000000000 0.0002324717
3013.0000000000 0.0009813983
982.8000000000 0.0035604858
354.8000000000 0.0114692478
138.4000000000 0.0330825487
57.3500000000 0.0842739202
24.9200000000 0.1811835207
11.2300000000 0.3058726609
5.2010000000 0.3428996624
2.4260000000 0.1785203122
0.9673000000 0.0174929057
0.4456000000 -0.0069381856
0.1971000000 -0.0045895926
0.0863500000 -0.0017787010
S 16 1.00
312100.0000000000 0.0000011517
46740.0000000000 0.0000089401
10640.0000000000 0.0000471067
3013.0000000000 0.0001985305
982.8000000000 0.0007241159
354.8000000000 0.0023373031
138.4000000000 0.0068692727
57.3500000000 0.0179514067
24.9200000000 0.0414871653
11.2300000000 0.0795916232
5.2010000000 0.1258249776
2.4260000000 0.1068228241
0.9673000000 -0.1286390810
0.4456000000 -0.4398665406
0.1971000000 -0.4462025705
0.0863500000 -0.1396137797
S 16 1.00
312100.0000000000 0.0000014615
46740.0000000000 0.0000113996
10640.0000000000 0.0000596491
3013.0000000000 0.0002537561
982.8000000000 0.0009151876
354.8000000000 0.0029997075
138.4000000000 0.0086902270
57.3500000000 0.0233513200
24.9200000000 0.0532963047
11.2300000000 0.1071421338
5.2010000000 0.1715711639
2.4260000000 0.1810506143
0.9673000000 -0.6618969704
0.4456000000 -0.9413749900
0.1971000000 0.6896636760
0.0863500000 0.7079116403
S 16 1.00
312100.0000000000 -0.0000020729
46740.0000000000 -0.0000152244
10640.0000000000 -0.0000868378
3013.0000000000 -0.0003294248
982.8000000000 -0.0013722962
354.8000000000 -0.0037795404
138.4000000000 -0.0136469384
57.3500000000 -0.0290748718
24.9200000000 -0.0939954201
11.2300000000 -0.1270398885
5.2010000000 -0.3903688653
2.4260000000 0.0967690209
0.9673000000 2.1831711796
0.4456000000 -1.6380587318
0.1971000000 -1.3661318212
0.0863500000 1.6011180083
S 16 1.00
312100.0000000000 -0.0000031477
46740.0000000000 -0.0000156662
10640.0000000000 -0.0001494472
3013.0000000000 -0.0002585570
982.8000000000 -0.0026575875
354.8000000000 -0.0018759069
138.4000000000 -0.0302307890
57.3500000000 -0.0061619247
24.9200000000 -0.2520314520
11.2300000000 0.1288034969
5.2010000000 -1.4325407433
2.4260000000 2.6528636797
0.9673000000 -0.0348171778
0.4456000000 -3.9353705417
0.1971000000 4.9042834374
0.0863500000 -2.2872025967
P 10 1.00
295.2000000000 0.0001429536
69.9800000000 0.0012248907
22.6400000000 0.0063589239
8.4850000000 0.0235884808
3.4590000000 0.0696777731
1.5040000000 0.1664464149
0.6783000000 0.2933564994
0.3087000000 0.3512017572
0.1400000000 0.2563868868
0.0617800000 0.0762169165
P 10 1.00
295.2000000000 0.0001641191
69.9800000000 0.0015014551
22.6400000000 0.0073769191
8.4850000000 0.0284317842
3.4590000000 0.0674783713
1.5040000000 0.2857591239
0.6783000000 0.5586074972
0.3087000000 -0.0898519083
0.1400000000 -0.6546507650
0.0617800000 -0.2604391448
P 10 1.00
295.2000000000 0.0004063048
69.9800000000 0.0035967590
22.6400000000 0.0197550020
8.4850000000 0.0825675839
3.4590000000 0.2839301676
1.5040000000 0.7770202553
0.6783000000 -0.4435648258
0.3087000000 -1.0388445407
0.1400000000 0.5735322398
0.0617800000 0.3869815823
D 5 1.00
4.5420000000 0.0143889048
1.9790000000 0.0713989420
0.8621000000 0.3570760522
0.3756000000 0.4803354126
0.1636000000 0.2551176449
D 5 1.00
4.5420000000 -0.0007635462
1.9790000000 0.3071489206
0.8621000000 0.7744199003
0.3756000000 -0.4242215167
0.1636000000 -0.5691046088
****
N 0
S 16 1.00
432300.0000000000 0.0000055936
64700.0000000000 0.0000435138
14720.0000000000 0.0002289287
4170.0000000000 0.0009650170
1361.0000000000 0.0035021904
491.2000000000 0.0112921163
191.6000000000 0.0326128265
79.4100000000 0.0832972697
34.5300000000 0.1799856581
15.5800000000 0.3050035130
7.2320000000 0.3411593117
3.3820000000 0.1774826966
1.3690000000 0.0198840957
0.6248000000 -0.0012466347
0.2747000000 0.0010401039
0.1192000000 -0.0001265860
S 16 1.00
432300.0000000000 0.0000012377
64700.0000000000 0.0000096146
14720.0000000000 0.0000507014
4170.0000000000 0.0002132911
1361.0000000000 0.0007784594
491.2000000000 0.0025133634
191.6000000000 0.0073972480
79.4100000000 0.0193531475
34.5300000000 0.0449446014
15.5800000000 0.0862431945
7.2320000000 0.1342509759
3.3820000000 0.1060138777
1.3690000000 -0.1384170918
0.6248000000 -0.4391267599
0.2747000000 -0.4313435809
0.1192000000 -0.1507186091
S 16 1.00
432300.0000000000 0.0000013948
64700.0000000000 0.0000109071
14720.0000000000 0.0000569709
4170.0000000000 0.0002427563
1361.0000000000 0.0008723951
491.2000000000 0.0028758828
191.6000000000 0.0082942767
79.4100000000 0.0225053948
34.5300000000 0.0512093507
15.5800000000 0.1048497272
7.2320000000 0.1644290239
3.3820000000 0.1710558715
1.3690000000 -0.5974990637
0.6248000000 -0.9102913983
0.2747000000 0.5234527691
0.1192000000 0.8200521439
S 16 1.00
432300.0000000000 -0.0000020720
64700.0000000000 -0.0000153930
14720.0000000000 -0.0000865570
4170.0000000000 -0.0003344672
1361.0000000000 -0.0013599801
491.2000000000 -0.0038661715
191.6000000000 -0.0134702049
79.4100000000 -0.0300266728
34.5300000000 -0.0925316587
15.5800000000 -0.1386151714
7.2320000000 -0.3824931664
3.3820000000 0.0954870859
1.3690000000 2.0469664361
0.6248000000 -1.3008336658
0.2747000000 -1.6185133598
0.1192000000 1.6426401236
S 16 1.00
432300.0000000000 -0.0000030819
64700.0000000000 -0.0000160444
14720.0000000000 -0.0001449299
4170.0000000000 -0.0002751497
1361.0000000000 -0.0025504308
491.2000000000 -0.0021954854
191.6000000000 -0.0287697195
79.4100000000 -0.0094239217
34.5300000000 -0.2382691478
15.5800000000 0.0832092990
7.2320000000 -1.3710428891
3.3820000000 2.5810791286
1.3690000000 0.0968375206
0.6248000000 -4.0287287839
0.2747000000 4.8372747145
0.1192000000 -2.2039434874
P 10 1.00
415.9000000000 0.0001493515
98.6100000000 0.0012852780
31.9200000000 0.0067482167
12.0000000000 0.0254480842
4.9190000000 0.0755743643
2.1480000000 0.1758280802
0.9696000000 0.2962195131
0.4399000000 0.3441099405
0.1978000000 0.2503615773
0.0860300000 0.0763931220
P 10 1.00
415.9000000000 0.0001951090
98.6100000000 0.0017570196
31.9200000000 0.0089935233
12.0000000000 0.0354017865
4.9190000000 0.0970144192
2.1480000000 0.3245625207
0.9696000000 0.5070185471
0.4399000000 -0.1454680195
0.1978000000 -0.6201309743
0.0860300000 -0.2427206584
P 10 1.00
415.9000000000 0.0004162692
98.6100000000 0.0036425363
31.9200000000 0.0208775389
12.0000000000 0.0869515693
4.9190000000 0.3019545646
2.1480000000 0.7481924316
0.9696000000 -0.5366016092
0.4399000000 -0.9624028745
0.1978000000 0.5979386882
0.0860300000 0.3812822948
D 5 1.00
6.7170000000 0.0153532025
2.8960000000 0.0739377840
1.2490000000 0.3611149183
0.5380000000 0.4784008261
0.2320000000 0.2548775648
D 5 1.00
6.7170000000 0.0133057296
2.8960000000 0.3124701443
1.2490000000 0.7432037059
0.5380000000 -0.3999521968
0.2320000000 -0.5773663131
****
$end

The error message is a bit cryptic, but I think you may be running up against a hard-coded limit on the number of Gaussian primitives. Please contact Q-Chem support to see if there is a workaround.