problems running model "Based on" history run

Use this forum to post Vensim related questions.
Post Reply
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

problems running model "Based on" history run

Post by kleemax »

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?
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: problems running model "Based on" history run

Post by Administrator »

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
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

Re: problems running model "Based on" history run

Post by kleemax »

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.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: problems running model "Based on" history run

Post by Administrator »

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)?
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
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: problems running model "Based on" history run

Post by tomfid »

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.
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

Re: problems running model "Based on" history run

Post by kleemax »

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 105 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: problems running model "Based on" history run

Post by Administrator »

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.
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
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

Re: problems running model "Based on" history run

Post by kleemax »

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.
tomfid wrote: Mon Nov 15, 2021 3:22 pm 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.
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: problems running model "Based on" history run

Post by tomfid »

kleemax wrote: Thu Nov 25, 2021 8:02 am Would an undiscovered size limitation bug mean I'd have to wait for an update to get this fixed?
It would, but I think the vmfx vs. mdl issue is by far the best candidate here. Try that first.
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

Re: problems running model "Based on" history run

Post by kleemax »

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).
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: problems running model "Based on" history run

Post by Administrator »

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
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: problems running model "Based on" history run

Post by tomfid »

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.
kleemax
Senior Member
Posts: 125
Joined: Tue Jan 26, 2016 3:50 pm
Vensim version: PRO

Re: problems running model "Based on" history run

Post by kleemax »

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.
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: problems running model "Based on" history run

Post by tomfid »

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?
Post Reply