iiasa / iiasa/NEST

Issues: "Error 170 Domain violation for element" when running the msg_gdx.r during compilation

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
14
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am trying to adapt this model to a new study region. My first step is trying to rerun and reproduce the results. However, when I was running the msg_gdx.r file, specifically when calling the basin_msggdx_solve.r function, there were consecutive error messages generated. Please see the following print from R console:

> source( paste( indus_ix_path, 'basin_msggdx_solve.r', sep = '/' ) )
[1] "Solving"
--- Job MESSAGE_run.gms Start 10/19/20 10:39:11 32.2.0 rc62c018 DEX-DEG x86 64bit/Mac OS X
--- Applying:
/Library/Frameworks/GAMS.framework/Versions/32/Resources/gmsprmun.txt
/Users/dr.dk/Library/Preferences/GAMS/gamsconfig.yaml
--- GAMS Parameters defined
Input "/Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/MESSAGE_run.gms"
ScrDir "/Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/225a/"
SysDir /Library/Frameworks/GAMS.framework/Versions/32/Resources/
--in data/MSGdata_test_reproduce.gdx
--out outputMSGoutput_test_reproduce.gdx
GAMS 32.2.0 Copyright (C) 1987-2020 GAMS Development. All rights reserved
Licensee: GAMS Demo license for XX G201015|0002CO-GEN
XX University, United States of America DL020369
/Library/Frameworks/GAMS.framework/Versions/32/Resources/gamslice.txt
XXX@XXX.edu, User Name
Demo license for demonstration and instructional purposes only
--- Starting compilation
--- MESSAGE_run.gms(58) 2 Mb
--- . MESSAGE/model_setup.gms(66) 2 Mb
--- .. MESSAGE/auxiliary_settings.gms(37) 2 Mb
--- . model_setup.gms(69) 2 Mb
--- .. version.gms(18) 2 Mb
--- . model_setup.gms(70) 2 Mb
--- .. MESSAGE/version_check.gms(8) 2 Mb
--- GDXin=/Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/data/MSGdata_test_reproduce.gdx
--- .. MESSAGE/version_check.gms(17) 3 Mb
--- . model_setup.gms(73) 3 Mb
--- .. MESSAGE/sets_maps_def.gms(357) 3 Mb
--- . model_setup.gms(74) 3 Mb
--- .. MESSAGE/parameter_def.gms(615) 3 Mb
--- . model_setup.gms(77) 3 Mb
--- .. MESSAGE/data_load.gms(9) 3 Mb
--- GDXin=/Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/data/MSGdata_test_reproduce.gdx
--- .. MESSAGE/data_load.gms(59) 18 Mb
--- ... includes/period_parameter_assignment.gms(157) 18 Mb
--- .. data_load.gms(141) 18 Mb
--- . model_setup.gms(80) 18 Mb
--- .. MESSAGE/scaling_investment_costs.gms(173) 18 Mb
--- . model_setup.gms(86) 18 Mb
--- .. MESSAGE/model_core.gms(1234) 18 Mb 1 Error
***** Error 170 in /Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/MESSAGE/model_core.gms
Domain violation for element**
--- .. MESSAGE/model_core.gms(1240) 18 Mb 2 Errors
*** Error 170 in /Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/MESSAGE/model_core.gms
Domain violation for element
--- .. MESSAGE/model_core.gms(1294) 18 Mb
--- . model_setup.gms(86) 18 Mb
--- MESSAGE_run.gms(65) 18 Mb
--- . MESSAGE/model_solve.gms(27) 18 Mb 3 Errors
*** Error 257 in /Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/MESSAGE/model_solve.gms
Solve statement not checked because of previous errors
--- . MESSAGE/model_solve.gms(44) 18 Mb 4 Errors
*** Error 141 in /Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/MESSAGE/model_solve.gms
Symbol declared but no values have been assigned. Check for missing
data definition, assignment, data loading or implicit assignment
via a solve statement.
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
--- . MESSAGE/model_solve.gms(52) 18 Mb 6 Errors
*** Error 141 in /Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/MESSAGE/model_solve.gms
Symbol declared but no values have been assigned. Check for missing
data definition, assignment, data loading or implicit assignment
via a solve statement.
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
*** Error 141 in /Users/XX/Desktop/NEST-tool/NEST tool v2/NEST/MESSAGEix/model/MESSAGE/model_solve.gms
Symbol declared but no values have been assigned. Check for missing
data definition, assignment, data loading or implicit assignment
via a solve statement.
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
--- . MESSAGE/model_solve.gms(59) 18 Mb
--- MESSAGE_run.gms(105) 18 Mb
--- . MESSAGE/reporting.gms(28) 18 Mb
--- MESSAGE_run.gms(115) 18 Mb 6 Errors
*** Status: Compilation error(s)
--- Job MESSAGE_run.gms Stop 10/19/20 10:39:11 elapsed 0:00:00.042
[1] "Error during model solve or model is infeasible"

Thanks in advance for your help.

Sincerely,
J D

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the run from msg_gdx.r through basin_msggdx_solve.r, then inspect MESSAGE/model_core.gms at lines 1234, 1240, and 1294 where the domain violations are reported. Check the preceding compilation inputs before treating the model_solve.gms errors as independent; done means compilation completes without the reported domain violations and the solve proceeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.