﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6101	Issue with arrays of components containing conditional components in the NF	Francesco Casella	Per Östlund	"Please consider the attached package, also reported here for convenience. 
{{{
package TestConditionalArray3
  connector C
    Real x;
    flow Real y;
  end C;

  model M1
    C c;
  equation
    c.x = 10;
  end M1;
  
  model M2
    parameter Boolean act;
    C c;
    M3 m3 if act;
    M4 m4 if not act;
  equation
    connect(c, m3.c);
    connect(c, m4.c);
  end M2;

  model M3
    C c;
  equation
    c.y = 1;
  end M3;
  
  model M4
    C c;
  equation
    c.y = 2;
  end M4;

  model S
    parameter Integer N = 3;
    parameter Boolean act[3] = {true, true, false};
    M1 m1;
    M2 m2[N](act = act);
  equation
  for i in 1:N loop
      connect(m1.c, m2[i].c);
    end for;
  end S;
end TestConditionalArray3;
}}}
Try to compile model {{{S}}}. The NF complains that 
{{{
[TestConditionalArray3: 16:5-16:17]: 
The conditional expression {true, true, false} could not be evaluated.
}}}
while the OF processes the model without a hiccup. I understand this is perfectly legal, so it should also be handled by the NF."	defect	closed	blocker	1.19.0	New Instantiation		fixed		Andrea Bartolini
