﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3716	Wrong handling of two-dimensional arrays inside arrays of models	Francesco Casella	Lennart Ochel	"Consider the attached test case. The model {{{TestArrays.TubeArray}}} instantiates an array of Tube models. Each Tube models contains a Flow1DFV model, which in turn contains a two dimensional array dddX.

The following error is generated:
{{{
Error: Model is structurally singular, error found sorting equations 
}}}

If dumpSimCode is switched on, the following variables show up:
{{{
56: tube[1].flow1DFV1.dddX[1,1,1] = 0.0;
60: tube[1].flow1DFV1.dddX[1,2,1] = 0.0;
64: tube[1].flow1DFV1.dddX[1,3,1] = 0.0;
68: tube[1].flow1DFV1.dddX[1,4,1] = 0.0;
130: tube[2].flow1DFV1.dddX[2,1,1] = 0.0;
134: tube[2].flow1DFV1.dddX[2,2,1] = 0.0;
138: tube[2].flow1DFV1.dddX[2,3,1] = 0.0;
142: tube[2].flow1DFV1.dddX[2,4,1] = 0.0;
}}}

The array dddX should be two-dimensional, not three-dimensional, and these equations should instead look like this:

{{{
56: tube[1].flow1DFV1.dddX[1,1] = 0.0;
60: tube[1].flow1DFV1.dddX[2,1] = 0.0;
64: tube[1].flow1DFV1.dddX[3,1] = 0.0;
68: tube[1].flow1DFV1.dddX[4,1] = 0.0;
130: tube[2].flow1DFV1.dddX[1,1] = 0.0;
134: tube[2].flow1DFV1.dddX[2,1] = 0.0;
138: tube[2].flow1DFV1.dddX[3,1] = 0.0;
142: tube[2].flow1DFV1.dddX[4,1] = 0.0;
}}}

I guess this gives a hint why the matching fails.
"	defect	closed	high	1.9.4	Backend	v1.9.4-dev-nightly	fixed		antonio.froio@…
