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

division by zero

division by zero

I am using the version 1.8.1 released version, I have to simulate a model, the compilation is doing fine but when it comes to simulate I receive the following error:

OMEdit error:

Process crashed throw |[line] 44|[file] util/division.c |division by zero

Is my model to blame for this error?
If you need the model I will send to you

Vlad

Re: division by zero

Hi,

you can send the model to the mailing list. But before you do this please try the latest nightly build and have a look if the error Message is still there. Normally it tells you which variable (exp) is zero. If the information is not enough please have a look in the genearated code at the line reported in the error Messages. There you see the full equation solved for a variable. (Yes the code is not nice but readable)
With this information you may get your model simulating.

There are 0 guests and 0 other users also viewing this topic