Not enough memory in Vensim
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Not enough memory in Vensim
Hi, I was trying to simulate my model in Vensim, but I couldn't. My model have 124 x 124 matrix and 4 subindex (as maximum), time step=1 and time between 0 to 30. After final time=30, the error message is: "Not enough memory - decrease lenght or increase SAVEPER".
Then I try again with final time=20, and then appear "insufficient memoty to allocate handle for 243175640 bytes". Or the software held in the window time=20 forever and says "not response".....
So, how can fix this? Thks!!-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Not enough memory in Vensim
Can you upload the model so we can take a look?
I suspect you are going to have to reduce the 124x124 matrix as this is going to use up a lot of memory.
I suspect you are going to have to reduce the 124x124 matrix as this is going to use up a lot of memory.
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
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Re: Not enough memory in Vensim
Sorry, this is the model...
Last edited by luisangelguzmang on Fri Jul 13, 2012 8:29 pm, edited 1 time in total.
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Not enough memory in Vensim
What are i and j in your 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
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Re: Not enough memory in Vensim
there are zones. In my model there are a 124 zones, so i are the origin zones, and j are the destination zones, for estimate the trips between them, for example.
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Not enough memory in Vensim
Can you combine the zones at all? What I mean is, do all zones go to all other zones? Can you create a smaller array with just the from and to zones?
This will be the easiest way of making the memory requirements of the model much smaller.
This will be the easiest way of making the memory requirements of the model much smaller.
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
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Re: Not enough memory in Vensim
Ok, but is the only way? Reduce de number of subindex?
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Not enough memory in Vensim
If you are hitting memory limits, yes, you will need to re-work the model so that you can reduce the number of subscript elements.
Just replace i and j with a single subscript range called "route". Then only have the routes that will actually be used (eg, "London to Paris", "London to Rome" etc). This of course will only work if you can cut down the routes from all to all.
Tony.
Just replace i and j with a single subscript range called "route". Then only have the routes that will actually be used (eg, "London to Paris", "London to Rome" etc). This of course will only work if you can cut down the routes from all to all.
Tony.
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
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Re: Not enough memory in Vensim
Ok, thank you Tony. So, it is impossible to expand the memory?
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Not enough memory in Vensim
It is impossible for now as Vensim is a 32 bit application (limited to 2gb total RAM).
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: Not enough memory in Vensim
Typically a model that pushes memory limits will execute extremely slowly anyway.
Just how big is this one (as indicated by Model>Settings>Info)?
Just how big is this one (as indicated by Model>Settings>Info)?
/*
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
*/
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Re: Not enough memory in Vensim
Well, i would not mind that model executes slowly. The model info is the following:
Re: Not enough memory in Vensim
Right. This is probably going to take about 120MB per step. It might run with a long SAVE PER, but that'll make it hard to debug. Sorry.
/*
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
*/