Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008716/0.0008716, allocations: 98.81 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 182 kB / 16.92 MB, free: 6.754 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.31/1.31, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6598/0.6598, allocations: 115.5 MB / 407.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002972, allocations: 8 kB / 496 MB, free: 6.227 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.154, allocations: 77.53 MB / 0.5601 GB, free: 8.914 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003842/0.1579, allocations: 3.746 MB / 0.5637 GB, free: 5.145 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002926/0.1609, allocations: 2.34 MB / 0.566 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002881/0.1612, allocations: 11.94 kB / 0.566 GB, free: 2.781 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.1625, allocations: 0.4979 MB / 0.5665 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004623/0.163, allocations: 218.5 kB / 0.5667 GB, free: 2.066 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.1632, allocations: 111.9 kB / 0.5668 GB, free: 1.957 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007081/0.1639, allocations: 0.8136 MB / 0.5676 GB, free: 1.141 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.1643, allocations: 284.1 kB / 0.5679 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.1645, allocations: 239 kB / 0.5681 GB, free: 0.625 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002867/0.1648, allocations: 282.7 kB / 0.5684 GB, free: 356 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.1649, allocations: 36 kB / 0.5684 GB, free: 320 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.352e-05/0.165, allocations: 39.94 kB / 0.5685 GB, free: 280 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.1651, allocations: 123.4 kB / 0.5686 GB, free: 156 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002814/0.1654, allocations: 368.1 kB / 0.5689 GB, free: 15.78 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006591/0.1661, allocations: 0.9339 MB / 0.5699 GB, free: 14.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1661, allocations: 0 / 0.5699 GB, free: 14.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1661, allocations: 3.938 kB / 0.5699 GB, free: 14.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.1661, allocations: 0 / 0.5699 GB, free: 14.84 MB / 446.1 MB 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.001159/0.1673, allocations: 0.843 MB / 0.5707 GB, free: 13.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1673, allocations: 12.03 kB / 0.5707 GB, free: 13.94 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.456e-05/0.1674, allocations: 94.64 kB / 0.5708 GB, free: 13.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.504e-05/0.1675, allocations: 72.09 kB / 0.5709 GB, free: 13.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005124/0.168, allocations: 461.6 kB / 0.5713 GB, free: 13.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.1681, allocations: 33.38 kB / 0.5713 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.1681, allocations: 48.38 kB / 0.5714 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007316/0.1689, allocations: 438.6 kB / 0.5718 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1689, allocations: 3.906 kB / 0.5718 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.737e-05/0.1689, allocations: 20 kB / 0.5718 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.169, allocations: 12 kB / 0.5718 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000666/0.1696, allocations: 379.8 kB / 0.5722 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.1715, allocations: 1.543 MB / 0.5737 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004964/0.172, allocations: 342.7 kB / 0.574 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004567/0.1725, allocations: 320.8 kB / 0.5743 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.1725, allocations: 11.94 kB / 0.5743 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.1726, allocations: 34.56 kB / 0.5744 GB, free: 10.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 2.144e-06/0.1726, allocations: 0 / 0.5744 GB, free: 10.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009251/0.1735, allocations: 0.5165 MB / 0.5749 GB, free: 9.508 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.1735, allocations: 55.41 kB / 0.5749 GB, free: 9.441 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005144/0.1741, allocations: 485.9 kB / 0.5754 GB, free: 8.953 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.1741, allocations: 29.7 kB / 0.5754 GB, free: 8.918 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.1743, allocations: 276.4 kB / 0.5757 GB, free: 8.645 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.1744, allocations: 145.8 kB / 0.5758 GB, free: 8.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.273e-05/0.1745, allocations: 37.7 kB / 0.5759 GB, free: 8.457 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1746, allocations: 358.8 kB / 0.5762 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.1748, allocations: 132.7 kB / 0.5763 GB, free: 7.965 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.1751, allocations: 129.4 kB / 0.5764 GB, free: 7.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004951/0.1756, allocations: 308.1 kB / 0.5767 GB, free: 7.539 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1756, allocations: 0.7656 kB / 0.5767 GB, free: 7.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006214/0.1762, allocations: 412.5 kB / 0.5771 GB, free: 7.129 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1762, allocations: 4 kB / 0.5771 GB, free: 7.125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.1763, allocations: 4 kB / 0.5771 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.1763, allocations: 4 kB / 0.5771 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.1768, allocations: 123.9 kB / 0.5773 GB, free: 6.996 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.1768, allocations: 4 kB / 0.5773 GB, free: 6.992 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.1771, allocations: 59.5 kB / 0.5773 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.1771, allocations: 12 kB / 0.5773 GB, free: 6.922 MB / 446.1 MB 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.0002192/0.1773, allocations: 193.8 kB / 0.5775 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.1774, allocations: 55.38 kB / 0.5776 GB, free: 6.668 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.1775, allocations: 53.11 kB / 0.5776 GB, free: 6.617 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1775, allocations: 4 kB / 0.5776 GB, free: 6.613 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1776, allocations: 0 / 0.5776 GB, free: 6.613 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1776, allocations: 7.984 kB / 0.5776 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006083/0.1782, allocations: 0.5673 MB / 0.5782 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.1782, allocations: 3.938 kB / 0.5782 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000496/0.1787, allocations: 131.8 kB / 0.5783 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.1787, allocations: 0 / 0.5783 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.1787, allocations: 12 kB / 0.5783 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1787, allocations: 3.938 kB / 0.5783 GB, free: 5.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1788, allocations: 3.984 kB / 0.5783 GB, free: 5.836 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009398/0.1797, allocations: 0.6748 MB / 0.579 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.1798, allocations: 144.4 kB / 0.5791 GB, free: 4.984 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.351e-05/0.1799, allocations: 12 kB / 0.5791 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/0.1801, allocations: 23.89 kB / 0.5792 GB, free: 4.949 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.1802, allocations: 23.97 kB / 0.5792 GB, free: 4.926 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.1802, allocations: 11.98 kB / 0.5792 GB, free: 4.914 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003671/0.1806, allocations: 351.1 kB / 0.5795 GB, free: 4.574 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1806, allocations: 4 kB / 0.5795 GB, free: 4.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003915/0.181, allocations: 135.7 kB / 0.5797 GB, free: 4.438 MB / 446.1 MB 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.001202/0.1822, allocations: 1.223 MB / 0.5809 GB, free: 3.188 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005708/0.1828, allocations: 332.3 kB / 0.5812 GB, free: 2.863 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1828, allocations: 3.938 kB / 0.5812 GB, free: 2.859 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.1831, allocations: 191.6 kB / 0.5814 GB, free: 2.672 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006669/0.1838, allocations: 117.3 kB / 0.5815 GB, free: 2.559 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2488/0.4326, allocations: 5.34 MB / 0.5867 GB, free: 29.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.433, allocations: 0.8666 MB / 0.5875 GB, free: 28.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002487/0.4332, allocations: 56.16 kB / 0.5876 GB, free: 28.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/0.4335, allocations: 189.5 kB / 0.5878 GB, free: 28.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4335, allocations: 0 / 0.5878 GB, free: 28.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.4611, allocations: 10.63 MB / 0.5982 GB, free: 27.17 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.4614, allocations: 266.3 kB / 0.5984 GB, free: 26.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.414, allocations: 2.031 kB / 0.5984 GB, free: 26.81 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)