You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
sebzuddas
changed the title
Can we get an explanation on how to export our FMU's to be compatible with Unreal?
Issue exporting FMU from Open Modelica OMEdit to Unreal 5.3.2
Mar 15, 2024
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
The text was updated successfully, but these errors were encountered: