Issue with FMU File Creation in FMIExport.jl: Empty Files and UndefVarError

I’ve been trying to run exact examples from the FMIExport.jl package but have been unable to generate the expected FMU file. Specifically, when working with the “BouncingBall” example, files are generated in the specified directory, but they are all empty when opened, and no file with a fmu extension was created.

Additionally, the following code from the “Manipulation” example:

fmu = FMIBUILD_CONSTRUCTOR(dirname(sourceFMU))

throws the error:

UndefVarError: `fmiSetFctGetReal` not defined.

For reference, the examples I’m working with can be found here:

FMI.jl Examples

My system specifications are:

  • Windows 10
  • Julia version: 1.9.4+0.x64.w64.mingw32

Relevant packages and versions:

  • DifferentialEquations v7.12.0
  • FMI v0.13.3
  • FMIBuild v0.2.2
  • FMICore v0.20.1
  • FMIExport v0.3.2
  • FMIFlux v0.12.2
  • FMIZoo v1.0.0
  • FileIO v1.16.3
  • JLD2 v0.4.50
  • Plots v1.40.5
  • Printf

Additionally, I would like to explore a simple use case where I can import an FMU file, make changes (such as modifying parameter values), and then export the updated FMU via Julia. Any guidance on how to achieve this would be greatly appreciated.Thanks in advance!