Opened 5 years ago
Last modified 3 years ago
#5991 closed defect
NF cannot evaluate structural parameter during NFTyping.typeComponents — at Version 5
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | blocker | Milestone: | 1.18.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: | Andrea Bartolini, Michael Wetter |
Description (last modified by )
There are over 50 models in the Buildings library that fail for the same reason, see, e.g., Buildings.ThermalZones.Detailed.BaseClasses.Examples.InfraredRadiationExchange. The NF reports
[Buildings latest/HeatTransfer/Data/OpaqueConstructions.mo:9:4-11:111:writable] Error: Could not evaluate structural parameter (or constant): irRadExc.datConExt.layers.nLay which gives dimensions of array: material. Array dimensions must be known at compile time.
Fixing this issue would improve the coverage of Buildings substantially.
Change History (5)
comment:1 by , 4 years ago
Cc: | added |
---|
comment:2 by , 4 years ago
Summary: | NF cannot evaluate structural parameter → NF cannot evaluate structural parameter during NFTyping.typeComponents |
---|
comment:3 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
comment:5 by , 4 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
Andrea.Bartolini provided me a MWE to reproduce the same error (also attached)
When you try to compile
M2
, you getI suspect the issue is the same that plagues the Building library, which often uses record to hold datasheets, which may contain structural parameters for array dimensions.
As far as I understand this model is perfectly legal. Dymola accepts it also in pedantic mode.