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

Simulating a model

Simulating a model

Hello everyone!

Keep on learning about OpenModelica MDT plug-in for Eclipse, I am trying to simulate a very simple model like this:

Code:

omc> simulateModel(SMIB, stopTime=10, measureTime=true)


omc> plot(h)
false

According to the user manual, this command should produce a report, and then plot the behaviour of the variable h, that's right? What is going wrong here? (I think I have the plug-in correctly installed. I have also have installed OpenModelica 1.9 in my computer)

Greetings!

Re: Simulating a model

Hi,

I assume you do this in the MDT console. If so, the command is simulate(Model) not simulateModel(Model).

Cheers,
Adrian Pop/

Re: Simulating a model

I see,

Yes! I am using the MDT console. Now it works!

But... simulation failed.

Code:

messages = "Simulation Failed. Model: SMIB does not exist! Please load it first before simulation.",

How can I solve this? building the project or there is some load function?

Cheers!

Re: Simulating a model

I see,

this is solved. I had an issue with the name of the model. I was calling the model itself but it was inside of a package.

Cheers!

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