Page 1 of 1

Left over blocks in scratch memory

Posted: Wed Jan 04, 2017 4:09 pm
by aureliocm
Hi, sometimes when I am generating shadows variables appear the message "left over blocks in scratch memory". (see photo attached). Do you have any idea why this could be happening?
thanks

Re: Left over blocks in scratch memory

Posted: Wed Jan 04, 2017 4:19 pm
by Administrator
It's a bug, although it is a memory issue, your calculations are unaffected. If you can give me step by step instructions on how to re-create it, I can fix.

Also let me know exactly which version of Vensim you are using.

Re: Left over blocks in scratch memory

Posted: Wed Jan 04, 2017 5:15 pm
by aureliocm
I am using Vensim PLE Plus for windows version 6.4a(x32).

I am modeling an outbreak in a population, so I have several views in vensim. Within each view I have ~10 independent towns but similar models which may interact with each other. In another view I need to sum up the number of people in all towns based on their status (susceptible, pre-infectious, infectious, or recovered).
i.e:
susceptible total = susceptible in town 1 + susceptible in town 2 + ………. + susceptible in town xx.
pre-infectious total = pre-infectious in town 1 + pre-infectious in 2 + ………. + pre-infectiouse in town xx.
infectious total = infectious in town 1 + infectious in town 2 + ………. + infectious in town xx.
recovered total = recovered in town 1 + recovered in town 2 + ………. + recovered in town xx.

In order to do that I generate shadow variables for each susceptible, pre-infectious, infectious or recovered in towns. Sometimes while I am generating the shadow variables to connect with the totals the message pops up although it does not happen every time. If it does not affect my calculations (which so far it has not, everything looks consistent), then it's fine for me. I was just a bit worried it was going to conflict with simulations.
Thanks

Re: Left over blocks in scratch memory

Posted: Wed Jan 04, 2017 6:31 pm
by Administrator
How any towns are in the model?

And when you say shadow variables, are you creating copies?

It could be that the equation for "susceptible total = susceptible in town 1 + susceptible in town 2 + ………. + susceptible in town xx. " is just too big which could cause the problem.

I've never encountered the error myself, but I'd use Pro/DSS to model multiple towns where you can use subscripting instead of copying individual towns.