- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » 1024 error messages
1024 error messages
1024 error messages
dear all,
I tried to run a complex model and received a lot of error messages (see below).
The model runs without any problems in JModelica
my system:
OMCompiler v1.13.0-dev.456+g74ad9da44
uname -a
Linux notebook.all 4.4.114-42-default #1 SMP Tue Feb 6 10:58:10 UTC 2018 (b6ee9ae) x86_64 x86_64 x86_64 GNU/Linux
Any ideas how to solve the problem?
Thanks in advance
Johann
**************************
"Error: Stack overflow occurred while evaluating simulate(DTe7G, startTime = -1.0, stopTime = 20, stepSize = 1, tolerance = 1e-8, simflags = "-noEquidistantTimeGrid -lv=LOG_STATS"):
[bt] #1 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_setStacktraceMessages_threadData)
[bt] #2 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_stackoverflow)
[bt] #3 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeEnv.EnvTree.get)
[bt] #4 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeLookup.lookupInLocalScope)
[bt] #5 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeLookup.lookupSimpleName2)
[bt] #6 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeLookup.lookupSimpleName)
[bt] #7 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeLookup.lookupName)
[bt] #8 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeLookup.lookupNameSilent)
[bt] #9 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeDependency.lookupClass2)
[bt] #10 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeDependency.lookupClass)
...
...
[bt] #1023 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeDependency.lookupClass2)
[bt] #1024 /usr/local/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(NFSCodeDependency.lookupClass)
[bt] #1025 [...]
"
false
***********************************
report from fmuCheck.linux64 from the FMU generated with JModelica
...
[INFO][FMUCHK] FMU kind: ModelExchange and CoSimulation
[INFO][FMUCHK] The FMU contains:
219 constants
484 parameters
14 discrete variables
2252 continuous variables
0 inputs
0 outputs
2485 local variables
0 independent variables
557 calculated parameters
3336 real variables
46 integer variables
24 enumeration variables
89 boolean variables
31 string variables
***********************************
Re: 1024 error messages
SOLVED !
I used a package named "battery" and an element name "battery".
battery.Converter battery annotation(Placement(.....
This results in an "endless loop" and a stack overflow. After renaming the element everything works is fine now.
I'm not sure if my code was compliant with MODELICA standard. JM issued no warning.
BR Johann
Re: 1024 error messages
The model should work fine with -d=noscodeDep, but I would avoid such unorthodox naming. I added a ticket for this problem: https://trac.openmodelica.org/OpenModelica/ticket/4791
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » 1024 error messages