﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2767	fmi2GetDerivatives shifts value references by -1 when calling getReal of FMU	rfranke@…	Willi Braun	"First of all: thank you for the fast processing of #2762!

Now the exported FMU version 2.0 shall run in another environment (github.com/omuses/hqp). According to modelDescription.xml the FMU has the following variables:
{{{
valueReference   name
0                y1
1                y2
2                der(y1)
3                der(y2)
4                u           local!!???
5                p
6                y1_start
7                y2_start
}}}

When the environment calls fmi2GetDerivatives, then OpenModelica calls the getReal function of the generated DIC_FMU.c with the vr's 1 and 2 -- it must be 2 and 3! Can you please check your implementation of fmi2GetDerivatives?

Btw.: it's a pitty that the fmi-functions, such as fmi2GetDerivatives are not part of the exported C-code. This would simplify debugging and potential porting to an embedded target platform.

Moreover: this week a change has been introduced that now lets the input u appear with causality ""local"" in modelDescription.xml!? Can you please check as well?
"	defect	closed	critical	1.9.1	FMI	trunk	fixed		Willi Braun
