Hi Filip,
You send the email from an alternate address that is not subscribed to the openmodelicainterest list. It bounced to me for approval, so I'm sending it to the list. As for your problem, this is how the parameters should be treated in Modelica 3.x, if they do not have a default value a warning is issued. This problem can be fixed in several ways: 1. add a default value for the parameter 2. add a start value for the parameter 3. add an initial equation that sets the parameter See the Modelica specification 3.x in regard to treatment of parameter values for more information. Cheers, Adrian Pop/
From: "Filip Claeys"<[email protected]> To:<[email protected]> Apparently something has changed in the official 1.5.0 release of OMC compared to previous versions with regard to the default value of the fixed attribute of parameters. Consider the following example: --- block Test parameter Real p; output Real y; equation y = p; end Test; --- Running it through OMC (to produce flat code, which is what we always do) gives: --- fclass Test parameter Real p; output Real y; equation y = p; end Test; Warning: Parameter p has no value, and is fixed during initialization (fixed=true) --- Not only does the last line with the warning message give a parse error when processing the flat code with our back-end compiler, but the fact that fixed is set to true by default for parameters is generally annoying and also not logical I think. Was there any pertinent reason to change this in the official 1.5.0 release? Best regards, Filip.
