problems running model "Based on" history run
problems running model "Based on" history run
I would like to run a (large) model using the "Based on" feature of vensim.
I have created a history run, that goes up to a specific year and specified that file under Sim set up "based on".
When I try to run it like that I get an error:
"Fatal error from Vensim Insufficient memory for block allocation to be made".
I am running in complied mode.
I have tried Vensim versions 8.2.1 and 9.0.0
Since this error is mentioning insufficient memory, I guess this is due to the size of the model somehow?
I have created a history run, that goes up to a specific year and specified that file under Sim set up "based on".
When I try to run it like that I get an error:
"Fatal error from Vensim Insufficient memory for block allocation to be made".
I am running in complied mode.
I have tried Vensim versions 8.2.1 and 9.0.0
Since this error is mentioning insufficient memory, I guess this is due to the size of the model somehow?
-
- Super Administrator
- Posts: 4589
- Joined: Wed Mar 05, 2003 3:10 am
Re: problems running model "Based on" history run
Can you upload the model?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: problems running model "Based on" history run
No, unfortunately I can't, because the company I work for is seeing this as intellectual capital... Is there anything we can do in terms of trouble-shooting without the model? It is in .mdl format by the way, which I had forgotten to mention.
-
- Super Administrator
- Posts: 4589
- Joined: Wed Mar 05, 2003 3:10 am
Re: problems running model "Based on" history run
I'd need the model to run it through the debugger to see why it's not running.
If you can reproduce the problem in a smaller model, could you upload that (or email it to us)?
If you can reproduce the problem in a smaller model, could you upload that (or email it to us)?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: problems running model "Based on" history run
I assume you tried a 64-bit version?
In that case, there's probably an undiscovered size limitation bug, because it's pretty hard to actually fill 64 bit memory.
In that case, there's probably an undiscovered size limitation bug, because it's pretty hard to actually fill 64 bit memory.
/*
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
*/
Re: problems running model "Based on" history run
I have created a very simple model for test purposes (attached). I am not getting the error described above any more, but it seems it works only in uncomplied model (setting "interpret"), but not in compiled mode. Is it generally the case that the based-on feature does not work in compiled mode?
- Attachments
-
- based-on-test.mdl
- (2.56 KiB) Downloaded 107 times
-
- Super Administrator
- Posts: 4589
- Joined: Wed Mar 05, 2003 3:10 am
Re: problems running model "Based on" history run
What format are you saving your model in (VMFX or MDL)?
If MDL, try changing to VMFX. MDL files are parsed each time they are loaded which marks them as "changed". This causes the model match with the existing VDFX to fail. With a binary format model (VMFX), it should work.
If MDL, try changing to VMFX. MDL files are parsed each time they are loaded which marks them as "changed". This causes the model match with the existing VDFX to fail. With a binary format model (VMFX), it should work.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: problems running model "Based on" history run
Yes I am running the 64bit version. Would an undiscovered size limitation bug mean I'd have to wait for an update to get this fixed?
Please also note that there seem to be problems with using based-on in compiled mode.
Please also note that there seem to be problems with using based-on in compiled mode.
Re: problems running model "Based on" history run
It would, but I think the vmfx vs. mdl issue is by far the best candidate here. Try that first.
/*
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
*/
Re: problems running model "Based on" history run
I have tried to save the model as vmfx and then created a history run, and then tried to run a scenario of the future using based-on. Error: "Insufficient membory for block allocation to be made". Sometimes Vensim even crashed (Vensim 9.0.0 only, but not always).
-
- Super Administrator
- Posts: 4589
- Joined: Wed Mar 05, 2003 3:10 am
Re: problems running model "Based on" history run
We would need the model here to test with to see what the problem is.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: problems running model "Based on" history run
It might be worth updating to the latest 9.1.1 first - lots of improvements and bug fixes from 9.0, though I'm not aware of anything specifically relevant to simulation or compile-time memory.
/*
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
*/
Re: problems running model "Based on" history run
The issue remains under 9.1.1, plus I found a bug in 9.1.1 in the Table tool, will report that in a separate thread though.
Re: problems running model "Based on" history run
I assume this is now with the base model in vmfx format?
This will be pretty tough to debug without a copy of the model - we're basically guessing.
Does the model contain some of the more exotic DELAY or QUEUE functions? Those don't work with BASED. There's normally a run-time check, but if that's missed for one instance, it could cause a crash.
What's the total size, as reported by Model>Settings>Model Information?
This will be pretty tough to debug without a copy of the model - we're basically guessing.
Does the model contain some of the more exotic DELAY or QUEUE functions? Those don't work with BASED. There's normally a run-time check, but if that's missed for one instance, it could cause a crash.
What's the total size, as reported by Model>Settings>Model Information?
/*
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
*/