Don't store the fmi2CallbackFunctions pointer
There is no guarantee that this struct is allocated by the caller of fmi2Instantiate. The Standard only states that the functions contained in the struct are not allowed to change!
There is no guarantee that this struct is allocated by the caller of fmi2Instantiate. The Standard only states that the functions contained in the struct are not allowed to change!