- Index
- » Programming
- » Modelica Language
- » Simulation Error
Simulation Error
Simulation Error
Hello,
I am getting the following error:
---- Error 1 : 13:22:52 ----
Unable to simulate the Model 'Tucermodel'
Following Error has occurred.
Simulation failed for model: Tucermodel
Error: Error building simulator. Buildlog: The syntax of the command is incorrect.
gcc -O3 -falign-functions -msse2 -mfpmath=sse -I\"C:/OpenModelica1.7.0//include/omc\" -I. -L\"C:/Users/Tassos\" -c -o Tucermodel.o Tucermodel.c
Tucermodel.c: In function `functionDAE':
Tucermodel.c:15992: error: subscripted value is neither array nor pointer
Tucermodel.c:16026: error: subscripted value is neither array nor pointer
Tucermodel.c:16060: error: subscripted value is neither array nor pointer
Tucermodel.c:16094: error: subscripted value is neither array nor pointer
\\MinGW\\bin\\mingw32-make: *** [Tucermodel.o] Error 1
I am quite sure that the code is correct.
Does anybody have any idea what it migth be wrong?
Thank you very much..
Re: Simulation Error
I would need to see the Modelica sources to give any help
- sjoelund.se
- 1700 Posts
Re: Simulation Error
Ok, the code contains stuff like this:
Code:
CODEGEN_COULD_NOT_HANDLE_ASUB(tmp4857[(modelica_integer)$Pi, (modelica_integer) 4]);
I will have a closer look.
- sjoelund.se
- 1700 Posts
Re: Simulation Error
This code generation issue is fixed in r9547. When trying to run the simulation I got DASSL errors though (but I don't know if the default simulation settings were correct or not).
Code:
DASSL-- ACTION WAS TAKEN. RUN TERMINATED
DASSL-- THE LAST STEP TERMINATED WITH A NEGATIVE
DASSL-- VALUE (=I1) OF IDID AND NO APPROPRIATE
In above message, I1 = -3
- sjoelund.se
- 1700 Posts
Re: Simulation Error
Thank you for your reply... but i am confused...
What do you mean by saying "...is fixed in r9547" ?
Is there something wrong on my code?
Is there a way to run the simulation and see the results?
In the OMC editor the simulation stops, so i cant see the results...
Re: Simulation Error
Switching to euler or rungekutta often means no errors are generated in the log, but the simulation finishes anyway. And you will have some numerical errors. I'm not an expert in either numerics or modelling, so I can give little help here. I just know that for certain models and step sizes, some solvers error out while they work well under different circumstances.
Fixed in r9547 simply means it is fixed in r9547 of OpenModelica (if using Windows, the MSI should have said which version of OpenModelica it was built from). The latest Windows build is 9366; latest Linux is 9547.
- sjoelund.se
- 1700 Posts
- Index
- » Programming
- » Modelica Language
- » Simulation Error