You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Some models in the package Controls fail in OpenModelica.
Error logs
Error in model: AixLib.Controls.HVACAgentBasedControl.Examples.BookTrading.BookTrading
Failed to build model: AixLib.Controls.HVACAgentBasedControl.Examples.BookTrading.BookTrading
[C:/OM119/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo:1551:7-1552:100:writable] Error: Internal error NFExpression.makeSubscriptedExp: too few dimensions in [3551555559.0, 30; 3551555577.0, 20; 3551555588.0, 20] to apply subscripts [<bookSellerAgent, bookSellerAgent>]
Error in model: AixLib.Controls.HVACAgentBasedControl.Examples.BookTrading.NetworkCommunication1
Failed to build model: AixLib.Controls.HVACAgentBasedControl.Examples.BookTrading.NetworkCommunication1
[C:/OM119/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo:1551:7-1552:100:writable] Error: Internal error NFExpression.makeSubscriptedExp: too few dimensions in [3551555589.0, 30; 3551555559.0, 40; 3551555556.0, 20] to apply subscripts [<bookSellerAgent1, bookSellerAgent1>]
Error in model: AixLib.Controls.HVACAgentBasedControl.Examples.BuildingHeatingSystems.BuildingHeating
Failed to build model: AixLib.Controls.HVACAgentBasedControl.Examples.BuildingHeatingSystems.BuildingHeating
[D:/04_git/AixLib/AixLib/DataBase/ThermalZones/ZoneBaseRecord.mo:130:40-130:53:writable] Notification: From here:
[D:/04_git/AixLib/AixLib/DataBase/ThermalZones/ZoneBaseRecord.mo:130:3-130:296:writable] Error: Non-array modification ‘"W/m2"‘ for array component ‘unit‘, possibly due to missing ‘each‘.
[D:/04_git/AixLib/AixLib/DataBase/ThermalZones/ZoneBaseRecord.mo:14:3-15:39:writable] Error: Could not evaluate structural parameter (or constant): thermalZone.zoneParam.nOrientations which gives dimensions of array: AWin. Array dimensions must be known at compile time.
Error in model: AixLib.Controls.HVACAgentBasedControl.Examples.BuildingHeatingSystems.BuildingWithPV
Failed to build model: AixLib.Controls.HVACAgentBasedControl.Examples.BuildingHeatingSystems.BuildingWithPV
[D:/04_git/AixLib/AixLib/DataBase/ThermalZones/ZoneBaseRecord.mo:130:40-130:53:writable] Notification: From here:
[D:/04_git/AixLib/AixLib/DataBase/ThermalZones/ZoneBaseRecord.mo:130:3-130:296:writable] Error: Non-array modification ‘"W/m2"‘ for array component ‘unit‘, possibly due to missing ‘each‘.
[D:/04_git/AixLib/AixLib/DataBase/ThermalZones/ZoneBaseRecord.mo:14:3-15:39:writable] Error: Could not evaluate structural parameter (or constant): thermalZone.zoneParam.nOrientations which gives dimensions of array: AWin. Array dimensions must be known at compile time.
Error in model: AixLib.Controls.HeatPump.Examples.HeatPumpController
Failed to build model: AixLib.Controls.HeatPump.Examples.HeatPumpController
Error: Too few equations, under-determined system. The model has 47 equation(s) and 48 variable(s).
[D:/04_git/AixLib/AixLib/Controls/Interfaces/VapourCompressionMachineControlBus.mo:12:3-14:55:writable] Warning: Variable hPControllerOnOff.heatPumpControlBus.onOffMea does not have any remaining equation to be solved in.
The original equations were:
Equation 32: hPControllerOnOff.heatPumpControlBus.onOffMea = showOnOff.activePort, which needs to solve for showOnOff.activePort
Equation 31: hPControllerOnOff.heatPumpControlBus.onOffMea = output_on, which needs to solve for output_on
Equation 30: hPControllerOnOff.heatPumpControlBus.onOffMea = heatPumpControlBus.onOffMea, which needs to solve for heatPumpControlBus.onOffMea
Error in model: AixLib.Controls.Interfaces.ModularHeatPumpControlBus
[D:/04_git/AixLib/AixLib/Controls/Interfaces/ModularSensorControlBus.mo:36:27-36:35:writable] Notification: From here:
[D:/04_git/AixLib/AixLib/Controls/Interfaces/ModularSensorControlBus.mo:36:3-38:68:writable] Error: Non-array modification ‘"1"‘ for array component ‘unit‘, possibly due to missing ‘each‘.
Error in model: AixLib.Controls.Interfaces.ModularSensorControlBus
[D:/04_git/AixLib/AixLib/Controls/Interfaces/ModularSensorControlBus.mo:36:27-36:35:writable] Notification: From here:
[D:/04_git/AixLib/AixLib/Controls/Interfaces/ModularSensorControlBus.mo:36:3-38:68:writable] Error: Non-array modification ‘"1"‘ for array component ‘unit‘, possibly due to missing ‘each‘.
Error in model: AixLib.Controls.HeatPump.SafetyControls.OnOffControl
[D:/04_git/AixLib/AixLib/Controls/HeatPump/SafetyControls/OnOffControl.mo:25:3-27:73:writable] Error: The conditional expression use_runPerHou could not be evaluated.
Error in model: AixLib.Controls.HeatPump.HPControl
[D:/04_git/AixLib/AixLib/Controls/SetPoints/Functions/HeatingCurveFunction.mo:7:3-8:78:writable] Error: Invalid public variable TDesign, function variables that are not input/output must be protected.
Error in model: AixLib.Controls.HVACAgentBasedControl.Examples.BookTrading.BookTrading
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: The model can't be instantiated due to top-level outer element ‘messageNotification‘, it may only be used as part of a simulation model.
[D:/04_git/AixLib/AixLib/Controls/HVACAgentBasedControl/BaseClasses/PartialAgent.mo:9:3-10:12:writable] Warning: An inner declaration for outer component messageNotification could not be found and was automatically generated.
[C:/OM119/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo:1551:7-1552:100:writable] Error: Internal error NFExpression.makeSubscriptedExp: too few dimensions in [3551555559.0, 30; 3551555577.0, 20; 3551555588.0, 20] to apply subscripts [<bookSellerAgent, bookSellerAgent>]
Error in model: AixLib.Controls.HVACAgentBasedControl.Examples.BookTrading.NetworkCommunication1
[C:/OM119/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFExpression.mo:1551:7-1552:100:writable] Error: Internal error NFExpression.makeSubscriptedExp: too few dimensions in [3551555589.0, 30; 3551555559.0, 40; 3551555556.0, 20] to apply subscripts [<bookSellerAgent1, bookSellerAgent1>]
The text was updated successfully, but these errors were encountered:
Additionally, I found that the above-mentioned models as well as the Modelica DeviceDrivers Example Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP fail to simulate in Dymola 2023.
The error message is
MDDUDPSocket.h: socket failed with error: 10022
The stack of functions is:
Modelica_DeviceDrivers.Communication.UDPSocket
Modelica_DeviceDrivers.Communication.UDPSocket(0, 0, true, 1, 0)
AixLib.Controls.HeatPump.SafetyControls.OnOffControl @FWuellhorst is working on this on another branch
AixLib.Controls.HeatPump.HPControl @FWuellhorst is working on this on another branch
AixLib.Controls.HVACAgentBasedControl.Examples.BuildingHeatingSystems.BuildingWithPV This will be adressed in the ReducedOrder fails in OpenModelica #1349 issue
AixLib.Controls.HVACAgentBasedControl.Examples.BuildingHeatingSystems.BuildingHeating This will be adressed in the ReducedOrder fails in OpenModelica #1349 issue
Describe the bug
Some models in the package
Controls
fail in OpenModelica.Error logs
The text was updated successfully, but these errors were encountered: