﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3331	Problems in flattening Buildings.Electrical.DC.*.Examples.*	Marco Bonvini	Martin Sjölund	"

Hi All,

I'm trying to use the models of the package Buildings.Electrical.DC.* with OM. It looks like there are some basic issues with the models in this sub-package since almost none of the examples work, while most of the examples in the Buildings.Electrical.AC.* package work.

The only ones that work are:
1) Buildings.Electrical.DC.Sources.Examples.VoltageSource
2) Buildings.Electrical.Utilities.Examples.TestVoltageCTRL

Despite Buildings.Electrical.DC.Loads.Examples.Resistor uses the same components as Buildings.Electrical.DC.Sources.Examples.VoltageSource, it produces this error

[/var/lib/hudson/jobs/OpenModelica_TEST_ALL_LIBRARIES/workspace/OpenModelica/build/lib/omlibrary/Buildings latest/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);.
[/var/lib/hudson/jobs/OpenModelica_TEST_ALL_LIBRARIES/workspace/OpenModelica/build/lib/omlibrary/Buildings latest/Electrical/DC/Sensors/GeneralizedSensor.mo:38:3-38:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);.
[/var/lib/hudson/jobs/OpenModelica_TEST_ALL_LIBRARIES/workspace/OpenModelica/build/lib/omlibrary/Buildings latest/Electrical/DC/Loads/Examples/Resistor.mo:19:3-23:27:writable] Error: Incompatible components in connect statement: connect(sou.terminal, res.terminal_n)
- sou.terminal has components {i, theta, v}
- res.terminal_n has components {i, theta, v}
Error: Error occurred while flattening model Buildings.Electrical.DC.Loads.Examples.Resistor


Any idea on what causes it and how to solve it?

Thanks,
Marco"	defect	closed	normal	1.9.4	Third-Party Libraries	1.9.0Beta	fixed	Buildings Library	
