Describe the bug
When exporting to FMI, the model is saved to the temp folder using its current filename. Then the generator loads the file to generate the source file with the model string - but then it assumes the file has the ".hmf" extension. If the original file does not, the generator cannot find the model file and export will fail.
Describe the bug When exporting to FMI, the model is saved to the temp folder using its current filename. Then the generator loads the file to generate the source file with the model string - but then it assumes the file has the ".hmf" extension. If the original file does not, the generator cannot find the model file and export will fail.
To Reproduce