﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5889	Creating FMU with option -d=-disableDirectionalDerivatives makes fmi2Instantiate() crash.	silvano.seva@…	Andreas Heuermann	"I'm trying to setup a simple system composed by a Model Exchange FMU coupled to an implicit euler solver. To do this, I need to call the fmi2GetDirectionalDerivative function, which is available if the FMU is generated from the modelica source using the ""-d=-disableDirectionalDerivatives"" option.
However, this makes the fmi2Instantiate() crash with a segmentation fault, which I traced (using the crash report informations and objdump) to an issue inside the function FmiTest_Model_initialAnalyticJacobianFMIDER, generated by OpenModelica.

I've attached a minimal example. The steps to reproduce the issue are:
- unzip the folder
- run ""cmake ."" inside it to setup the building environment (it requires the pugixml library to be installed)
- running ""make"" and then ""./fmitest"" with files as-is make the program crash
- editing the 6th line of file ""buldfmi.mos"" so that it does not contain anymore the option ""-d=-disableDirectionalDerivatives"", then issuing ""make clean"" followed by ""make"" and ""./fmitest"" will not produce a program crash."	defect	closed	blocker	Future	FMI	v1.16.0-dev	fixed		
