MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

"Insufficient memory to sim" error

Hello,
 
I am running a large SystemBuild simulation using Matrixx build 63mx0731 on Windows 2000 Pro. The SysBld catalog is about 35 MB when stored as ASCII and it has numerous UCBs. The simulation runs fine on one of our PCs, but on another nearly exactly configured PC, I get the following error in the Xmath window:
 
Insufficient memory to sim.
%u bytes of memory needed.
 
With an interactive sim, it makes it through the INIT stage but after stepping one time step with Ctrl-T, the problem PC gives the above error and the simulation ends.
 
Starting SysBld with this does not help:
 
build {rstack=1000000,cstack=1000000,sstack=1000000,istack=1000000}
Is there some way to increase the available memory to avoid this problem?
 
Thanks
 
0 Kudos
Message 1 of 6
(8,951 Views)
Are the OS settings the same between computer A and B? Are they set to use virtual memory? There are a number of documents external to NI.com about tweaking memory settings in 2000 Pro.

When the PC is booting up, does it check out all the memory? Does the hardware manager in Windows show the memory as being present?

Richard

Richard

Field Sales Engineer, New Jersey
National Instruments
0 Kudos
Message 2 of 6
(8,940 Views)
Richard,
 
Thanks for the reply.  Both machines are recognizing the 1 GB RAM and are using up to 3 GB disk swap space. There is at least 128MB physical RAM available when executing the sim. I have not had a chance yet to work with our IT staff to see if we can tweak the unlucky machine to try to free up some resources (maybe excessive background services are running). I'll try to post a further update in the next several days.
 
Thanks
 
0 Kudos
Message 3 of 6
(8,919 Views)
Hi,

Especially since one machine is OK and the other isn't, I think the problem might not be with MATRIXx but with the OS. Let me know as soon as you see otherwise and I will find out if there are other steps we can take.

Richard
Richard

Field Sales Engineer, New Jersey
National Instruments
0 Kudos
Message 4 of 6
(8,904 Views)

Richard,

After adding more outputs to the sim, the problem then occurred on both machines.

We seemed to find a work-around for this problem yesterday by reducing the amount of output data stored during the sim. We were trying to store 232 outputs over 300,000 time points (clearly a large amount of memory at double precision). We reduced this to 6,000 time points and the error goes away.

The sim now works on both machines.

I assume that this message is being produced by Xmath. I can't find code to output this message in any of our hand code.

Thanks,

Rob

 

Message Edited by Rob S on 04-19-2006 02:11 PM

0 Kudos
Message 5 of 6
(8,904 Views)
Hi Rob,

That is a large sum of RAM to be used at one time. The error is coming from simexe.exe which takes care of the simulation.

Richard

Richard

Field Sales Engineer, New Jersey
National Instruments
0 Kudos
Message 6 of 6
(8,889 Views)