<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Joe,</p>
    <p> There isn't really a way to avoid all that initialization. It is
      the kernel reading and checking the input file and then getting
      all of the internal data structures set up so that they can be
      accessed by the Types.</p>
    <p>kind regards,</p>
    <p> David</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 10/27/2022 14:26, Roberts Joseph
      Alexander via TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DB7PR07MB49534A430E1D76432F33BAA1E6339@DB7PR07MB4953.eurprd07.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@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:inherit;
        panose-1:0 0 0 0 0 0 0 0 0 0;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}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]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello all, <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">As part of a master + slave simulation, I’m
          trying to run .dck files from the command line as a python
          script as follows<span lang="EN-US">:<o:p></o:p></span></p>
        <p class="MsoNormal"><i><span lang="EN-US">import subprocess<o:p></o:p></span></i></p>
        <p class="MsoNormal"><i><span lang="EN-US">subprocess.run([r"C:\Trnsys17\Exe\TRNExe.exe",r"C:\zGithub\ExampleTRNSYSmodel.dck","/h"])<o:p></o:p></span></i></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">The simulations are
            quite short (just a week or so), but I’ve noticed the
            majority of the computational time is dedicated to some sort
            of initialization, i.e. a 1 week simulation takes about 4 s,
            and a 2 week simulation under 5 s. Is there any way I can
            shave down this time (since making the simulations shorter
            has diminishing returns)?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Many thanks,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Joe<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#D04D2A;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="EN-US">Joseph
              Roberts</span></b><span
            style="color:#D04D2A;mso-fareast-language:EN-GB"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#D04D2A;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="EN-US">Eurac
              Research</span></b><span
            style="color:#201F1E;mso-fareast-language:EN-GB"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#D04D2A;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="EN-US"> </span></b><span
            style="color:#201F1E;mso-fareast-language:EN-GB"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="EN-US">Institute
            for Renewable Energy </span><span
            style="color:#201F1E;mso-fareast-language:EN-GB"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#D04D2A;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT">Tel</span></b><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT"> +39
            0471 055 841</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><u><span
              style="color:#0563C1;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT"><a class="moz-txt-link-abbreviated" href="mailto:joroberts@eurac.edu">joroberts@eurac.edu</a></span></u><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT"> </span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT">A.
            Volta Straße/Via A. Volta 13/A</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT">39100
            Bozen/Bolzano</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#D04D2A;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT"> </span></b><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT">Legal
            Seat</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT">Drususallee/Viale
            Druso 1</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#D04D2A;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT">I-39100
            Bozen/Bolzano</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#D04D2A;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="EN-US"><a
                href="http://www.eurac.edu/" target="_blank"
                moz-do-not-send="true"><span style="color:blue"
                  lang="IT">www.eurac.edu</span></a></span></b><u><span
              style="color:blue;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></u></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#201F1E;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="IT"> </span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#CC3300;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB"><a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsubscribe.newsletter2go.com%2F%3Fn2g%3D3kdnp69j-qh67lolj-9bg&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248291146%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2KFEYgYYr3CE7W967yJZyon4B8tgK1gACcMA8KrfsVw%3D&reserved=0"
                target="_blank" title="Original URL:
                https://subscribe.newsletter2go.com/?n2g=3kdnp69j-qh67lolj-9bg.
                Click or tap if you trust this link."
                moz-do-not-send="true"><span style="color:blue">subscribe
                  to our newsletter</span></a></span></b><u><span
              style="color:blue;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB"><o:p></o:p></span></u></p>
        <p class="MsoNormal" style="background:white"><b><span
              style="color:#D04D2A;border:none windowtext
              1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="EN-US"><a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Feurac&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lAJLDz7yL4Gq3boV9d%2BRYPx4bMkaaWjjfNx%2BH44bPcc%3D&reserved=0"
                target="_blank" title="Original URL:
                https://twitter.com/eurac. Click or tap if you trust
                this link." moz-do-not-send="true"><span
                  style="color:blue">Twitter</span></a> l <a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Feurac.research&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Vm1UP5O8G152r9AA4VIIJDNQdOudbkJUyhwv6j1wc8I%3D&reserved=0"
                target="_blank" title="Original URL:
                https://www.facebook.com/eurac.research. Click or tap if
                you trust this link." moz-do-not-send="true"><span
                  style="color:blue">Facebook</span></a> l <a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fuser%2FEURACtv&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xEFeVAAvzZZqhDq%2B4miv3%2FaqSB3CV%2BCwN%2Bdep3A%2FB3U%3D&reserved=0"
                target="_blank" title="Original URL:
                https://www.youtube.com/user/EURACtv. Click or tap if
                you trust this link." moz-do-not-send="true"><span
                  style="color:blue">Youtube</span></a> l <a
href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Feuracresearch&data=05%7C01%7CJosephAlexander.Roberts%40eurac.edu%7C5636051dca7445218cf008da7c331f0e%7C9251326703e3401a80d4c58ed6674e3b%7C0%7C0%7C637958856248447364%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OYxfS90U1k1%2BsWDjFOVkDOsJ9JZONawtyF9fmiYf3mo%3D&reserved=0"
                target="_blank" title="Original URL:
                https://www.linkedin.com/company/euracresearch. Click or
                tap if you trust this link." moz-do-not-send="true"><span
                  style="color:blue">LinkedIn</span></a></span></b><span
            style="color:#201F1E;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="color:#201F1E;border:none windowtext
            1.0pt;padding:0cm;mso-fareast-language:EN-GB" lang="EN-US"> </span><span
            style="color:#201F1E;mso-fareast-language:EN-GB"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:8.0pt;font-family:"inherit",serif;color:black;border:none
            windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-GB"
            lang="EN-US">According to regulation (EU) 2016/679 this
            transmission is intended only for the use of the addressee
            and may contain confidential information. If you receive
            this transmission in error, please notify the sender
            immediately by email and delete all copies of this message
            and any attachments.</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:8.0pt;font-family:"inherit",serif;color:black;border:none
            windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-GB"
            lang="EN-US"> </span><span
            style="color:#201F1E;mso-fareast-language:EN-GB"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:8.0pt;font-family:"inherit",serif;color:black;border:none
            windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-GB"
            lang="DE">Diese Nachricht ist im Sinne der Verordnung (EU)
            2016/679 ausschließlich für den Adressaten bestimmt und kann
            vertrauliche Informationen enthalten. Sollten Sie diese
            Nachricht irrtümlich erhalten haben, bitten wir Sie, den
            Absender darüber unverzüglich per E-Mail in Kenntnis zu
            setzen sowie die Nachricht und etwaige Kopien und Anlagen zu
            vernichten.</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="DE"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:8.0pt;font-family:"inherit",serif;color:black;border:none
            windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-GB"
            lang="DE"> </span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="DE"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:8.0pt;font-family:"inherit",serif;color:black;border:none
            windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-GB"
            lang="IT">Ai sensi del Regolamento UE 679/2016 questo
            messaggio è ad uso esclusivo del destinatario e può
            contenere informazioni riservate. Qualora Le fosse pervenuto
            per errore, Le chiediamo gentilmente di comunicarcelo
            immediatamente via e-mail ed eliminare qualsiasi copia e
            allegato.</span><span
            style="color:#201F1E;mso-fareast-language:EN-GB" lang="IT"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
***************************
David BRADLEY
Principal
Thermal Energy System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
  </body>
</html>