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
If multiple subsystems access the arrays in the user-profile bus, e.g. TZoneSet or internalGains, size-mismatch errors occur.
I'm in contact with Dymola support on where this magic 20 is coming from.
What's weird: When I use a min-max block in the underlying submodel on the array, the errors disappear.
To Reproduce
Clone and install BESMod following the README.
Go into the branch 18-Dynamic-array-size-in-expandable-bus-connectors.
Check and try to execute the models:
ModelWithErrorTSet
ModelWithErrorTMea
ModelWithErrorBoth
ModelNoErrorTMea
in the package BESMod.Examples.UseCaseModelicaConferencePaper.
The only difference I can find is that TZoneSet and TZoneMea are used twice (in the ventilation.control and hydraulic.control models), not once (only hydraulic.control).
Expected behavior
No errors.
Screenshots
Desktop (please complete the following information):
Dymola 2022x
The text was updated successfully, but these errors were encountered:
It seems that adding a variable size realPassThrough is enough to fix the issue and help Dymola to understand, that the system is in fact not singular.
So, if you encounter such errors, use something like the following implementation:
It's important that Dymola knows the expected array size in each model where it is used. In this case, the number of zones nZones are used.
Describe the bug
If multiple subsystems access the arrays in the user-profile bus, e.g.
TZoneSet
orinternalGains
, size-mismatch errors occur.I'm in contact with Dymola support on where this magic 20 is coming from.
What's weird: When I use a min-max block in the underlying submodel on the array, the errors disappear.
To Reproduce
18-Dynamic-array-size-in-expandable-bus-connectors
.ModelWithErrorTSet
ModelWithErrorTMea
ModelWithErrorBoth
ModelNoErrorTMea
in the package
BESMod.Examples.UseCaseModelicaConferencePaper
.The only difference I can find is that TZoneSet and TZoneMea are used twice (in the ventilation.control and hydraulic.control models), not once (only hydraulic.control).
Expected behavior
No errors.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: