- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » cc1.exe: out of memory allocating...
cc1.exe: out of memory allocating 16008 bytes
cc1.exe: out of memory allocating 16008 bytes
Hello,
I'm trying to run a rather large model (with aproximately 11000 equations.), after a while the compiler runs out of the 4GB of memory and quits, in the log file the following message is shown.
cc1.exe: out of memory allocating 16008 bytes
mingw32-make: *** [MyModels.someModel.o] Error 1
Is there a way to get the model running other than installing more memory?
Regards,
Arne Sinnema
Re: cc1.exe: out of memory allocating 16008 bytes
Yes, you need to run Linux in order to handle large models. GCC on Windows cannot allocate more than 4GB of memory even if you have more memory installed.
You could also try to set the CFLAGS to -O0 or possibly, if you are not already using the latest nightly build try it (https://trac.openmodelica.org/OpenModel … eset/17653 has some changes that reduce memory consumption).
- sjoelund.se
- 1700 Posts
Re: cc1.exe: out of memory allocating 16008 bytes
Hi,
We are looking into using mingw64 on Windows to compile OpenModelica
and that would make it able to use more memory (than 4G) for compiling
models. It will take a while thou. You could try the latest nightly build:
https://build.openmodelica.org/omc/buil … ly-builds/
as this one splits the generated C code into several files so it should
get the memory consumption for gcc down.
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » cc1.exe: out of memory allocating...