If multiple simulations are performed for a model that includes FFD without fully releasing the library, then the second simulation would fail due to that the global structure "cosim" has not been set to NULL in the destructor. The use case can be for instance when the model is compiled into an FMU and the following is performed:
Load the FMU
Simulate
Use the FMI reset method
Simulate again (will fail)
An example model is Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection)
Setting the structure "cosim" to NULL will resolve the issue.
If multiple simulations are performed for a model that includes FFD without fully releasing the library, then the second simulation would fail due to that the global structure "cosim" has not been set to NULL in the destructor. The use case can be for instance when the model is compiled into an FMU and the following is performed:
An example model is Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection)
Setting the structure "cosim" to NULL will resolve the issue.