FMIBuild.fmi2SaveFunction
fmi2Save(fmu::FMU2, 
 fmu_path::String, 
 fmu_src_file::Union{Nothing, String}=nothing; 
 standalone=true, 
 compress=true, 
 cleanup=true, 
 removeLibDependency=true,
 removeNoExportBlocks=true,
 surpressWarnings::Bool=false,
 debug::Bool=false,
 pkg_comp_kwargs...)

Initiates the FMU building process.

The current package is detected, duplicated and extended by the FMI-functions. The resulting package is compiled and a suitable FMI-model-description is deployed. Finally, all files are zipped into a standard-compliant FMU that can be executed in a variety of tools without having Julia installed.

Arguments

- `fmu_path` path to the (future) FMU file, must end on `*.fmu`
- `fmu_src_file` file with the FMU constructor, if `nothing` file is determined automatically and the file from the call to `fmi2Save` is assumed (default=`nothing`)

Keyword arguments

- `standalone` if the FMU should be build in standalone-mode, meaning without external dependencies to a Julia-Installation (default=`true`) 
- `compress` if the FMU archive should be compressed to save disk space. On the other hand, this may enlarge loading time (default=`true`) 
- `cleanup` if the unzipped FMU archive should be deleted after creation (default=`true`) 
- `removeLibDependency` removes the FMIBuild.jl-dependency, so it will not be part of the resulting FMU (default=`true`) 
- `removeNoExportBlocks` removes the blocks marked with `### FMIBUILD_NO_EXPORT_BEGIN ###` and `### FMIBUILD_NO_EXPORT_END ###` from the `fmu_src_file`, so it will not be part of the resulting FMU (default=`true`) 
- `ressources` a Dictionary of ressources (srcPath::String => dstPath::String) for files to ship as part of the FMU
- `debug` compiles the FMU in debug mode, including full exception handling for all FMI functions. Exception stack is printed through the FMI callback pipeline. This is extremly useful during FMU development, but slows down the FMU's simulation performance (defaul=false)
- `surpressWarnings::Bool` an indicator wheater warnings should be surpressed (default=false)