Opened 6 years ago

Last modified 6 years ago

#5254 closed defect

Issue with constaining class in replaceable array of models — at Initial Version

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

Description

Please check IBPSA.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatMoisturePort. The NF fails with the errors:

[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/IBPSA latest/Fluid/MixingVolumes/BaseClasses/Validation/MixingVolumeHeatPortWater.mo:15:10-15:67:writable] Warning: 'each' used when modifying non-array element vol.
[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/IBPSA latest/Fluid/MixingVolumes/BaseClasses/Validation/MixingVolumeHeatPortWater.mo:16:11-16:77:writable] Notification: From here:
[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/IBPSA latest/Fluid/MixingVolumes/BaseClasses/PartialMixingVolume.mo:6:3-8:71:writable] Error: Type mismatch in binding initialize_p = {i == 1 and not Medium.singleState for i in 1:3}, expected subtype of Boolean, got type Boolean[3].

The offending code is found here; I'm not sure if it is correct and OMC is wrong, or the other way round.

Change History (0)

Note: See TracTickets for help on using tickets.