﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1694	Tuple values in initial equations cause code generator to fail	Martin Sjölund	Martin Sjölund	"{{{model M
  function f
    input Real i1,i2,i3;
    output Real o1:=i1,o2:=i2,o3:=i3;
  end f;
  Real i1=1,i2=1,i3=1,o1,o2,o3;
initial equation
  (o1,o2,o3) = f(i1,i2,i3);
equation
  der(o1) = 1;
  der(o2) = 1;
  der(o3) = 1;
end M;}}}

If we evaluate an equation like the function call above, we need to scalarize the tuples since you cannot create anonymous tuples in the C runtime.
{{{o1 = i1;
o2 = i2;
o3 = i3;}}}

For a larger example using this, see {{{Modelica 3.2.Blocks.Examples.Filter}}}"	defect	new	high						Martin Sjölund Jens Frenkel Willi Braun
