﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4243	Cannot put complex signal on expandable (bus) connector	Christian Kral <dr.christian.kral@…>	Adeel Asghar	"Consider the following example

{{{
package ComplexBus
  extends Modelica.Icons.Package;
  model Example
    extends Modelica.Icons.Example;
    Bus bus annotation (Placement(transformation(extent={{-10,-10},{10,10}}), iconTransformation(extent={{-10,-10},{10,10}})));
    Modelica.ComplexBlocks.Sources.ComplexConstant const(k(re=1, im=2))
                                                         annotation (Placement(transformation(extent={{-60,-10},{-40,10}})));
  equation 
    connect(const.y, bus.compl) annotation (Line(points={{-39,0},{-19.5,0},{0,0}}, color={85,170,255}), Text(
        string=""%second"",
        index=1,
        extent={{6,3},{6,3}}));
    annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(preserveAspectRatio=false)));
  end Example;

  expandable connector Bus
    extends Modelica.Icons.SignalBus;
    annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(preserveAspectRatio=false)));
  end Bus;
  annotation (uses(Modelica(version=""3.2.2"")));
end ComplexBus;
}}}

When checking {{{ComplexBus.Example}}} the following error message is triggered:

{{{
[1] 22:18:33 Translation Error
[ComplexBus: 10:5-13:31]: Failed to instantiate equation 
connect(const.y, bus.compl) annotation(Text(string = ""%second"", index = 1, extent = {{6, 3}, {6, 3}}));.

[2] 22:18:33 Translation Error
Error occurred while flattening model ComplexBus.Example
}}}

Consequently, the example model cannot be simulated.

The error occurs using:
{{{
OMEdit 1.12.0~dev-154-g354a8d1
Connected to OpenModelica 1.12.0~dev-321-g9addb54
Linux Mint 18.1 64bit
}}}"	defect	closed	low	Future	Frontend		fixed		a.haumer@…
