Opened 7 years ago

Closed 7 years ago

#4768 closed defect (worksforme)

missing resultsvars when calling readSimulationResultVars

Reported by: niklwors Owned by: somebody
Priority: high Milestone: Future
Component: Command Prompt Environment Version:
Keywords: readSimulationResultVars, omc c-api Cc: Florian.Werner@…

Description

The OpenModelica API call of readSimulationResultVars("results.mat",true)
returns for this model

model ResultTest
  Modelica.Blocks.Sources.Constant const(k=1);
  Modelica.Blocks.Math.Sin sin;
equation
  connect(sin.u, const.y);
 end ResultTest;

the result vars: {"Time","_derdummy","_dummy","const.k","const.y","sin.u","sin.y"}
But for results that should not include parameter, the call of
readSimulationResultVars("results.mat",false)
only returns:
{"Time","_derdummy","_dummy"}
but we expect the result vars:
{"Time","_derdummy","_dummy","const.y","sin.u","sin.y"}

Change History (3)

comment:1 follow-up: Changed 7 years ago by sjoelund.se

These variables are stored as parameters in the result file (not time-varying)

comment:2 in reply to: ↑ 1 Changed 7 years ago by lochel

Replying to sjoelund.se:

These variables are stored as parameters in the result file (not time-varying)

Yes, that is correct. But it doesn't make any sense from a user's perspective.

comment:3 Changed 7 years ago by niklwors

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.