Opened 7 years ago

Closed 7 years ago

#4763 closed defect (fixed)

Issue with records in Templates when using the NF

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

Description

Please check Modelica.Thermal.FluidHeatFlow.Examples.TwoMass. The following error is generated:

[CodegenCFunctions.tpl:5169:16-5169:16:writable]
Error: Template error:
daeExpRelation pipe3.flowPort_b.medium == ambient2.flowPort.medium.

I'm not much in the details, but flowPort_b.medium is a record, and I guess this should have been flattened long before getting to Templates.

Change History (2)

comment:1 by Martin Sjölund, 7 years ago

Perhaps more surprising than not flattening the expression is the fact that you cannot perform the equality check on a non-operator record. Does this come from some equalityConstraint thing?

comment:2 by Francesco Casella, 7 years ago

Resolution: fixed
Status: newclosed

Now the compilation breaks earlier as in #4874

Note: See TracTickets for help on using tickets.