<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000066">Dear Sergio, </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000066"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000066">Thanks a lot for your answer, actually the code was running in an infinite loop condition as you said. Now it is fixed</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000066"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000066">Best regards</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000066"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000066">Yosr</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-31 6:12 GMT+00:00  <span dir="ltr"><<a href="mailto:Sergio.Pintaldi@csiro.au" target="_blank">Sergio.Pintaldi@csiro.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Usually when trnsys gets stuck is because:<u></u><u></u></span></p>
<p style="margin-left:21.0pt">
<u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">        
</span></span></span><u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The code run in an infinite loop (e.g. while loop with no exit condition from the loop)<u></u><u></u></span></p>
<p style="margin-left:21.0pt">
<u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">        
</span></span></span><u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">You created a dynamically allocated array without delete it at the end of the code<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Trnsys gives you an error ending the simulation if:<u></u><u></u></span></p>
<p style="margin-left:21.0pt">
<u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">        
</span></span></span><u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">You have a division by 0 somewhere in the code<u></u><u></u></span></p>
<p style="margin-left:21.0pt">
<u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">        
</span></span></span><u></u><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">You are accessing an array in wrong way (e.g. index is wrong)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I don’t have other ideas why it gets stuck. Take in consideration that the most common error could be a division by zero or infinite
 loop.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Good luck,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:16.0pt;font-family:Mistral;color:#8496b0">Sergio Pintaldi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Yosr ALLOUCHE [mailto:<a href="mailto:allouche.yosr@gmail.com" target="_blank">allouche.yosr@gmail.com</a>]
<br>
<b>Sent:</b> Friday, 30 January 2015 8:14 AM<br>
<b>To:</b> TRNSYS users mailing list at OneBuilding.org<br>
<b>Subject:</b> [TRNSYS-users] New type creation in Trnsys<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066">Dear All, <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066">I created a new component in Trnsys, for that I used Compaq Visual Fortran V6.6.b as a compiler and Trnsys 16, I wrote all the equations and succeed to compile the program (Build/compile,
 then Build/Rebuild all) without no errors and no warnings, the dll was created successfully.<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066">Now the thing is, when I tried to run the component in Trnsys, no errors appeared, but the TRNEXE was not responding!  <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066">Could any body help me please?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066"><u></u> <u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066">​  Yosr ALLOUCHE​<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#000066">​Faculty of Engineering of the University of Porto ​<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a><br>
<a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" target="_blank">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="background-color:rgb(255,255,255)"><div dir="ltr"><b><font size="1" style="font-family:'arial narrow',sans-serif"> </font><font face="times new roman, serif">Yosr ALLOUCHE</font></b><font face="times new roman, serif"><br><b>Energy Engineer / PhD Student</b></font></div></span></div></div>
</div>