I have some problems with the RESUME function. I have a small test model called test.vpm witch runs under an application environment with no error messages.
For the model there are a base dataset called test.vdf with data from time 0 to 4. I then run the folloving commands:
SPECIAL>LOADMODEL|test.vpm
SIMULATE>RESUME|1
SIMULATE>BASED|test.vdf
SIMULATE>SETVAL|INITIAL TIME=4
SIMULATE>SETVAL|FINAL TIME=8
SIMULATE>RUNNAME|test_4_8|1
MENU>RUN|o
The dataset test_4_8.vdf is ok, with data from time=4 to time=8.
I then run the folloving commands
SPECIAL>LOADMODEL|test.vpm
SIMULATE>RESUME|1
SIMULATE>BASED|test_4_8.vdf
SIMULATE>SETVAL|INITIAL TIME=8
SIMULATE>SETVAL|FINAL TIME=12
SIMULATE>RUNNAME|test_8_12|1
MENU>RUN|o
Still no error messages, but the data set only have data for one time step, that is from time=8 to time=8.25
RESUME function problems
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
I took a look at this and there is nothing wrong with your commands, though the SETVAL on INITIAL TIME is not required unless you need the value for initial time elsewhere in the model.
My best guess is that the second simulation is triggering a floating point error at time 8.25. If you look at the error log (vensim.err usually in the same place as vendll32.dll) it should give some more hints.
My best guess is that the second simulation is triggering a floating point error at time 8.25. If you look at the error log (vensim.err usually in the same place as vendll32.dll) it should give some more hints.