#2482 closed defect (fixed)
OMEdit hangs on a model check
Reported by: | Owned by: | probably noone | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Backend | Version: | trunk |
Keywords: | Cc: | Adrian Pop, Willi Braun, Lennart Ochel |
Description
When I try to check my model in OMEdit, the program hangs forever (well, I assume that :-) )
When simulating from the command line, I get a stack overflow error.
The model works in Dymola.
I don't know how to figure out what's wrong. Can you tell me what to do? Or fix the issue? I attach the full library in attachment, the model is IDEAS.Thermal.Components.Storage.StorageTank
Thanks on beforehand
Attachments (1)
Change History (15)
by , 11 years ago
comment:1 by , 11 years ago
Cc: | added |
---|---|
Component: | OMEdit → Interactive Environment |
Owner: | changed from | to
comment:2 by , 11 years ago
I tried also a checkModel() and it also returns a stack overflow...
Something else I can try?
comment:3 by , 11 years ago
No. The thing is omc catches the stack overflow but it doesn't return from the CORBA eventloop.
comment:4 by , 11 years ago
Component: | Interactive Environment → Frontend |
---|
Caught in the following cycle:
[bt] #14805 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(boxptr_Static_elabBuiltinSize+0x34) [0x7f8750ea7894] [bt] #14806 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabCallBuiltin+0x511) [0x7f8750e9fba1] [bt] #14807 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabCall+0x5be) [0x7f8750ea021e] [bt] #14808 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabExp2+0x1959) [0x7f8750e8d629] [bt] #14809 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabExp+0x96) [0x7f8750e8e5d6] [bt] #14810 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabSubscript+0x235) [0x7f8750e90725] [bt] #14811 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabSubscriptsDims2+0x179) [0x7f8750e90b29] [bt] #14812 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabSubscriptsDims+0x13a) [0x7f8750e90dba] [bt] #14813 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabCrefSubs+0x39c) [0x7f8750e9142c] [bt] #14814 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabCref1+0x6f5) [0x7f8750e92c45] [bt] #14815 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabCref+0x2c) [0x7f8750e9413c] [bt] #14816 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabExp2+0x233a) [0x7f8750e8e00a] [bt] #14817 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabExp+0x96) [0x7f8750e8e5d6] [bt] #14818 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(omc_Static_elabBuiltinSize+0x191) [0x7f8750ea7631] [bt] #14819 /home/martin/trunk/build/bin/../lib/omc/libOpenModelicaCompiler.so(boxptr_Static_elabBuiltinSize+0x34) [0x7f8750ea7894]
comment:5 by , 11 years ago
Cc: | added |
---|---|
Component: | Frontend → Backend |
Owner: | changed from | to
Stack overflow fixed in r18167. checkModel now works and reports that the model is balanced, but simulation fails with:
Error: An independent subset of the model has imbalanced number of equations (344) and variables (343). // Lots of variables and equations Error: An independent subset of the model has imbalanced number of equations (32) and variables (33). // More variables and equations Error: Internal error Found Equation without time dependent variables nodes[1].flowPort_a.m_flow = 0.0 Error: Internal error pre-optimization module removeSimpleEquations failed.
comment:6 by , 11 years ago
Thanks! I installed the last nightly build (r18183) and indeed the model check is fine (this model could not be simulated directly).
However, in this revision, no single model can be simulated anymore. Looks like OMEdit cannot find -lipopt and -lcoinmumps.
I add the compilation log below.
Maybe I have to create a new ticket?
make -j2 -f IDEAS.Thermal.Components.Examples.MixingVolume.makefile
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume.o IDEAS.Thermal.Components.Examples.MixingVolume.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_functions.o IDEAS.Thermal.Components.Examples.MixingVolume_functions.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_records.o IDEAS.Thermal.Components.Examples.MixingVolume_records.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_01exo.o IDEAS.Thermal.Components.Examples.MixingVolume_01exo.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_02nls.o IDEAS.Thermal.Components.Examples.MixingVolume_02nls.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_03lsy.o IDEAS.Thermal.Components.Examples.MixingVolume_03lsy.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_04set.o IDEAS.Thermal.Components.Examples.MixingVolume_04set.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_05evt.o IDEAS.Thermal.Components.Examples.MixingVolume_05evt.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_06inz.o IDEAS.Thermal.Components.Examples.MixingVolume_06inz.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_07dly.o IDEAS.Thermal.Components.Examples.MixingVolume_07dly.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_08bnd.o IDEAS.Thermal.Components.Examples.MixingVolume_08bnd.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_09alg.o IDEAS.Thermal.Components.Examples.MixingVolume_09alg.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_10asr.o IDEAS.Thermal.Components.Examples.MixingVolume_10asr.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_11mix.o IDEAS.Thermal.Components.Examples.MixingVolume_11mix.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_12jac.o IDEAS.Thermal.Components.Examples.MixingVolume_12jac.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_13opt.o IDEAS.Thermal.Components.Examples.MixingVolume_13opt.c
gcc -falign-functions -march=native -mfpmath=sse -fPIC -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o IDEAS.Thermal.Components.Examples.MixingVolume_14lnz.o IDEAS.Thermal.Components.Examples.MixingVolume_14lnz.c
g++ -I. -o IDEAS.Thermal.Components.Examples.MixingVolume IDEAS.Thermal.Components.Examples.MixingVolume.o IDEAS.Thermal.Components.Examples.MixingVolume_functions.o IDEAS.Thermal.Components.Examples.MixingVolume_records.o IDEAS.Thermal.Components.Examples.MixingVolume_01exo.o IDEAS.Thermal.Components.Examples.MixingVolume_02nls.o IDEAS.Thermal.Components.Examples.MixingVolume_03lsy.o IDEAS.Thermal.Components.Examples.MixingVolume_04set.o IDEAS.Thermal.Components.Examples.MixingVolume_05evt.o IDEAS.Thermal.Components.Examples.MixingVolume_06inz.o IDEAS.Thermal.Components.Examples.MixingVolume_07dly.o IDEAS.Thermal.Components.Examples.MixingVolume_08bnd.o IDEAS.Thermal.Components.Examples.MixingVolume_09alg.o IDEAS.Thermal.Components.Examples.MixingVolume_10asr.o IDEAS.Thermal.Components.Examples.MixingVolume_11mix.o IDEAS.Thermal.Components.Examples.MixingVolume_12jac.o IDEAS.Thermal.Components.Examples.MixingVolume_13opt.o IDEAS.Thermal.Components.Examples.MixingVolume_14lnz.o -I"/usr/include/omc" -I. -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -L"/home/roel/data/work/ideas/IDEAS/Thermal/Components/Examples" -falign-functions -march=native -mfpmath=sse -fPIC -L"/usr/lib/omc" -L"/usr/lib" -Wl,-rpath,"/usr/lib/omc" -Wl,-rpath,"/usr/lib" -lSimulationRuntimeC -ldl -linteractive -lexpat -lrt -lgc -lexpat -fopenmp -lsundials_kinsol -lsundials_nvecserial -llapack -lipopt -lcoinmumps -lpthread -Wl,-Bstatic -lf2c -Wl,-Bdynamic -llis
/usr/bin/ld: cannot find -lipopt
/usr/bin/ld: cannot find -lcoinmumps
collect2: error: ld returned 1 exit status
make: * [omc_main_target] Error 1
Compilation process exited with code 2
comment:7 by , 11 years ago
That problem will be fixed in the next nightly build: See https://test.openmodelica.org/hudson/job/OpenModelica_LINUX_NIGHTLY_BUILD/464/ for availability.
comment:9 by , 10 years ago
Milestone: | 1.9.1 → 1.9.2 |
---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:10 by , 10 years ago
Milestone: | 1.9.2 → 1.9.3 |
---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:12 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It seems that all reported problems were fixed, so I am closing the ticket
Have you tried the check model from the command line?
The CLI also hangs because omc never return back from the stack overflow.
This is interactive environment issue rather than OMEdit.