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 failed ?

Simulation failed ?

Hi,

I'm a brand new user of OM, (and of this forum apparently) and while running through the tutorial I'm surprised to see that no single 'simulate' command seems to work.  I always get resultFile= "Simulation failed."  See below for an example.

Anybody an idea how to solve this?
I just installed the 1.5.0 RC2 version on windows XP

Thanks a lot for your help,
Roel


>> loadFile("C:/OpenModelica1.5.0/testmodels/dcmotor.mo")
true

>> simulate(dcmotor,startTime=0.0,stopTime=10.0)
record SimulationResult
    resultFile = "Simulation failed.
"
end SimulationResult;

Re: Simulation failed ?

Small addition: The DrModelica examples in OMnotebook didn't work either.
I decided to uninstall OM 1.5.0 RC2 and I installed RC1 instead, now it works...
So the problem seems to be linked to RC2.

regards,
roel

Re: Simulation failed ?

It works fine in RC2

>> simulate(dcmotor, startTime=0, stopTime=1, numberOfIntervals=500, tolerance=1e-4)
record SimulationResult
    resultFile = "dcmotor_res.plt"
end SimulationResult;

Re: Simulation failed ?

The problem was that the first version of 1.5.0-RC2 I uploaded on the website was missing 2 header files.
You can re-download the file from: http://www.ida.liu.se/labs/pelab/modeli … ndows/rc2/
This will get rid of the simulation problems you had.

Cheers,
Adrian Pop/

Re: Simulation failed ?

thanks a lot!

Re: Simulation failed ?

I've installed Openmodelica in Ubuntu 10.04, and after doing the first User Guide examples, an error appears:

>> simulate(dcmotor,startTime=0.0,stopTime=10.0)
record SimulationResult
    resultFile = "Simulation failed.
Error: Error occured while flattening model dcmotor
"

Anybody knows about it?

Thanks,

Jose

Re: Simulation failed ?

Openmodelica works fine in Ubuntu 10.04!

The error reported in my previous comment probably was due to some "copy paste" wrong type, so I'm sorry.

Jose

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