﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3772	event clock error	Niklas Worschech	Rüdiger Franke	"For the following example the clock interval is unknown in SimCode.
The model is from the cpp runtime testfolder.
{{{#!mo
model EventClock ""See Modelica 3.3 spec, section 16.3 Clock Constructors""
  Integer nextInterval(start = 1);
  Real nextTick(start = 0);
equation
  when Clock(time > hold(nextTick) / 210) then
    nextInterval = previous(nextInterval) + 1;
    nextTick = previous(nextTick) + nextInterval;
  end when;
end EventClock;
}}}
The generated cpp code equation for the interval calculation is:
_clockInterval[0] = 0.0 * 1.0 / 1.0;
But the interval values should be 0.00953,0.0238,0.042 ...
"	defect	closed	blocker	Future	Backend		fixed	Modelica_Synchronous, synchronous features, cpp runtime	Rüdiger Franke Bernhard Thiele Volker Waurich
