Opened 6 years ago

Closed 6 years ago

#5077 closed defect (fixed)

NFTyping.typeComponents fails on Modelica.Magnetic.FluxTubes example

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

Description

Please check Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1. After completing NFInst.updateImplicitVariability, the NF fails during NFTyping.typeComponents with this error:

[Modelica trunk/Magnetic/FluxTubes.mo:6619:9-6666:92:writable] 
Error: Failed to deduce dimension 1 of tabris due to missing 
binding equation.

The binding equation is indeed present in the referred source code, so it's not clear to me why this happens at all.

Change History (2)

comment:1 by Francesco Casella, 6 years ago

Component: *unknown*New Instantiation
Milestone: Future2.0.0
Owner: changed from somebody to Per Östlund

comment:2 by Per Östlund, 6 years ago

Resolution: fixed
Status: newclosed

Fixed in 1384428.

The issue wasn't really that the component was lacking a binding equation. The record instance itself had a binding equation which overrode the bindings on its fields, but this wasn't handled correctly when deducing dimensions.

Note: See TracTickets for help on using tickets.