Open sebzuddas opened 8 months ago
I can't speak to OMEdits FMUs. The UE plugin is for co-simulation only. If the FMU doesn't work then openmodelica may not be creating a completely FMI compliant FMU ( I have seen that from various FMI tools before). To check, if it works in FMpy (e.g., the gui reference on their github) then it should work using the UE plugin.
Yes seems like an OMEdit problem. When I run using FMpy I get the following error:
Failed to load shared library C:\Users\szuddas\AppData\Local\Temp\tmpwcbim2gy\binaries\win64\unreal_test.dll. Could not find module 'C:\Users\szuddas\AppData\Local\Temp\tmpwcbim2gy\binaries\win64\unreal_test.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Then if I import the FMU that OMEdit exported, I get this problem:
[unreal_fmu: 62:7-62:37]: [Operator reinit may not be used in an algorithm section (use translation flag --allowNonStandardModelica=reinitInAlgorithms to ignore).](omeditmessagesbrowser:///unreal_fmu?lineNumber=62)
Will keep the thread updated if I find a solution.
I managed to install and use the plugin in UE 5.3.2, but currently the FMU's I'm exporting from OMEdit are throwing errors. I came to understand that there were two types of FMU's, co-simulation and model exchange. Co-simulation exports the solver alongside the model, whereas model exchange relies on the destination software to have its own solver. I'm suspecting this is the issue, however I cannot say for sure.
difference between co-simulation and model exchange