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.001641/0.001641, allocations: 104.5 kB / 16.4 MB, free: 6.508 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.001682/0.001682, allocations: 192 kB / 17.34 MB, free: 5.734 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7982/0.7982, allocations: 125.4 MB / 416.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.69 kB / 0.5717 GB, free: 27.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1446, allocations: 78.58 MB / 0.6484 GB, free: 5.727 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005651/0.1502, allocations: 4.119 MB / 0.6524 GB, free: 1.586 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.1542, allocations: 2.421 MB / 0.6548 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003685/0.1546, allocations: 12 kB / 0.6548 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.1563, allocations: 0.5519 MB / 0.6554 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006063/0.157, allocations: 238 kB / 0.6556 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.1573, allocations: 143.8 kB / 0.6557 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009128/0.1582, allocations: 0.8126 MB / 0.6565 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004916/0.1587, allocations: 326.5 kB / 0.6568 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.1591, allocations: 291 kB / 0.6571 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003926/0.1595, allocations: 330.6 kB / 0.6574 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.935e-05/0.1596, allocations: 76 kB / 0.6575 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.1597, allocations: 72 kB / 0.6576 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.1599, allocations: 171.4 kB / 0.6577 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003674/0.1603, allocations: 386.3 kB / 0.6581 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.1614, allocations: 0.9884 MB / 0.6591 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.1614, allocations: 4 kB / 0.6591 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.833e-06/0.1614, allocations: 3.938 kB / 0.6591 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.722e-05/0.1614, allocations: 0 / 0.6591 GB, free: 10.78 MB / 0.4981 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.001499/0.1629, allocations: 0.9691 MB / 0.66 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.163, allocations: 16.02 kB / 0.66 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.1631, allocations: 86.72 kB / 0.6601 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1632, allocations: 84.39 kB / 0.6602 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.1639, allocations: 454.1 kB / 0.6606 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.1639, allocations: 41.12 kB / 0.6607 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.77e-05/0.164, allocations: 51.98 kB / 0.6607 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007706/0.1648, allocations: 426.5 kB / 0.6611 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.1648, allocations: 0 / 0.6611 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.231e-05/0.1649, allocations: 20 kB / 0.6611 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.1649, allocations: 12 kB / 0.6611 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007097/0.1656, allocations: 367.8 kB / 0.6615 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.1678, allocations: 1.52 MB / 0.663 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.1684, allocations: 342.7 kB / 0.6633 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004927/0.1689, allocations: 328.6 kB / 0.6636 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.1689, allocations: 4 kB / 0.6636 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.169, allocations: 38.56 kB / 0.6637 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 2.534e-06/0.169, allocations: 0 / 0.6637 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.001007/0.17, allocations: 0.4934 MB / 0.6641 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.1701, allocations: 59.39 kB / 0.6642 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005832/0.1706, allocations: 485.9 kB / 0.6647 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.1707, allocations: 29.7 kB / 0.6647 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.1709, allocations: 280.7 kB / 0.665 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1711, allocations: 154.6 kB / 0.6651 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.1712, allocations: 58.08 kB / 0.6652 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.1714, allocations: 362.8 kB / 0.6655 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.1716, allocations: 116.7 kB / 0.6656 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.1719, allocations: 125.4 kB / 0.6657 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000534/0.1724, allocations: 306.1 kB / 0.666 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1724, allocations: 0.7656 kB / 0.666 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006964/0.1731, allocations: 392.5 kB / 0.6664 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.1732, allocations: 14.17 kB / 0.6664 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.1732, allocations: 0 / 0.6664 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1732, allocations: 0 / 0.6664 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.1737, allocations: 127.9 kB / 0.6665 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.1737, allocations: 4 kB / 0.6665 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/0.1739, allocations: 43.67 kB / 0.6666 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.174, allocations: 8 kB / 0.6666 GB, free: 2.793 MB / 0.4981 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.0002424/0.1742, allocations: 205.6 kB / 0.6668 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/0.1743, allocations: 51.67 kB / 0.6668 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/0.1744, allocations: 61.09 kB / 0.6669 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1744, allocations: 7.938 kB / 0.6669 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.1745, allocations: 0 / 0.6669 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.1745, allocations: 4 kB / 0.6669 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006972/0.1752, allocations: 0.579 MB / 0.6675 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1752, allocations: 3.938 kB / 0.6675 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005048/0.1757, allocations: 123.9 kB / 0.6676 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.1757, allocations: 4 kB / 0.6676 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.1757, allocations: 4 kB / 0.6676 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.124e-06/0.1757, allocations: 7.984 kB / 0.6676 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1757, allocations: 0 / 0.6676 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.1768, allocations: 0.656 MB / 0.6683 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.1769, allocations: 132.8 kB / 0.6684 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.461e-05/0.177, allocations: 15.98 kB / 0.6684 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1772, allocations: 8 kB / 0.6684 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.1773, allocations: 27.75 kB / 0.6684 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.1773, allocations: 16 kB / 0.6684 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004396/0.1777, allocations: 351 kB / 0.6688 GB, free: 472 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1778, allocations: 0 / 0.6688 GB, free: 472 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004037/0.1782, allocations: 151.7 kB / 0.6689 GB, free: 320 kB / 0.4981 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.001425/0.1796, allocations: 1.204 MB / 0.6701 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006399/0.1803, allocations: 320.3 kB / 0.6704 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1803, allocations: 7.875 kB / 0.6704 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000305/0.1806, allocations: 179.6 kB / 0.6706 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006537/0.1812, allocations: 133 kB / 0.6707 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006797/0.188, allocations: 4.845 MB / 0.6754 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005062/0.1886, allocations: 0.8704 MB / 0.6763 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002227/0.1888, allocations: 56.3 kB / 0.6763 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002837/0.1891, allocations: 187.4 kB / 0.6765 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of SimCode: time 1.723e-06/0.1891, allocations: 0 / 0.6765 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.2275, allocations: 11.44 MB / 0.6877 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.391/8.618, allocations: 4.812 kB / 0.6877 GB, free: 13.25 MB / 0.5294 GB (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)