Documentation for GCAM
The Global Change Analysis Model
View the Project on GitHub JGCRI/gcam-doc
GCAM prints different levels of messages to help identify issues.
WARNING: a notification of a potential problem; however, since this could be benign the model will continue (e.g., unrecognized text string in an xml input file).
ERROR: a notification of a likely problem. In some cases, the model will continue to run (e.g., the sum of area read in for all land leafs in a region is more than 0.1% different from the total area read in for that region); in other cases, the model will abort (e.g., if the difference is more than 5%).
SEVERE: Major issue that will prohibit the model from running properly (e.g., no world within the scenario container)
Message immediately follows “Parsing input files…“
Message: ERROR: Unexpected XML Read Exception
Possible causes:
The gcamdata system has not yet been run or did not produce XMLs
The XMLInputFileName
or BatchFileName
(or their pathways) are incorrect
If running from code editor, the project’s working directory needs to be set to the exe/ folder. Sometimes it defaults to the cvs/objects/build/*/
folder
Message immediately follows the parsing of an individual input file.
Message: ERROR: Unexpected XML Read Exception
Possible causes:
File was not found (look for typos in the file name)
File was not correctly formatted (when edited by hand)
Message immediately follows “XML parsing complete.”
Message: ERROR: Could not find global technology for...
Possible causes:
Mis-spelled a technology name (Cement instead of cement). Strings in GCAM are case-sensitive.
Missing technology
Added some land input in some region / basin / crop combination that does not exist
Model will not abort, but will have problems solving later.
Message: Using negative-emissions-final-demand with target-finder without explicitly creating a market for CO2 may hinder solution performance. Please read in a policy file with a zero tax.
Cause: A carbon price must be read in with target finder in order to set up dependencies.
A calibration failure means that the read-in values for supply and demand do not match.
Message: Model did not calibrate successfully in period...
Cause: Unbalanced supply and demand in calibration years. Check all calibration data, including coefficients to debug.
A solver failure means that the model cannot find a set of prices where supply and demand are equal for all commodities.
Message: Model did not solve within set iteration...
Note: solution issues can be difficult to decipher
Things to try:
Useful to make ”one” change at a time
Double check your configuration
Use supply / demand curves feature to check problem markets (input/extra/supply_demand_curves.xml
). Discontinuities and vertical supply or demand curves are difficult to solve.
Increase the iteration count in the solver configuration file. [Note: there is no guarantee this will work, but it is easy to try and has helped in the past]
Ask for help on GitHub: https://github.com/jgcri/gcam-core/issues