Hello,
I need to produce simulated forecast on a regular basis. I wrote a cmd file to start the simulation, and the cmd file is triggered by Windows Task Scheduler. While this is all working as expected, I am running an issue that sometimes Vensim is not able to read VDF(fcst.vdf), and the prompt screen would appear asking for a new name for dataset. If I don’t enter a new name the simulation won’t start. This happens when the model and vdf are not locked by another Vensim application. Any suggestion?
Here is my cmd file:
SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|model.mdl
SIMULATE>SETVAL|FINAL TIME=3784
SIMULATE>READCIN|plant.cin
TIMEAXIS>DATEDISPLAY|||2018|10
SIMULATE>RUNNAME|fcst
MENU>RUN|o
MENU>VDF2CSV|fcst.vdf|fcst.CSV|fcst.lst|*||3617|3784
MENU>EXIT
Here is the log:
Vensim DSS version 7.2 Single Precision error log starting Thu Feb 28 16:17:23 2019
Executing SPECIAL>LOADMODEL|model.mdl.
Executing SIMULATE>SETVAL|FINAL TIME=3784.
STOP: Problems encountered in the simulation.
Executing MENU>VDF2CSV|fcst.vdf|fcst.CSV|fcst.lst|*||3617|3784.
ERROR: Unable to open the file fcst.vdf.
STOP: Unable to open fcst.vdf to read data.
Executing MENU>EXIT.
Thank you very much!
Unable to open VDF when it's not locked
-
- Newbie
- Posts: 1
- Joined: Thu Feb 28, 2019 10:53 pm
- Vensim version: DSS
Re: Unable to open VDF when it's not locked
I think the problem is that the vdf has not been created, due to the previous error:
STOP: Problems encountered in the simulation.
Not sure what causes that - perhaps a missing input file. You might try turning off NOINTERACTION to see if you get any additional queries.
STOP: Problems encountered in the simulation.
Not sure what causes that - perhaps a missing input file. You might try turning off NOINTERACTION to see if you get any additional queries.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/