Tags and keywords
The exported Modelica code is:
model FirstOrderInitial
Real x(start=2.0,fixed=true);
equation
der(x)=1-x;
end FirstOrderInitial;
The SysPhS version as formulated here is slightly different from the Modelica By Example target version, which used an explicit 'initial equation' rather than 'start' and 'fixed':
model FirstOrderInitial "First order equation with initial value"
Real x "State variable";
initial equation
x = 2 "Used before simulation to compute initial values";
equation
der(x) = 1-x "Drives value of x toward 1.0";
end FirstOrderInitial;