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.001676/0.001676, allocations: 105.5 kB / 16.41 MB, free: 6.469 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.001782/0.001782, allocations: 191.9 kB / 17.34 MB, free: 5.75 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.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8047/0.8047, allocations: 126.7 MB / 417.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 69.05 kB / 0.5736 GB, free: 27.08 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1429, allocations: 78.86 MB / 0.6506 GB, free: 3.559 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005446/0.1484, allocations: 4.122 MB / 0.6546 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003581/0.152, allocations: 2.429 MB / 0.657 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003455/0.1524, allocations: 8 kB / 0.657 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.1542, allocations: 0.5624 MB / 0.6576 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005792/0.1547, allocations: 238 kB / 0.6578 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.155, allocations: 139.9 kB / 0.6579 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008891/0.1559, allocations: 0.8098 MB / 0.6587 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004645/0.1564, allocations: 326.5 kB / 0.659 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000384/0.1568, allocations: 291 kB / 0.6593 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.1572, allocations: 322.6 kB / 0.6596 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.847e-05/0.1573, allocations: 76 kB / 0.6597 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.1574, allocations: 72 kB / 0.6597 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.1576, allocations: 175.4 kB / 0.6599 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003711/0.158, allocations: 394.2 kB / 0.6603 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009789/0.159, allocations: 1 MB / 0.6613 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.159, allocations: 0 / 0.6613 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.506e-06/0.159, allocations: 0 / 0.6613 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.278e-05/0.159, allocations: 3.938 kB / 0.6613 GB, free: 8.594 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.001506/0.1605, allocations: 0.9613 MB / 0.6622 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1606, allocations: 8.031 kB / 0.6622 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.786e-05/0.1607, allocations: 86.7 kB / 0.6623 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.1608, allocations: 76.47 kB / 0.6624 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006589/0.1615, allocations: 466 kB / 0.6628 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.1615, allocations: 41.12 kB / 0.6629 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-05/0.1616, allocations: 44 kB / 0.6629 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007644/0.1624, allocations: 426.5 kB / 0.6633 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1624, allocations: 4 kB / 0.6633 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.078e-05/0.1624, allocations: 20 kB / 0.6633 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.1624, allocations: 12 kB / 0.6633 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007128/0.1632, allocations: 371.8 kB / 0.6637 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.1653, allocations: 1.524 MB / 0.6652 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.1659, allocations: 346.7 kB / 0.6655 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/0.1664, allocations: 321.3 kB / 0.6658 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.1665, allocations: 4 kB / 0.6658 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.1665, allocations: 46.48 kB / 0.6659 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 2.595e-06/0.1665, allocations: 0 / 0.6659 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.001007/0.1675, allocations: 0.4934 MB / 0.6663 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.1676, allocations: 55.41 kB / 0.6664 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006016/0.1682, allocations: 481.9 kB / 0.6669 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.1682, allocations: 33.7 kB / 0.6669 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.1685, allocations: 276.7 kB / 0.6672 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.1686, allocations: 154.6 kB / 0.6673 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-05/0.1687, allocations: 58.08 kB / 0.6674 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1689, allocations: 362.8 kB / 0.6677 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.1691, allocations: 124.7 kB / 0.6678 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.1694, allocations: 133.4 kB / 0.668 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000537/0.1699, allocations: 294.1 kB / 0.6682 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.17, allocations: 0 / 0.6682 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006945/0.1707, allocations: 397.3 kB / 0.6686 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1707, allocations: 5.719 kB / 0.6686 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1707, allocations: 4 kB / 0.6686 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1707, allocations: 0 / 0.6686 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.1712, allocations: 123.9 kB / 0.6687 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.1712, allocations: 0 / 0.6687 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.1715, allocations: 43.72 kB / 0.6688 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.1715, allocations: 23.81 kB / 0.6688 GB, free: 0.6133 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.0002596/0.1718, allocations: 197.7 kB / 0.669 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.53e-05/0.1719, allocations: 55.67 kB / 0.669 GB, free: 364 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000118/0.172, allocations: 57.11 kB / 0.6691 GB, free: 304 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.172, allocations: 4 kB / 0.6691 GB, free: 300 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.172, allocations: 0 / 0.6691 GB, free: 300 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.172, allocations: 3.984 kB / 0.6691 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007099/0.1728, allocations: 0.5829 MB / 0.6697 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.1728, allocations: 0 / 0.6697 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005183/0.1733, allocations: 127.9 kB / 0.6698 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.1733, allocations: 4 kB / 0.6698 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.1733, allocations: 12 kB / 0.6698 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.1733, allocations: 4 kB / 0.6698 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1734, allocations: 0 / 0.6698 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.1744, allocations: 0.6559 MB / 0.6705 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.1745, allocations: 136.8 kB / 0.6706 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/0.1746, allocations: 4 kB / 0.6706 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.1748, allocations: 19.98 kB / 0.6706 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.1749, allocations: 23.75 kB / 0.6706 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.1749, allocations: 8 kB / 0.6706 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004217/0.1754, allocations: 347.1 kB / 0.671 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1754, allocations: 0 / 0.671 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000426/0.1758, allocations: 151.7 kB / 0.6711 GB, free: 14.15 MB / 0.5137 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.001374/0.1772, allocations: 1.208 MB / 0.6723 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006236/0.1778, allocations: 324.6 kB / 0.6726 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.1778, allocations: 0 / 0.6726 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.1781, allocations: 187.5 kB / 0.6728 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006624/0.1788, allocations: 127.5 kB / 0.6729 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006697/0.1855, allocations: 4.851 MB / 0.6776 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.186, allocations: 0.8665 MB / 0.6785 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002242/0.1863, allocations: 56.34 kB / 0.6785 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.1865, allocations: 191.4 kB / 0.6787 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of SimCode: time 6.41e-07/0.1865, allocations: 0 / 0.6787 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.2237, allocations: 11.43 MB / 0.6899 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.586/8.809, allocations: 4 kB / 0.6899 GB, free: 11.07 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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)