﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5946	[NF] Cross product inside array models is broken in the Frontend	anonymous	Per Östlund	"{{{#!modelica
//Broken model with array, containing cross operator
model CrossBug
  model Foo
    input Real x[3];
    input Real y[3];
    output Real z[3];
  equation
    z = cross(x, y);
  end Foo;
  Foo foo[1];
  
equation
  foo[1].x = time * {1, 2, 3};
  foo[1].y = {time, time^3, time^2};

end CrossBug;

//Flattened model
class CrossBug
  Real foo[1].x[1];
  Real foo[1].x[2];
  Real foo[1].x[3];
  Real foo[1].y[1];
  Real foo[1].y[2];
  Real foo[1].y[3];
  Real foo[1].z[1];
  Real foo[1].z[2];
  Real foo[1].z[3];
equation
  foo[1].z[1] = foo[1].x * foo[1].y - foo[1].x * foo[1].y;
  foo[1].z[2] = foo[1].x * foo[1].y - foo[1].x * foo[1].y;
  foo[1].z[3] = foo[1].x * foo[1].y - foo[1].x * foo[1].y;
  foo[1].x[1] = time;
  foo[1].x[2] = time * 2.0;
  foo[1].x[3] = time * 3.0;
  foo[1].y[1] = time;
  foo[1].y[2] = time ^ 3.0;
  foo[1].y[3] = time ^ 2.0;
end CrossBug;
}}}"	defect	closed	high	1.16.0	New Instantiation		fixed		
