Opened 7 years ago

Closed 7 years ago

#4768 closed defect (worksforme)

missing resultsvars when calling readSimulationResultVars

Reported by: Niklas Worschech 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 by Martin Sjölund, 7 years ago

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

in reply to:  1 comment:2 by Lennart Ochel, 7 years ago

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 by Niklas Worschech, 7 years ago

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