CATIA-Systems / FMPy

Simulate Functional Mockup Units (FMUs) in Python
Other
429 stars 118 forks source link

Simulating fail for FMI3.0 win32 fmu in Windows X64 Machine #630

Closed cuzperf closed 9 months ago

cuzperf commented 9 months ago

Runing python -m fmpy.gui in terminal, load BouncingBall.fmu, get following info image

BouncingBall.fmu layout as follows image

simulating fail with log image

It seems to find x64 version of fmu by mistake since my windows is x64. And the layout changed image

environment

python 3.11 fmpy v0.3.19 fmu type: 3.0 Co-Simulation win32 OS: windows AMD64 BouncingBall.zip

cuzperf commented 9 months ago

I rename x86_windows to win32 in origin BouncingBall.fmu and rezip it otherwise i will get an error log:

[Errno 2] No such file or directory: 'C:\\User\\xxx\\AppData\\Local\\Temp\\xxxxxxxx\\binaries\\win32\server_sm.exe

t-sommer commented 9 months ago

Can you share the original FMU?

cuzperf commented 9 months ago

@t-sommer the origin FMU and mo file: BouncingBall.zip

github don't allow upload fmu or mo file in comment

t-sommer commented 9 months ago

Simulating 32-bit FMUs on a 64-bit Python requires remoting which is currently only implemented for FMI 2.0 (see #394).