Changes between Initial Version and Version 3 of Ticket #5254


Ignore:
Timestamp:
2018-12-22T00:06:31Z (6 years ago)
Author:
Adrian Pop
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5254 – Description

    initial v3  
    11Please check [https://libraries.openmodelica.org/branches/newInst/IBPSA_latest/files/IBPSA_latest_IBPSA.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatMoisturePort.err IBPSA.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatMoisturePort]. The NF fails with the errors:
    22{{{
    3 [/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.
    4 [/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:
    5 [/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].
     3[IBPSA latest/Fluid/MixingVolumes/BaseClasses/Validation/MixingVolumeHeatPortWater.mo:15:10-15:67:writable] Warning: 'each' used when modifying non-array element vol.
     4[IBPSA latest/Fluid/MixingVolumes/BaseClasses/Validation/MixingVolumeHeatPortWater.mo:16:11-16:77:writable] Notification: From here:
     5[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].
    66}}}
    77The offending code is found [https://github.com/ibpsa/modelica-ibpsa/blob/a49a3413595ba88c1902599aa76085ce93516ed8/IBPSA/Fluid/MixingVolumes/BaseClasses/Validation/MixingVolumeHeatPortWater.mo#L12 here]; I'm not sure if it is correct and OMC is wrong, or the other way round.