Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Industries Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

Technical Solutions

Why do I receive a memory allocation error when I try to run my Simulink model?


Date Last Modified: Tuesday, July 7, 2009
Solution ID:   1-19HOC
Product:   Simulink
Reported in Release:   No Release
Platform:   All Platforms
Operating System:   All OS
 

Subject:

Why do I receive a memory allocation error when I try to run my Simulink model?

Problem Description:

I receive a memory allocation error when I try to run my Simulink model.

Solution:

Memory allocation errors are due to your Operating System not having the resources to allocate any more memory for the simulation.

Below are a couple of things that you can do to avoid the memory allocation errors in Simulink:

1. Turn off the Workspace I/O (to do that, in the Simulink model go to Simulation=>Parameters=> Data Import/Export and uncheck the time and output boxes).

2. Increase the step size of the simulation

3. Reduce the length of the simulation

4. Increase the virtual memory of your computer (right click on the My Computer Icon, go to Properties and choose Performance).

5. Memory requirements of running a model depends on many factors such as the size of model, the signal size, memory usage by the user defined S-functions, etc. Depending on the requirements of your simulation, you might consider increasing your physical RAM memory.

For other options on improving simulation performances you can go to page 4-27 of the Using Simulink manual, if you do not have the manual you can use the online version at:

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/f11-33464.html

You may also refer the Technical Note on Memory Management in Simulink, at the link below:
http://www.mathworks.com/support/tech-notes/1800/1806.html

Please provide feedback to help us improve this Solution
Contact support
E-mail this page
Print this page