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

Click on simulation -> nothing happens

Click on simulation -> nothing happens

Hello,

since a couple of years I´m using Dymola but I´m really do appreciate the work that is done on OpenModelica. So I installed OM 1.8 and the look and feel is great!

Platform: Windows XP.

I wanted to start with a very simple model (see screenshot). When I click on "check" everthing is fine: "Check of test completed successfully."

But when I click on "simulate" the simulation window pops up, then I click on "simulate!". Another window open for a short time but then nothing happens. No plot window appears...nothing.

Is there a parameter etc. that I might have forgotten to set?

I wanted to attach a screenshot but I doesn´t work either current/sad. Any hints? I used the "Attachments" link and chose a png-picture but then a have a white screen that won´t dissapear.

Re: Click on simulation -> nothing happens

Hi,

It seems like you are using OMEdit. Can you check the messages window at the bottom and see if any error recorded there?
You can send an email with attachment to openmodelicadevelopers@ida.liu.se

Adeel.

Re: Click on simulation -> nothing happens

Hi Adeel,

sorry for not giving this information. Yes I´m using OMEdit!

I have no message in the message-window. It´s just blank.

I´m sending you an email...

Re: Click on simulation -> nothing happens

OK. Then i will also need the log file. Please attach your omeditcommands.log file. You can find it in <your_temp_dir/OpenModelica/OMEdit>

Adeel.

Re: Click on simulation -> nothing happens

OK, I now installed nighly build 10878.

I found the log file, I cannot post everything, but at least the beginning after opening OMEdit and the end when trying to simulate.

Code:


loadModel(Modelica,{"default"}) 08:17:53:743
true 08:17:56:103
Elapsed Time :: 2.36 secs

errors:=getMessagesStringInternal() 08:17:56:103
{} 08:17:56:306
Elapsed Time :: 0.203 secs

size(errors,1) 08:17:56:306
0 08:17:56:321
Elapsed Time :: 0.015 secs

loadModel(ModelicaReference,{"default"}) 08:17:56:321
true 08:17:56:353
Elapsed Time :: 0.032 secs

errors:=getMessagesStringInternal() 08:17:56:353
{record .OpenModelica.Scripting.ErrorMessage
    info = record .OpenModelica.Scripting.SourceInfo
    filename = "",
    readonly = false,
    lineStart = 0,
    columnStart = 0,
    lineEnd = 0,
    columnEnd = 0
end .OpenModelica.Scripting.SourceInfo;,
    message = "Requested package Modelica of version 3.2, but this package was already loaded with version 3.1. You might experience problems if these versions are incompatible.",
    kind = .OpenModelica.Scripting.ErrorKind.scripting,
    level = .OpenModelica.Scripting.ErrorLevel.warning,
    id = 183
end .OpenModelica.Scripting.ErrorMessage;} 08:17:56:462
Elapsed Time :: 0.109 secs

size(errors,1) 08:17:56:462
1 08:17:56:462
Elapsed Time :: 0 secs

currentError:=errors[1] 08:17:56:462
record .OpenModelica.Scripting.ErrorMessage
    info = record .OpenModelica.Scripting.SourceInfo
    filename = "",
    readonly = false,
    lineStart = 0,
    columnStart = 0,
    lineEnd = 0,
    columnEnd = 0
end .OpenModelica.Scripting.SourceInfo;,
    message = "Requested package Modelica of version 3.2, but this package was already loaded with version 3.1. You might experience problems if these versions are incompatible.",
    kind = .OpenModelica.Scripting.ErrorKind.scripting,
    level = .OpenModelica.Scripting.ErrorLevel.warning,
    id = 183
end .OpenModelica.Scripting.ErrorMessage; 08:17:56:462
Elapsed Time :: 0 secs

Code:


getSimulationOptions(Modelica.Electrical.Analog.Examples.Rectifier) 08:20:14:801
{0.0, 0.1, 10000, 1e-006, "dassl", "Modelica.Electrical.Analog.Examples.Rectifier", false, false, "", "mat", ".*", false, ""} /* startTime, stopTime, numberOfIntervals, tolerance, method, fileNamePrefix, storeInTemp, noClean, options, outputFormat */ 08:20:14:801
Elapsed Time :: 0 secs

buildModel(Modelica.Electrical.Analog.Examples.Rectifier,startTime=0.0, stopTime=1, numberOfIntervals=1000, method="dassl", tolerance=0.000001, outputFormat="mat") 08:20:23:426
{"",""} 08:20:24:613
Elapsed Time :: 1.187 secs

errors:=getMessagesStringInternal() 08:20:24:613
{} 08:20:24:629
Elapsed Time :: 0.016 secs

size(errors,1) 08:20:24:629
0 08:20:24:645
Elapsed Time :: 0.016 secs

getVersion() 08:21:32:752
"1.8.0 (r10787)" 08:21:32:815
Elapsed Time :: 0.063 secs

Re: Click on simulation -> nothing happens

The simulation of Modelica.Electrical.Analog.Examples.Rectifier is crashing and OMEdit doesn't check whether the executable was crashed or not. I have now fixed it in OMEdit so that it will show the error message if the simulation executable fails. You have to wait for the new nightly build now.

Adeel.

Re: Click on simulation -> nothing happens

Thanks a lot!

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