Page 1 of 1

RESUME function problems

Posted: Mon Jun 02, 2008 12:17 pm
by mruud
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

Posted: Mon Jun 02, 2008 11:14 pm
by bob@vensim.com
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.