When dealing with large or complex models, you can easily reach the limits of your system. For example, you cannot open more than a fixed number of files. You can try the command “limit –a” to check them.
You may see the following error:
msg="Could not open "/var"", file=../model/dce-manager.cc, line=149
terminate called without an active exception
This error masks error “24 Too many open files”. The cause of this is that the simulation process exceeded the limit of open files per process. Check the limit of open files per process with “ulimit -n” To solve it, you can edit file /etc/security/limits.conf and add the following lines at the end:
* hard nofile 65536
* soft nofile 65536
or
myuser hard nofile 65536
myuser soft nofile 65536