[TRNSYS-users] TRNSYS FMU issue

Widl Edmund Edmund.Widl at ait.ac.at
Thu Feb 2 00:46:43 PST 2023


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 at 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 at lists.onebuilding.org>
Cc: Amirreza Heidari <amirrezaheidarysbu at 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20230202/22690754/attachment.htm>


More information about the TRNSYS-users mailing list