tseyanglim / VST

Vensim Script Tools for improving workflow in Vensim
GNU General Public License v3.0
4 stars 1 forks source link

Nonstopping with return code 1 #5

Closed hyunjimoon closed 1 year ago

hyunjimoon commented 1 year ago

VST returned the following logfile:

Initialising <VST.vst.vst.Script object at 0x000001A2981842B0>
Initialising <VST.vst.vst.Script object at 0x000001A298186C50>
Initialising <VST.vst.vst.Script object at 0x000001A29845CD60>
Initialising <VST.vst.vst.Script object at 0x000001A2984633D0>
Initialising <VST.vst.vst.Script object at 0x000001A298393100>
Initialising <VST.vst.vst.Script object at 0x000001A298393400>
Initialising <VST.vst.vst.Script object at 0x000001A298392B90>
Initialising <VST.vst.vst.Script object at 0x000001A294ECA4D0>
Initialising <VST.vst.vst.Script object at 0x000001A29845D0C0>
Initialising <VST.vst.vst.Script object at 0x000001EC7D7AC130>
Initialising <VST.vst.vst.Script object at 0x000001EC7D30DF30>
Initialising <VST.vst.vst.Script object at 0x0000024B2AE44A60>
Initialising <VST.vst.vst.Script object at 0x0000023ACDC14A60>
Initialising <VST.vst.vst.Script object at 0x000002A7EF26F8E0>
Initialising <VST.vst.vst.Script object at 0x0000016CB9AFF8E0>
Initialising <VST.vst.vst.Script object at 0x000001C634BDF8E0>
Initialising Covidparam_VAMA!
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Return code is 1
Vensim! Trying again...
Initialising <VST.vst.vst.Script object at 0x000002DDC43CBF40>
Initialising Covidparam_VAMA!
Return code is 3221226525

Q1. what the meaning of code 1? Q2. from the cmd file below, what might be causing repetitive vensim runs? Q3. I used the default provided, but if the purpose is simply to generate with set_value parameter, might I experience speedup by excluding the last four SIMULATE? Q4. why is there so many initialization in the log file?

SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|CovidUSA-Econ-V79.mdl
SIMULATE>payoff|PayoffFlowV77-Policy.vpd
SIMULATE>sensitivity|
SIMULATE>optparm|COVID-V79-All.voc
SIMULATE>savelist|
SIMULATE>senssavelist|

SIMULATE>DATA|"CovidModelInputs - ConstantDataStates.vdf,CovidModelInputs - CRWStates.vdf,CovidModelInputs - DeathDataStates.vdf,CovidModelInputs - FlowDataStates.vdf,CovidModelInputs - FormattedDataStates.vdf,CovidModelInputs - TestDataStates.vdf"
SIMULATE>SETVAL|Variant Accuity Multiplier[Omicron]=0.5428063200000001

SIMULATE>RUNNAME|Covidparam_VAMA
SIMULATE>REPORT|1
MENU>RUN|o
MENU>VDF2TAB|!|!|||
SPECIAL>CLEARRUNS
MENU>EXIT
tseyanglim commented 1 year ago

Hmmmm I can't check in detail right now but double check the run_vengine_script function that you're using to see if it accepts returncode == 1 as a successful outcome. We had this discussion with Jason and Tom a couple of weeks ago you may recall. I thought I fixed it in the vst repo but may be some version control issues going on.

tseyanglim commented 1 year ago

If by 'last four SIMULATE' you mean the sensitivity, optparm, savelist and senssavelist specifications, no, those don't add any time at all, and there's no way for you to remove them (within the vst framework). The only one actually simulated is the MENU>RUN|o command (and the following export).

I'm not sure what's going on with the multiple initialisations, would have to check your full code.