This model looks crazy to me, but I can't find support in the specification for rejecting it:
model ConstantPre
constant Real c = 1.0;
initial equation
pre(c) = 2.0;
end ConstantPre;
Maybe we should deprecate this kind of craziness?
What about the parameter case?
model ParameterPre
parameter Real p = 1.0;
initial equation
pre(p) = 2.0;
end ParameterPre;
Outside of initial sections, it seems straight-forward to just apply the simplification pre(c) → c, which would also be safe for a parameter, right?