Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006438/0.006438, allocations: 105.3 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 191.1 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 275.1 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9365/0.9365, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 95.86 kB / 0.6815 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1473, allocations: 86.97 MB / 0.7664 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.0048/0.1521, allocations: 4.142 MB / 0.7705 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003023/0.1552, allocations: 2.402 MB / 0.7728 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002363/0.1554, allocations: 12 kB / 0.7728 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.1568, allocations: 0.5383 MB / 0.7734 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.1572, allocations: 254 kB / 0.7736 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002202/0.1575, allocations: 131.9 kB / 0.7737 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007604/0.1582, allocations: 0.8175 MB / 0.7745 GB, free: 76 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3101/0.4683, allocations: 320.6 kB / 0.7748 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005394/0.4689, allocations: 293.6 kB / 0.7751 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.4693, allocations: 331.9 kB / 0.7754 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.4694, allocations: 74.06 kB / 0.7755 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.4695, allocations: 74.91 kB / 0.7756 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.4697, allocations: 169.5 kB / 0.7757 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003367/0.47, allocations: 387.7 kB / 0.7761 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.4711, allocations: 0.9974 MB / 0.7771 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4711, allocations: 0 / 0.7771 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4711, allocations: 0.6562 kB / 0.7771 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.644e-05/0.4711, allocations: 1.062 kB / 0.7771 GB, free: 8.801 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.00151/0.4726, allocations: 0.9501 MB / 0.778 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.4727, allocations: 8.031 kB / 0.778 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.4728, allocations: 81.42 kB / 0.7781 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/0.4734, allocations: 456.7 kB / 0.7785 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.4734, allocations: 35.16 kB / 0.7786 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.005e-05/0.4735, allocations: 48.78 kB / 0.7786 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007989/0.4743, allocations: 433.7 kB / 0.779 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.4744, allocations: 9.5 kB / 0.779 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.4744, allocations: 17.47 kB / 0.779 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.4744, allocations: 12.62 kB / 0.779 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006721/0.4751, allocations: 366.8 kB / 0.7794 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.4769, allocations: 1.519 MB / 0.7809 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004725/0.4774, allocations: 344.5 kB / 0.7812 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004242/0.4778, allocations: 320.5 kB / 0.7815 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.4779, allocations: 8.25 kB / 0.7815 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.4779, allocations: 43.66 kB / 0.7816 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 1.743e-06/0.4779, allocations: 0.875 kB / 0.7816 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.0008979/0.4788, allocations: 497.1 kB / 0.782 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.4788, allocations: 57.28 kB / 0.7821 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000525/0.4794, allocations: 491 kB / 0.7826 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.4794, allocations: 37.92 kB / 0.7826 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.4796, allocations: 278.9 kB / 0.7829 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.583e-05/0.4797, allocations: 143 kB / 0.783 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.005e-05/0.4798, allocations: 56.12 kB / 0.7831 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.4799, allocations: 364.3 kB / 0.7834 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.4801, allocations: 118.8 kB / 0.7835 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.4804, allocations: 126.1 kB / 0.7836 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004879/0.4808, allocations: 302 kB / 0.7839 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.4809, allocations: 1.062 kB / 0.7839 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007036/0.4816, allocations: 396.4 kB / 0.7843 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.4816, allocations: 11.25 kB / 0.7843 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.4816, allocations: 0.5 kB / 0.7843 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.4816, allocations: 2.25 kB / 0.7843 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005551/0.4822, allocations: 130.2 kB / 0.7844 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.4822, allocations: 2.406 kB / 0.7844 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.4826, allocations: 39.98 kB / 0.7845 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.4826, allocations: 11.56 kB / 0.7845 GB, free: 5.297 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002522/0.4828, allocations: 198.3 kB / 0.7847 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.659e-05/0.4829, allocations: 59.25 kB / 0.7847 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.4831, allocations: 62.42 kB / 0.7848 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4831, allocations: 3.094 kB / 0.7848 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.4831, allocations: 7.781 kB / 0.7848 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.4831, allocations: 3.281 kB / 0.7848 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006374/0.4837, allocations: 0.5681 MB / 0.7854 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4837, allocations: 0.7031 kB / 0.7854 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005044/0.4843, allocations: 123.7 kB / 0.7855 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.4843, allocations: 6.781 kB / 0.7855 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.4843, allocations: 7.844 kB / 0.7855 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.4843, allocations: 0.5625 kB / 0.7855 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4843, allocations: 5.219 kB / 0.7855 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009111/0.4852, allocations: 0.6513 MB / 0.7861 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.4854, allocations: 145.1 kB / 0.7863 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.502e-05/0.4854, allocations: 7.141 kB / 0.7863 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.4857, allocations: 10.47 kB / 0.7863 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.242e-05/0.4858, allocations: 26.95 kB / 0.7863 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.4858, allocations: 13.48 kB / 0.7863 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004187/0.4862, allocations: 350 kB / 0.7867 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.6e-07/0.4862, allocations: 0 / 0.7867 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000479/0.4867, allocations: 142.3 kB / 0.7868 GB, free: 3.992 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001794/0.4869, allocations: 114.2 kB / 0.7869 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006621/0.4876, allocations: 321.4 kB / 0.7872 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4876, allocations: 0 / 0.7872 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.4879, allocations: 182 kB / 0.7874 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007414/0.4886, allocations: 138 kB / 0.7875 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.4907, allocations: 1.184 MB / 0.7887 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.4911, allocations: 0.8656 MB / 0.7895 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00028/0.4914, allocations: 54.25 kB / 0.7896 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.21e-05/0.4915, allocations: 33.94 kB / 0.7896 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of SimCode: time 6.11e-07/0.4915, allocations: 2.75 kB / 0.7896 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of Templates: time 0.0115/0.503, allocations: 6.041 MB / 0.7955 GB, free: 1.93 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)