Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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..

Edited by: Petrou - Jul-26-11 18:50:30

Re: Simulation Error

Hello again,

i correct the post about the error that i am getting...

Does anybody have a clue about this??

Maybe, someone want to exame my code and see if something is wrong there?

Re: Simulation Error

I would need to see the Modelica sources to give any help current/sad

Re: Simulation Error

Can you send me an email here:    mpexos@yahoo.gr

and then reply you the code?

Re: Simulation Error

Hello sjoelund.se,

Is it possible to give me your email account to send you my code, or send me an email at :  mpexos@yahoo.gr and then reply you the code?

Thank you.

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.

Re: Simulation Error

Ok, thank you very much...

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

Re: Simulation Error

Thank you for your reply... but i am confused... current/sad

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

sjoelund.se,
do you think that different simulation settings will cause no errors?
your help is needed cause i am in a very bad situation...

Thank you.

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.

Re: Simulation Error

Ok sjoelund.se,
thank you very much for your help.

There are 0 guests and 0 other users also viewing this topic
You are here: