I get an error on Modelica saying:
All branches in if equation with non-parameter tests must have the same number of equations
The source of the error is following section of the code:
equation
if der(Posit2.s)<=0 then
pressure=4e5+((500e5-4e5)/0.0111)*(0.0111-Posit2.s);
end if;
Do you know how to deal with this error?