﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3555	Add option to save intermediate values at event iterations to result files?	Bernhard Thiele	Lennart Ochel	"There already exists the option to save values at events. If one has event iterations it also would be interesting to see the values at intermediate events in an event iteration. E.g., the model below starts an event iteration at `time > 2` that results in the output
{{{
D x: 2
A x: 5
B x: 6
}}}
but in the (csv) result file at t=2 there are only two entries (x=2 and x=6).
{{{
#!modelica
model WhenPriority
 import S = Modelica.Utilities.Streams;
 Integer x(start=0,fixed=true);
equation
  when pre(x) == 2 then
    S.print(""A x: ""+String(x));
    x = pre(x) + 3;
  elsewhen pre(x) > 4 then
    S.print(""B x: ""+String(x));
    x = pre(x) + 1;
  elsewhen pre(x) > 3 then
    S.print(""C x: ""+String(x));
    x = pre(x) + 2;
  elsewhen time > 2 then
    S.print(""D x: ""+String(x));
    x = 2;
  end when;
end WhenPriority;
}}}
Of course that doesn't improve the insight to the model if plotting the variable with current OMPlot, but ""customized"" visualization solutions could profit from it and even try to visualize the event order. "	enhancement	accepted	low	Future	Run-time				
