Opened 7 years ago

Closed 7 years ago

#4810 closed defect (worksforme)

Problems with daeMode in OMEdit

Reported by: Francesco Casella Owned by: Willi Braun
Priority: critical Milestone: 1.13.0
Component: Run-time Version:
Keywords: Cc: Willi Braun

Description

Consider the attached simple model. If I run the .mos script from the command line, everything works, and I get a proper .mat file with the expected results.

If I load the .mo file in OMEdit and run it from there, the model is compiled, the simulation output window shows me a 100% green simulation bar, it tells me "Simulation of TestDAEMode is finished", but I don't see the final statistics in the window, the .mat file is not generated, and no results are visible in the Plotting tab.

Can you please fix this? I'm not sure whether the problem is with DAEmode or with OMEdit, though I tend to think that OMEdit has some issues, as the command line version works fine.

Attachments (2)

TestDAEMode.mo (277 bytes ) - added by Francesco Casella 7 years ago.
test.mos (645 bytes ) - added by Francesco Casella 7 years ago.

Download all attachments as: .zip

Change History (6)

by Francesco Casella, 7 years ago

Attachment: TestDAEMode.mo added

by Francesco Casella, 7 years ago

Attachment: test.mos added

comment:1 by Willi Braun, 7 years ago

Component: OMEditRun-time
Owner: changed from Adeel Asghar to Willi Braun
Status: newassigned

Ah, it seems to be an issue in the runtime. Now the only solver that is possible to use in DAEmode is the IDA solver, I stopped the support of dassl in DAEmode.
Actually the runtime should select directly IDA as solver when the model is compiled in DAEmode, but this seems to conflicting with the override arguments. I'll check it.

Last edited 7 years ago by Willi Braun (previous) (diff)

comment:2 by Francesco Casella, 7 years ago

In fact, beyond the probles reported in comment:1, there is a more fundamental problem with the vendor annotation. I opened #4812 about that.

comment:3 by Adeel Asghar, 7 years ago

I got the model to work fine with the following change,

model TestDAEMode
  Real x(start=0,fixed=true),y;
 
equation
  der(x) = y;
  y= -x+1;
  annotation(experiment(StopTime = 5, Tolerance = 1e-6),
     __OpenModelica_simulationFlags(daeMode = ()),
     __OpenModelica_commandLineOptions = "--daeMode=all");
end TestDAEMode;

Note that I added () to daeMode flag.

I have written a small documentation about __OpenModelica_simulationFlags (https://github.com/OpenModelica/OpenModelica-doc/pull/72) which should be up soon.

comment:4 by Adeel Asghar, 7 years ago

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.