[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] TRNSYS FMU issue



Hi,

 

The generated FMU should work on Windows 10 without problems.

 

Most likely the issue is the compatibility of the generated FMU with the Python version you are using. Because TRNSYS 17 is a 32-bit application, the FMU’s binary is also a 32-bit. For this reason, you will also have to use a 32-bit version of Python, otherwise the FMU import will not work.

 

I am not sure if there is a pyfmi version available for 32-bit Python. An alternative would be to use an older release of Python (version 3.6) and package fmipp (version 1.4, see [1]) for importing and handling the FMU.

 

Best regards,

Edmund

 

[1] https://pypi.org/project/fmipp/1.4/

 

From: TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org> On Behalf Of Amirreza Heidari via TRNSYS-users
Sent: Mittwoch, 1. Februar 2023 19:33
To: TRNSYS users mailing list at OneBuilding.org <TRNSYS-users@lists.onebuilding.org>
Cc: Amirreza Heidari <amirrezaheidarysbu@gmail.com>
Subject: [TRNSYS-users] TRNSYS FMU issue

 

Hello,

 

I have exported an FMU file from my TRNSYS model to be used in Python with pyfmi library. When I want to import it in the Python code I get the error "The FMU could not be loaded. Error loading the binary". In the documentation of FMU generator it is written that it is compatible with windows 7. Does this error mean that this tool does not work with windows 10? Is there any other alternative to make FMU from TRNSYS model? 

 

Alternatively, is three any other method to speedup the TRNSYS co-simulation from Python? At the moment I am using subprocess to overwrite .back file, which is extremely slow. 

 

Regards