Error export FMU

Hi,

In the model hereabove, I split a flange interface using a TorqueToAngleAdaptator within the motor model and an AngleToTorqueAdaptator within the gearbox model as shown below.

  • Motor model:

  • Gearbox model:

The simulation works fine. However, when I try to export the motor as an FMU, I got the following error :

fmu_1554213158_14965_ode.cpp(11): error C2065: ‘$$$der$_torque’?: identificateur non d?clar?

FYI, I use Visual Studio 2017 as a compiler.

Any idea to solve this issue?

I am unable to reproduce the problem. Which version of SystemModeler did you use? (This is not a problem with your C++ compiler, but a problem with differentiation of top level inputs.)