﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3266	Differentiation of recursive function fails	Rüdiger Franke	Willi Braun	"This is the smallest example I'm aware of that causes most trouble in OpenModelica.
{{{#!mo
model SortTest2
  input Real u; // prevent evaluation by frontend
  Real[:, :] M = [3, 4; 1 + u, 2];
  output Real[size(M, 1), size(M, 2)] N;
equation
  N = Modelica.Math.Matrices.sort(M);
  annotation(uses(Modelica(version=""3.2.1"")));
end SortTest2;
}}}
It not only knocks out the Cpp code generation (#3263), while it's reduced version crashes OMEdit (#3262). Also FMI export fails to generate the model structure -- `translateModelFMU(SortTest2, version=""2.0"")`:
{{{
Error: Internal error BackendDAEOptimize.generateSymbolicJacobian failed
Error: Internal error BackendDAEOptimize.createJacobian failed
}}}"	defect	closed	high	1.13.0	Backend	trunk	fixed		Adeel Asghar
