﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3549	Evaluation of Clock parameters	Rüdiger Franke	Lennart Ochel	"The following model has the evaluated parameter dt to parameterize its clock (see also Modelica_Synchronous):
{{{#!mo
model SID
  parameter Real dt = 0.1 annotation(Evaluate=true);
  Real x(start = 0);
  input Real u(start = 1);
  output Real y;
equation
  when Clock(dt) then
    x = previous(x) + u * interval(u);
    y = previous(x);
  end when;
end SID;
}}}
Exporting it as FMU with 
   translateModelFMU(SID, version=""2.0"");
gives the Clocks section:
{{{#!xml
    <Clocks>
      <Clock><Triggered/></Clock>
    </Clocks>
}}}
Triggered is used because the value of `dt` is not known during code generation. It should be known due to annotation(Evaluate=true). The correct Clocks section reads (e.g. replace parameter Real dt with constant):
{{{#!xml
    <Clocks>
      <Clock><Periodic
              baseInterval=""0.1""
              /></Clock>
    </Clocks>
}}}
How can the evaluated value of `dt` be inquired during code generation?"	defect	closed	high	1.9.4	Backend		fixed		Lennart Ochel Adrian Pop Bernhard Thiele Maksimov Doe
