pyFMI Modelica:FMU 不包含此平台的二进制文件

pyFMI Modelica: The FMU contains no binary for this platform

我正在尝试 运行 Python 中带有 pyFMI 包的简单教程示例,但出现错误 FMU 不包含此平台的二进制文件。尝试为 FMULibrary 设置环境变量,但错误仍然存​​在。

如有任何提示,我将不胜感激。

runfile('C:/Users/NiPap/.spyder-py3/temp.py', wdir='C:/Users/d60378/.spyder-py3')
Could not find RADAR5
Could not find GLIMDA
Traceback (most recent call last):

   File "<ipython-input-1-b6c744d814b8>", line 1, in <module>
runfile('C:/Users/NiPap/.spyder-py3/temp.py', wdir='C:/Users/d60378/.spyder-py3')

   File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)

   File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

   File "C:/Users/NiPap/.spyder-py3/temp.py", line 9, in <module>
fmi_bouncing_ball.run_demo()

  File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\pyfmi\examples\fmi_bouncing_ball.py", line 32, in run_demo
model = load_fmu(fmu_name)

 File "src\pyfmi\fmi.pyx", line 7157, in pyfmi.fmi.load_fmu (src\pyfmi\fmi.c:82903)

 File "src\pyfmi\fmi.pyx", line 2666, in pyfmi.fmi.FMUModelME1.__init__ (src\pyfmi\fmi.c:33458)

 File "src\pyfmi\fmi.pyx", line 943, in pyfmi.fmi.FMUModelBase.__init__ (src\pyfmi\fmi.c:14153)

FMUException: The FMU contains no binary for this platform.

最新版本的 PyFMI 的示例 FMU 中没有 64 位 dll。但是,在即将发布的版本中会有。 如果没有 64 位 dll,则无法在 64 位环境中模拟 FMU。