﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3053	Unimplemented derivatives for built-in Modelica operators	Rüdiger Franke	Willi Braun	"Thank you for prompt fix to #3048. FMU export works now for my models that use max! Are there more unimplemented derivatives?

`translateModelFMU(Rem, version=""2.0"")` for the model:
{{{
model Rem
  input Real x;
  input Real y;
  output Real r1, r2;
equation
  r1 = rem(x,y);
  r2 = x - div(x,y)*y;
end Rem;
}}}
results in
{{{
Error: Internal error BackendDAEOptimize.generateSymbolicJacobian failed
Error: Internal error BackendDAEOptimize.createJacobian failed
}}}

Once the reason is known, the use of wrapper functions seems to provide a workaround:
{{{
function myrem
  input Real x, y;
  output Real r;
algorithm
  r := rem(x,y);
end myrem;

function mydiv
  input Real x, y;
  output Real d;
algorithm
  d := div(x,y);
end mydiv;

model Rem
  input Real x;
  input Real y;
  output Real r1, r2;
equation
  r1 = myrem(x,y);
  r2 = x - mydiv(x,y)*y;
end Rem;
}}}"	defect	closed	high	1.9.2	FMI	trunk	fixed		
