JKRT / OM.jl

A Modelica Compiler in Julia
Other
25 stars 6 forks source link

Code generation fails when using the start attribute on parameters #33

Open JKRT opened 2 years ago

JKRT commented 2 years ago

The following model works:

model HelloWorld
  Real x( start = 1, fixed = true );
  parameter Real a = 1;
equation
  der(x) = - a * x;
end HelloWorld;

However, if an attribute is used for the parameter the backend currently fails:

model HelloWorld
  Real x( start = 1, fixed = true );
  parameter Real a(start = 1);
equation
  der(x) = - a * x;
end HelloWorld;