﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5320	Issue with binding equation types in the NF	Francesco Casella	Per Östlund	"Please check [https://libraries.openmodelica.org/branches/newInst/Buildings_latest/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.err Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid]. The following error is reported:
{{{
[Buildings latest/Electrical/Transmission/BaseClasses/PartialNetwork.mo:14:5-14:44:writable]
Notification: From here:
[Buildings latest/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:3:3-3:66:writable]
Error: Type mismatch in binding l = {network.grid.l[i, 1] for i in 1:1},
expected subtype of Real, got type Real[1].
}}}
{{{PartialNetwork}}} has the following [https://github.com/lbl-srg/modelica-buildings/blob/eb731e286eebc4dfa132c21399ba532fa18e57a7/Buildings/Electrical/Transmission/BaseClasses/PartialNetwork.mo#L12 bindings]:
{{{
  replaceable Buildings.Electrical.Transmission.BaseClasses.PartialBaseLine lines[grid.nLinks](
    each mode=Buildings.Electrical.Types.CableMode.commercial,
    l={grid.l[i, 1] for i in 1:grid.nLinks},
    each P_nominal=1000,
    each V_nominal=V_nominal);
}}}
why should the expected binding of {{{l}}} be of type {{{Real}}} and not {{{Real[grid.nLinks]}}}?"	defect	closed	high	2.0.0	New Instantiation		fixed		
