Opened 6 years ago

Last modified 6 years ago

#4892 assigned defect

Execution statistics show wrong solver

Reported by: Hauke Hirsch <hauke.hirsch@…> Owned by: wbraun
Priority: high Milestone: Future
Component: Backend Version: v1.13.0-dev-nightly
Keywords: Cc:

Description

After running the model the ### STATISTICS ### block always shows "euler" as solver, despite dassl beeing selected and used.

Change History (3)

comment:1 Changed 6 years ago by Hauke Hirsch <hauke.hirsch@…>

  • Component changed from *unknown* to Backend
  • Owner changed from somebody to lochel
  • Version set to v1.13.0-dev-nightly

comment:2 Changed 6 years ago by Hauke Hirsch <hauke.hirsch@…>

This behavior appears when running a simple model like:

model test_stateevent
  Modelica.Blocks.Sources.BooleanTable boolTable(table = {1, 10, 15, 30, 35}) annotation(
    Placement(visible = true, transformation(origin = {-88, 36}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Real x;
equation
  when boolTable.y == true then
    x = 10;
  end when;
  annotation(
    uses(Modelica(version = "3.2.2")),
    experiment(StartTime = 0, StopTime = 50, Tolerance = 0.0001, Interval = 0.1),
    __OpenModelica_simulationFlags(jacobian = "coloredNumerical", lv = "LOG_STATS", s = "dassl"));
end test_stateevent;

for more complex??? models, the solver is shown correctly.

comment:3 Changed 6 years ago by casella

  • Owner changed from lochel to wbraun
  • Status changed from new to assigned

In fact, this is not a bug but a feature. The model you posted here has no continuous states, so there are actually no differential equations to solve. As such, there is no need to run any sophisticated solver like dassl, so the simplest possible solver (euler) is selected automatically.

Note: See TracTickets for help on using tickets.