Opened 7 years ago
Closed 7 years ago
#4680 closed defect (duplicate)
Type error with start modifier in arrays
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
The following error is reported:
[Modelica 3.2.2/Blocks/Continuous.mo:1600:22-1600:35:writable] Error: Type mismatch in binding start = criticalDamping.x_start, expected subtype of Real, got type Real[1].
The code in Continuous.mo reads
1593: parameter Real x_start[n]=zeros(n) "Initial or guess values of states"; 1600: output Real x[n](start=x_start) "Filter states";
The start attribute should have type Real[1], not Real.
Note:
See TracTickets
for help on using tickets.
This issue affects a lot of other models, e.g.
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.err
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.err
https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.err
etc.