Skip to content

Occasional CClib parsing error in QM using Mopac #134

Description

@connie

This error has popped up a few times in my jobs, but is not easily reproducible.

Using the cclib parser on the output file of interest it works correctly, and when I rerun the job keeping the original QM files it also seems to run fine the second time around. However, I have seen this error come up in other jobs.

The best fix may be to rerun MOPAC through a second attempt?


2 radicals on C1CC(CCC1(C)[O])[C](C)C exceeds limit of 0. Using HBI method.
Output file /home/connieg/QMfiles/CMLYGGFIXXLYQT-UHFFFAOYSA.out does not (yet) exist.
Trying MopacMolPM3 attempt 1 of 10 on molecule C1(CCC(C(C)C)CC1)(C)O.
Successful MOPAC quantum result found in /home/connieg/QMfiles/CMLYGGFIXXLYQT-UHFFFAOYSA.out
Traceback (most recent call last):
  File "/home/connieg/Code/RMG-Py/rmg.py", line 136, in <module>
    cProfile.runctx(command, global_vars, local_vars, stats_file)
  File "/usr/lib/python2.6/cProfile.py", line 49, in runctx
    prof = prof.runctx(statement, globals, locals)
  File "/usr/lib/python2.6/cProfile.py", line 140, in runctx
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "/home/connieg/Code/RMG-Py/rmgpy/rmg/main.py", line 329, in execute
    self.initialize(args)
  File "/home/connieg/Code/RMG-Py/rmgpy/rmg/main.py", line 317, in initialize
    self.reactionModel.enlarge([spec for spec in self.initialSpecies if spec.reactive])
  File "/home/connieg/Code/RMG-Py/rmgpy/rmg/model.py", line 693, in enlarge
    spec.generateThermoData(database, quantumMechanics=self.quantumMechanics)
  File "/home/connieg/Code/RMG-Py/rmgpy/rmg/model.py", line 124, in generateThermoData
    tdata = database.thermo.estimateRadicalThermoViaHBI(molecule, quantumMechanics.getThermoData)
  File "/home/connieg/Code/RMG-Py/rmgpy/data/thermo.py", line 788, in estimateRadicalThermoViaHBI
    thermoData = stableThermoEstimator(saturatedStruct)
  File "/home/connieg/Code/RMG-Py/rmgpy/qm/main.py", line 147, in getThermoData
    thermo0 = qm_molecule_calculator.generateThermoData()
  File "/home/connieg/Code/RMG-Py/rmgpy/qm/molecule.py", line 252, in generateThermoData
    self.qmData = self.generateQMData()
  File "/home/connieg/Code/RMG-Py/rmgpy/qm/mopac.py", line 205, in generateQMData
    result = self.parse() # parsed in cclib
  File "/home/connieg/Code/RMG-Py/rmgpy/qm/mopac.py", line 144, in parse
    qmData = CCLibData(cclibData, radicalNumber+1)
  File "/home/connieg/Code/RMG-Py/rmgpy/qm/qmdata.py", line 79, in __init__
    molecularMass = (cclib_data.molmass,'amu'),
AttributeError: 'ccData' object has no attribute 'molmass'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions