Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opaal2lts-mc: mmap failed #177

Open
jacopol opened this issue Nov 14, 2019 · 0 comments
Open

opaal2lts-mc: mmap failed #177

jacopol opened this issue Nov 14, 2019 · 0 comments

Comments

@jacopol
Copy link
Contributor

jacopol commented Nov 14, 2019

On some test examples in the opaal distribution, LTSmin fails with an error.
I'm running this on WSL (windows subsystem for Linux).
Note that I already had to set LTSMIN_MEM_SIZE since cgroups/memory doesn't exist here.

Example run:
opaal2lts-mc csma_input_02.so
opaal2lts-mc( 0/ 4), ** error **: mmap failed for size 65536 MB

Other cases where the same error occurs:

  • fischer4.xml
  • hddi_input_02.xml
    I don't know what is special about these examples, except that they all reside in ltl_tests

To reproduce this example, one can use the following script:

BASEDIR=/home/jaco/opaal-ltsmin
EXAMPLE=$BASEDIR/opaal/tests/ltl_tests/csma_input_02.xml
FILE=basename $EXAMPLE .xml
export PYTHONPATH=$BASEDIR/pyuppaal:$BASEDIR/opaal:$BASEDIR/usr/lib/python2.7/site-packages/
export LTSMIN_MEM_SIZE=68719476736

python $BASEDIR/opaal/opaal/model_parsers/pyuppaal/gensuccgen.py $EXAMPLE $FILE.cpp
g++ -g -shared -O2 -fPIC -I$BASEDIR/usr/uppaal/include/ -L$BASEDIR/usr/uppaal/lib/ -o $FILE.so $FILE.cpp -ludbm
opaal2lts-mc --threads=1 $FILE.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant