﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4696	createFMIModelStructure fails for a simple model with function	Rüdiger Franke	Willi Braun	"Consider the following model:
{{{
model SortTest
  input Real[3] u;
  output Real[:] y = Modelica.Math.Vectors.sort(u);
end SortTest;
}}}

Attempting to translate to FMU 2.0 gives the error:
{{{
[7] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/Util/Graph.mo: 990:5-990:101]: Internal error Graph.addForbiddenColors failed.

[8] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/Util/Graph.mo: 971:5-971:107]: Internal error Graph.partialDistance2colorInt failed.

[9] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo: 1553:5-1553:75]: Internal error function mapIndexColors failed

[10] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo: 1296:5-1296:75]: Internal error function createColoring failed

[11] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo: 1234:9-1234:86]: Internal error function generateSparsePattern failed

[12] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo: 1651:3-1651:84]: Internal error function createFMIModelDerivatives failed

[13] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo: 12761:3-12761:85]: Internal error SimCodeUtil.createFMIModelStructure failed

[14] 21:58:56 Translation Error
[/home/rfranke/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo: 625:5-625:146]: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]

[15] 21:58:56 Translation Error
Internal error SimCode: The model SortTest could not be translated to FMU
}}}
"	defect	closed	critical	1.13.0	Backend	v1.13.0-dev-nightly	fixed		Willi Braun
