<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The generated FMU should work on Windows 10 without problems.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal">Edmund<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1] <a href="https://pypi.org/project/fmipp/1.4/">https://pypi.org/project/fmipp/1.4/</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org>
<b>On Behalf Of </b>Amirreza Heidari via TRNSYS-users<br>
<b>Sent:</b> Mittwoch, 1. Februar 2023 19:33<br>
<b>To:</b> TRNSYS users mailing list at OneBuilding.org <TRNSYS-users@lists.onebuilding.org><br>
<b>Cc:</b> Amirreza Heidari <amirrezaheidarysbu@gmail.com><br>
<b>Subject:</b> [TRNSYS-users] TRNSYS FMU issue<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Georgia",serif;color:#0B5394">Hello,</span><span style="font-family:"Georgia",serif;color:#0B5394"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif;color:#0B5394"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Georgia",serif;color:#0B5394">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 "<i>The FMU could
 not be loaded. Error loading the binary". </i>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? </span><span style="font-family:"Georgia",serif;color:#0B5394"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif;color:#0B5394"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Georgia",serif;color:#0B5394">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. </span><span style="font-family:"Georgia",serif;color:#0B5394"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif;color:#0B5394"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Georgia",serif;color:#0B5394">Regards</span><span style="font-family:"Georgia",serif;color:#0B5394"><o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>