Open Cermouth opened 2 years ago
I unpacked the release package again and that errors still appeared. After long messages of unsolved markets (that I met before), there are the messages I mentioned in this issue:
ERROR: ERROR:Receieve hector exception while running year 2026: ERROR:* Program exception: msg: Assertion failed: timestep must equal 1 ERROR:func: Hector::OHComponent::run ERROR:file: C:\Users\Pralit\model\gcam-core\cvs\objects\climate\source\hector\src\oh_component.cpp ERROR:ffile: C:\Users\Pralit\model\gcam-core\cvs\objects\climate\source\hector\src\oh_component.cpp ERROR: ERROR:line: 144 ERROR:
Could anyone help me with that? I didn't know how to deal with Hector issues... Thanks in advance!
It seems like in ghg_link_global.xml
, all markets are regions ... <market>USA</market>
, <market>Africa_Northern</market>
etc., I'm guessing all of them should be updated into <market>Global</market>
, because the ghg_net0_constraint_global.xml
is defined under a Global market
@ouyang363 Thanks for your advice! I updated the markets to Global and tried to re-run the model. But other errors occurred... Do you know what's wrong here?
ERROR: ERROR:Receieve hector exception while running year 2046: ERROR:* Program exception: msg: Assertion failed: box carbon is negative ERROR:func: Hector::oceanbox::update_state ERROR:file: C:\Users\Pralit\model\gcam-core\cvs\objects\climate\source\hector\src\oceanbox.cpp ERROR:ffile: C:\Users\Pralit\model\gcam-core\cvs\objects\climate\source\hector\src\oceanbox.cpp ERROR: ERROR:line: 337 ERROR:
Thanks in advance for anyone's attention and help! I uploaded the files I used this time here and hope that can be useful for finding errors: ghg0g_main_log.zip
<constraint year="2050">0</constraint>
Three things: 1) try not using a hard-zero constraints (you can use a -2 instead) 2) increase maximum iteration times from the default 2500 into 5000 3) include the dac_ssp2.xml add-on (already in the xml folder but not in default configuration)
Try #1 and #2 first, if still having issues, then add #3.
In GCAM 6.0 the accounting for the negative emission budget changed. Making it more stringent than in GCAM 5.4. Ultimately this depends on a number of factors, however most likely a net zero GHG constraint and stringent limit on negative CO2 emissions renders yours scenario infeasible. (I.e. too many non-CO2 GHG emissions which can not be sufficiently offset by negative CO2 emissions).
I would recommend removing the negative_emissions_budget_gSSP2.xml
add on file and including the dac_ssp2.xml
add on.
@pralitp @ouyang363 Thank you so much! It worked finally. Is there any document telling the difference about the influence of the emissions budget?
Great! To complete this story, would you mind sharing all the modifications you've taken? (which can greatly help other users and improve our internal documentation)
Sure! I just followed what @ouyang363 and @pralitp recommended: 1) use emissions constraints of -1 instead of 0 2) increase maximum iteration times from the default 2500 into 5000 3) remove the negative_emissions_budget_gSSP2.xml line in the configuration xml 3) include the dac_ssp2.xml add-on in the configuration xml
Hello there. I am sorry to ask again about this issue, because I was trying to change the global GHG constraints to regional ones. I used the regional emissions constraints and GHG markets similar to the files for global constraints, but found the results are incorrect as shown in the screenshot, where only USA has net-zero emissions around 2050 and other regions just have emissions like that in the reference scenario. I didn't see any errors when running the model. So what may be the problem?
if setting as regional markets, you need to 1) have region-specific constraints under each region: changing from <market>Global</market>
into <market>USA</market>; <market>Canada</market>
etc. for each region. 2) in the linked ghg file, also linked to regional markets for each region <market>Global</market>
into <market>USA</market>; <market>Canada</market>
etc
@ouyang363 Thanks for your reply! I think I have done what you said in the uploaded files, and I've got the results while just USA's are correct. I don't know why other regions cannot follow the emissions constraints I set here. Besides, these files worked well with GCAM v5.4, so I guess maybe it relates to some updated settings within the model...
oh sorry I just saw your attachments and checked it. I think you may want to try to copy all those details (price-adjust, demand-adjust thing) currently only in your market USA for other regions in the linked GHG file (yes they are the same).
YES, it is the key! Thank you for answering!
YES, it is the key! Thank you for answering!
Thanks for @ouyang363 @Cermouth useful information. But I am still confused when I just aim to constrain Chinese CO2 emissions. My questions are
ghg_net0_constraint_global
seems to limit all GHG emissions, is it correct that setprice adjust=0
for nonco2 gases could represent CO2 constraint?linked_co2_policy_China.xml
, should I change all the market names and price-adjust
for other regions?
China_CN.zip
I used the files in /input/policy folder to create a scenario with global GHG emissions constraints. In the configuration file, I added the two lines:
Then I ran the model but found so many error messages including "receive hector exception, timestep must equal 1". Since I changed the max iteration to 15,000, the model has been running for nearly 24 hours. Could anyone help me with that? I made it with GCAM v5.4 but got confused with v6.0.