Opened 7 years ago

Closed 7 years ago

#4663 closed defect (fixed)

Type issues with start attribute in NF

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Please check

https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise.err

The following error is reported

[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica
 /OMCompiler/build/lib/omlibrary/Modelica 3.2.2
 /Electrical/MultiPhase.mo:1138:50-1138:66:writable]
 Error: Type mismatch in binding start = fill(1, motor.smpm.rs.m),
 expected subtype of Real, got type Integer[motor.smpm.rs.m]

The corresponding declaration is

parameter Modelica.SIunits.Resistance R[m](start=fill(1, m));

so start should have type Real[:] and then automatic conversion from Integer[:] to Real[:] should take place.

Change History (1)

comment:1 by Per Östlund, 7 years ago

Resolution: fixed
Status: newclosed

This was fixed some time ago, the model now fails due to missing function vectorization.

Note: See TracTickets for help on using tickets.