-
Notifications
You must be signed in to change notification settings - Fork 250
Closed as not planned
Labels
abandonedabandoned issue/PR as determined by actions botabandoned issue/PR as determined by actions botstalestale issue/PR as determined by actions botstale issue/PR as determined by actions bot
Description
Bug Description
RMG can't start from a seed mechanism under certain conditions. When I include my library of DFT calculations as a library but not as part of the seed, the RMG run crashes with the following error:
Making seed mechanism...
Conducting simulation of reaction system 1...
At time 0.0000e+00 s, species [CH2]CCC(24) at 76545039.70987049 exceeded the minimum rate for simulation interruption of 1.0
At time 0.0000e+00 s, species C[CH]CC(23) at 2872877563043.813 exceeded the minimum rate for simulation interruption of 1.0
At time 0.0000e+00 s, species [CH2](27) at 209469.38874040215 exceeded the minimum rate for simulation interruption of 1.0
At time 0.0000e+00 s, species CCC(28) at 209469.38874040215 exceeded the minimum rate for simulation interruption of 1.0
At time 0.0000e+00 s, species C[CH2](29) at 892271302189.8767 exceeded the minimum rate for simulation interruption of 1.0
At time 0.0000e+00 s, species [CH3](31) at 59248654183.99109 exceeded the minimum rate for simulation interruption of 1.0
At time 0.0000e+00 s, species [CH2]CC(30) at 59248654183.99109 exceeded the minimum rate for simulation interruption of 1.0
Exceeded max number of objects...removing excess objects
Reached max number of objects...preparing to terminate
At time 0.0000e+00 s, species C[CH]CC(23) at rate ratio 2872877563043.813 exceeded the minimum rate for moving to model core of 0.1
terminating simulation due to interrupt...
Adding species C[CH]CC(23) to model core
Traceback (most recent call last):
File "/home/sevy/miniconda3/envs/rmg_env/lib/python3.7/site-packages/julia/pseudo_python_cli.py", line 308, in main
python(**vars(ns))
File "/home/sevy/miniconda3/envs/rmg_env/lib/python3.7/site-packages/julia/pseudo_python_cli.py", line 59, in python
scope = runpy.run_path(script, run_name="__main__")
File "/home/sevy/miniconda3/envs/rmg_env/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/home/sevy/miniconda3/envs/rmg_env/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/home/sevy/miniconda3/envs/rmg_env/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/sevy/rmg/RMG-Py/rmg.py", line 118, in <module>
main()
File "/home/sevy/rmg/RMG-Py/rmg.py", line 112, in main
rmg.execute(**kwargs)
File "/home/sevy/rmg/RMG-Py/rmgpy/rmg/main.py", line 1029, in execute
self.reaction_model.enlarge(objectToEnlarge)
File "/home/sevy/rmg/RMG-Py/rmgpy/rmg/model.py", line 644, in enlarge
reactions_moved_from_edge = self.add_species_to_core(new_species)
File "/home/sevy/rmg/RMG-Py/rmgpy/rmg/model.py", line 1144, in add_species_to_core
self.edge.phase_system.pass_species(spec.label, self.core.phase_system)
File "/home/sevy/rmg/RMG-Py/rmgpy/rmg/reactors.py", line 144, in pass_species
assert spc.name not in phasesys.phases[phase_label].names, spc.name
AttributeError: 'NoneType' object has no attribute 'name'
What's very strange is that it runs just fine if I include my DFT library as part of the seed.
How To Reproduce
My example input file.
input.txt
I was able to reproduce this with a very minimal version of my kinetics library.
Here's reactions.py:
#!/usr/bin/env python
# encoding: utf-8
name = "harris_butane"
shortDesc = ""
longDesc = """
"""
autoGenerated=False
entry(
index = 288,
label = "OH(15) + butane(1) <=> H2O(8) + [CH2]CCC(24)",
degeneracy = 1.0,
elementary_high_p = True,
kinetics = Arrhenius(A=(3.94746e+06,'cm^3/(mol*s)'), n=2.27144, Ea=(-0.405729,'kJ/mol'), T0=(1,'K'), Tmin=(298,'K'), Tmax=(2500,'K'), comment="""Fitted to 50 data points; dA = *|/ 1.06999, dn = +|- 0.00888755, dEa = +|- 0.0483657 kJ/mol"""),
)
and dictionary.txt:
OH(15)
multiplicity 2
1 O u1 p2 c0 {2,S}
2 H u0 p0 c0 {1,S}
butane(1)
1 C u0 p0 c0 {2,S} {3,S} {5,S} {6,S}
2 C u0 p0 c0 {1,S} {4,S} {7,S} {8,S}
3 C u0 p0 c0 {1,S} {9,S} {10,S} {11,S}
4 C u0 p0 c0 {2,S} {12,S} {13,S} {14,S}
5 H u0 p0 c0 {1,S}
6 H u0 p0 c0 {1,S}
7 H u0 p0 c0 {2,S}
8 H u0 p0 c0 {2,S}
9 H u0 p0 c0 {3,S}
10 H u0 p0 c0 {3,S}
11 H u0 p0 c0 {3,S}
12 H u0 p0 c0 {4,S}
13 H u0 p0 c0 {4,S}
14 H u0 p0 c0 {4,S}
H2O(8)
1 O u0 p2 c0 {2,S} {3,S}
2 H u0 p0 c0 {1,S}
3 H u0 p0 c0 {1,S}
[CH2]CCC(24)
multiplicity 2
1 C u0 p0 c0 {2,S} {3,S} {5,S} {6,S}
2 C u0 p0 c0 {1,S} {4,S} {7,S} {8,S}
3 C u0 p0 c0 {1,S} {9,S} {10,S} {11,S}
4 C u1 p0 c0 {2,S} {12,S} {13,S}
5 H u0 p0 c0 {1,S}
6 H u0 p0 c0 {1,S}
7 H u0 p0 c0 {2,S}
8 H u0 p0 c0 {2,S}
9 H u0 p0 c0 {3,S}
10 H u0 p0 c0 {3,S}
11 H u0 p0 c0 {3,S}
12 H u0 p0 c0 {4,S}
13 H u0 p0 c0 {4,S}
Expected Behavior
RMG should be able to use any of its kinetics libraries as seed mechanisms without crashing.
Installation Information
Describe your installation method and system information.
- OS: Ubuntu 23.10
- Installation method: source
- RMG version information:
- RMG-Py: b041507
- RMG-database: f48dae1abf4b50cfbe5fa90df0e4ebe32257afcb
Additional Context
This problem has been ongoing for a while and is related to #2382
Metadata
Metadata
Assignees
Labels
abandonedabandoned issue/PR as determined by actions botabandoned issue/PR as determined by actions botstalestale issue/PR as determined by actions botstale issue/PR as determined by actions bot