Hi,
I am trying to optimize this structure:
C -0.772191 -1.116645 0.080280
C -1.403991 0.111671 -0.112749
N -2.816532 0.197230 -0.221534
C -0.573443 1.232083 -0.190826
N -1.147955 2.518080 -0.386874
C 0.792997 1.118523 -0.081870
N 1.618518 2.259836 -0.162821
C 1.371959 -0.113940 0.107981
N 2.784679 -0.184794 0.214953
C 0.581278 -1.257865 0.191689
N 1.172484 -2.531297 0.387361
H -2.384224 -2.470036 -0.495415
H -1.433310 -2.933263 0.931882
H -3.399124 0.829344 0.361427
H -3.300150 -0.397406 -0.915112
H -1.715984 3.005787 0.365447
H -1.034816 3.043833 -1.288650
H 2.276628 2.412628 -0.955082
H 1.560204 2.966626 0.599791
H 3.421350 0.316898 -0.441591
H 3.235260 -0.750304 0.966116
H 1.334208 -3.115140 -0.456124
H 1.441151 -2.882921 1.341144
I tried to use both PBE0 and B3LYP and for both of them:
- I get this error:
Caught AlgError exception
Current algorithm/dynamic_level is 0.
Alternative approaches are not available or turned on.
Maximum dynamic_level reached.
A critical optimization-specific error has occured.
Resetting all optimization options for potential queued jobs.
Error caught:Maximum dynamic_level reached.
Traceback (most recent call last):
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 68, in optimize
dq = opt_object.take_step(fq, H, energy, return_str=False)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 231, in take_step
achieved_dq, returned_str = self.opt_method.take_step(fq, H, energy, return_str=True)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/stepAlgorithms.py", line 412, in take_step
return super().take_step(fq, H, energy, return_str)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/stepAlgorithms.py", line 186, in take_step
raise AlgError("opt.py: Step is far too large.")
optking.exceptions.AlgError: opt.py: Step is far too large.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 73, in optimize
opt_object.alg_error_handler(AF)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 370, in alg_error_handler
raise OptError("Maximum dynamic_level reached.")
optking.exceptions.OptError: Maximum dynamic_level reached.
- Despite the error message, the output xyz file is generated anyway. It’s apparently ok for B3LYP, but physically meaningless for PBE0 (opening the structure with a visualization software, there are some fluctuating H atoms).
With PBE0 (which is the method that I actually need to use, I did the calculation with B3LYP just for testing), I tried to modify the dynamic_level, setting it to 1 and 2, with this syntax:
psi4.set_options({"basis":self.basis_set,
"geom_maxiter":1000,
"MAXITER":1000,
"G_CONVERGENCE": "GAU",
"D_CONVERGENCE": 6,
"DYNAMIC_LEVEL": 1,
"E_CONVERGENCE": 6})
but I get this error:
Caught AlgError exception
'NoneType' object has no attribute 'frag_mode'
A non-optimization-specific error has occurred.
Resetting all optimization options for potential queued jobs.
Error Type: <class 'AttributeError'>
Traceback (most recent call last):
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 67, in optimize
H, fq, energy = opt_object.start_step(H)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 186, in start_step
make_internal_coords(self.molsys)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 568, in make_internal_coords
if params.frag_mode == "SINGLE":
AttributeError: 'NoneType' object has no attribute 'frag_mode'
Error caught:'NoneType' object has no attribute 'frag_mode'
Traceback (most recent call last):
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 67, in optimize
H, fq, energy = opt_object.start_step(H)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 186, in start_step
make_internal_coords(self.molsys)
File "/home/lg1u22/.conda/envs/dev-cspy/lib//python3.8/site-packages/optking/optimize.py", line 568, in make_internal_coords
if params.frag_mode == "SINGLE":
AttributeError: 'NoneType' object has no attribute 'frag_mode'
The last desperate trial I did was that of adding this:
psi4.set_options({"basis":self.basis_set,
"geom_maxiter":1000,
"MAXITER":1000,
"G_CONVERGENCE": "GAU",
"D_CONVERGENCE": 6,
"DYNAMIC_LEVEL": 1,
"FRAG_MODE": "SINGLE",
"E_CONVERGENCE": 6})
And again I got the same error.
What could I do to fix it?
Kind regards,
Lucia