<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=558201409-17112008><FONT face=Arial 
color=#0000ff size=2>Thanks for the tips Jeff,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558201409-17112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558201409-17112008><FONT face=Arial 
color=#0000ff size=2>Through their use I was able to determine that my 
problem occurs when our non-standard type receives a non-zero 
flow input. With a near- or non-zero flow initialisation a NaN 
iteration error is caught in simulation studio which led me to the discovery 
that until the loop pump is activated, the GenOpt-called simulation runs 
(to the 106th hour to be precise). Enforcing a permanently zero flow to 
this type allows GenOpt to run TRNExe without hanging. The fact that 
simulation studio runs with our specific flow rate but a GenOpt-called run 
doesn't baffles me a little.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558201409-17112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558201409-17112008><FONT face=Arial 
color=#0000ff size=2>This leads me to the question; why does our non-standard 
type incur problems when called from GenOpt and not when run from 
within simulation studio; how does the data stream between these programs bring 
about such behaviour? We are willing to accept that our 
type is not perfect (that it has some NaN 
or overflow by near-zero flow or other 
such circumstances) but I'm not sure how to isolate the problem 
further than this.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=558201409-17112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=558201409-17112008></SPAN><FONT face=Arial 
color=#0000ff size=2><SPAN class=558201409-17112008>Cheers,</SPAN></FONT></DIV>
<DIV align=left>
<HR align=center width="100%" SIZE=2>
</DIV>
<DIV align=left><B><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">William Logie</SPAN></FONT></B> <FONT face=Arial 
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>Forschung / 
Research</SPAN></FONT><BR><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Institut für Solartechnik SPF: <A 
title=http://www.solarenergy.ch/spf.php?lang=de&fam=44&tab=3 
href="http://www.solarenergy.ch/spf.php?lang=de&fam=44&tab=3">Adresse</A> 
/ <A title=http://www.solarenergy.ch/spf.php?lang=de&fam=41&tab=1 
href="http://www.solarenergy.ch/spf.php?lang=de&fam=41&tab=1">Website</A><BR>Hochschule 
für Technik Rapperswil HSR<BR>Tel. +41 55 222 48 34<BR>Fax +41 55 222 48 
44</SPAN></FONT><BR></DIV>
<DIV align=left>
<HR align=center width="100%" SIZE=2>
</DIV>
<P align=left></P></SPAN></FONT>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jeff Thornton 
[mailto:thornton@tess-inc.com] <BR><B>Sent:</B> Thursday, 13 November 2008 5:18 
PM<BR><B>To:</B> Logie William (William.Logie@solarenergy.ch); 
trnsys-users@cae.wisc.edu<BR><B>Subject:</B> Re: [TRNSYS-users] GenOpt 
variations on Type56<BR></FONT><BR></DIV>
<DIV></DIV>A few things come to mind:<BR><BR>1) Turn on the Overwrite Check and 
NAN Check commands using the appropriate control cards; they may catch a serious 
error that is causing the simulation to hang.<BR><BR>2) Make sure that all of 
your assign statements are fully described (full path names) as GenOpt will 
often write the input file into it's own directory structure and locally defined 
path names will fail (.\Data.dat for example).  As an alternative, move all 
external data files into the directory where Genopt is creating the input and 
BUI files.<BR><BR>Let us know if any of these options help.<BR><BR>Jeff<BR><!--{12265928695150}--><BR>Jeff Thornton <BR>President - 
TESS, LLC <BR><BR>2916 Marketplace Drive - Suite 104 <BR>Madison WI 53719 USA 
<BR><BR>Phone: 608-274-2577 <BR>Fax: 608-278-1475 <BR>E-mail: 
thornton@tess-inc.com <BR>Web: www.tess-inc.com<BR><BR><BR><BR>
<DIV id=replyfwdwrap 
style="BACKGROUND-POSITION: 50% top; BACKGROUND-IMAGE: url(http://webmail.APLUS.mailanyone.net/de/r_bg_img.gif); BACKGROUND-REPEAT: repeat-x"><STRONG>----- 
Original Message -----</STRONG><BR><STRONG>From:</STRONG> "" 
<william.logie@solarenergy.ch> <BR><STRONG>Sent:</STRONG> Thu, November 
13, 2008 3:44<BR><STRONG>Subject:</STRONG> [TRNSYS-users] GenOpt variations on 
Type56<BR><BR>
<DIV class=PrivateMsgDiv><!--{12265928695151}-->
<DIV class=bodyclass>
<DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial size=2>Dear 
Trnsys <SPAN class=812203509-13112008>Users</SPAN>,</FONT></SPAN></DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial size=2>I am introducing 
myself to the features of TRNSYS gradually, the most recent project with 
which requires some optimisation of parameters in a Type56 multi-zone building. 
I am using GenOpt to call a *.bui template (the *.dck remains the same and 
as such is not altered by GenOpt) to alter the parameters of an active slab 
heating layer; in particular<SPAN class=812203509-13112008>,</SPAN> variations 
over the pipe spacing and thickness of <SPAN class=812203509-13112008>the 
</SPAN>slab.</FONT></SPAN></DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial size=2>I have tried the 
example from Michaël Kummert (Using GenOpt with TRNSYS16 and Type56 - 
2007-02-15) which works perfectly. However when I apply the method to my 
project, GenOpt parses the GenOptRun.dck to TRNExe.exe (in which my *.bui 
file is defined) but <SPAN class=812203509-13112008>the simulation 
</SPAN>hangs in the first time step<SPAN class=812203509-13112008> 
indefinitely</SPAN>. The last <SPAN class=812203509-13112008>lines 
printed</SPAN> to <SPAN class=812203509-13112008>the 
</SPAN>GenOpt<SPAN class=812203509-13112008>Run</SPAN>.lst <SPAN 
class=812203509-13112008>file are</SPAN> following:</FONT></SPAN></DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial size=2>*** The TRNSYS 
components will be called in the following 
order:<BR>      Unit #  109   Type 
#  109<BR>      Unit #   69   
Type #   69<BR>      Unit #  
331   Type #   33<BR>      Unit 
#  200   Type #    
2<BR>      Unit #   15   Type 
#  201<BR>      Unit #   56   
Type #   56<BR>      Unit #   
28   Type #    2<BR>      Unit 
#   27   Type #    
2<BR>      Unit #   23   Type 
#    3<BR>      Unit #   
21  ;  Type #   11<BR>      Unit 
#   26   Type #  869<BR>      
Unit #   24   Type #    
3<BR>      Unit #   20   Type 
#    5<BR>      Unit #   
22   Type #   11<BR>      Unit 
#   35   Type #   
65<BR>      Unit #   36   Type 
#   65<BR>      Unit #   
34   Type #   65<BR>      Unit 
#   31   Type #   
28<BR>      Unit #   33   Type 
#   65 </FONT></SPAN></DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial size=2>Interestingly enough 
when I call the same <SPAN 
class=812203509-13112008>GenOptRun.dck</SPAN> that GenOpt trie<SPAN 
class=812203509-13112008>s</SPAN> to parse <SPAN 
class=812203509-13112008>to TRNExe </SPAN>from a command line 
directly (e.g. 'C:\Trnsys16_1\Exe\TRNExe.exe 
"C:\Trnsys16_1\MyProjects\project1\GenOptRun.dck" /n') the simulation runs 
without hanging.</FONT></SPAN></DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial><FONT size=2><SPAN 
class=812203509-13112008>Any ideas</SPAN>?</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=609414416-12112008><FONT face=Arial size=2>Thanks in 
advance,</FONT></SPAN></DIV></DIV>
<DIV align=left>
<HR align=center width="100%" SIZE=2>
</DIV>
<DIV align=left><B><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">William Logie</SPAN></FONT></B> <FONT face=Arial 
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>Forschung / 
Research</SPAN></FONT><BR><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Institut für Solartechnik SPF: <A 
title=http://www.solarenergy.ch/spf.php?lang=de&fam=44&tab=3 
href="http://www.solarenergy.ch/spf.php?lang=de&fam=44&tab=3" 
target=_new 
_fcksavedurl="http://www.solarenergy.ch/spf.php?lang=de&fam=44&tab=3">Adresse</A> 
/ <A title=http://www.solarenergy.ch/spf.php?lang=de&fam=41&tab=1 
href="http://www.solarenergy.ch/spf.php?lang=de&fam=41&tab=1" 
target=_new 
_fcksavedurl="http://www.solarenergy.ch/spf.php?lang=de&fam=41&tab=1">Website</A><BR>Hochschule 
für Technik Rapperswil HSR<BR>Tel. +41 55 222 48 34<BR>Fax +41 55 222 48 
44</SPAN></FONT><BR></DIV>
<DIV align=left>
<HR align=center width="100%" SIZE=2>
</DIV>
<P align=left></P>
<DIV> </DIV></DIV><!--{12265928695152}-->
<HR noShade SIZE=1>
<PRE>_______________________________________________
TRNSYS-users mailing list
<A href="javascript:bodyCreateMail('TRNSYS-users%40cae.wisc.edu')" _fcksavedurl="javascript:bodyCreateMail('TRNSYS-users%40cae.wisc.edu')">TRNSYS-users@cae.wisc.edu</A>
<A href="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users" target=_blank _fcksavedurl="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users">https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users</A>
</PRE></DIV></DIV></BODY></HTML>