Is that possible to escape from Memory allocation Error in matlab ?

5 views (last 30 days)
Hello,
I am facing memory allocation error while running a .mdl file in simulink. The model is quite huge(arnd 22 MB) and running at 0.001sec using ODE5 solver. I am able to run the model for arnd 130 secs and later it throws an error as "memory allocation error" . I am using windows XP OS and matlab R2008b (32bit). It is not possible for me to change version or to run using accelerator or Rapid accelerator mode. I have also removed signla loggings and logging only required signal to workspace. If i check the "memory" command output before and after the error and it has reduced from 650MB to arnd 18MB (first output of memory command). I am having 3GM of RAM. The 3GB switch option was also not helpful. Let me know the other possibilities ?
My question is :
Is that possible to store the simulation data to static memory and free the Dynamic memory while simulation is running (or when it is paused) ?

Answers (1)

Jan
Jan on 19 Dec 2012
Please post a complete copy of the error message. If the contents really is "memory allocation error", this does not mean "out of memory". Therefore this could be a bug instead of a limitation of the available RAM.
  2 Comments
sunil
sunil on 20 Dec 2012
Exact error is as below :
Error due to multiple causes: ---> Memory allocation error. ----> Error converting loggign variable to Matlab format: Error using ==>transpose Out of memory. Type HELP MEMORY for your options.
Caused by : Memory allocation error. Error Converting logging variable to Matlab format: Error using ==> transpose. Out of Memory. Typt HELP MEMORY for your options.
Jan
Jan on 20 Dec 2012
Ok, "out of memory" is either an exhausted memory, or a programming bug. Can you show us the code, which causes the error?

Sign in to comment.

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!