Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.001368/0.001369, allocations: 101.7 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.001261/0.001261, allocations: 192 kB / 17.34 MB, free: 5.738 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7979/0.7979, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 64.22 kB / 0.5736 GB, free: 27.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1438, allocations: 78.86 MB / 0.6506 GB, free: 3.602 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004314/0.1481, allocations: 3.016 MB / 0.6535 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.151, allocations: 2.145 MB / 0.6556 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.1512, allocations: 7.938 kB / 0.6556 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.1526, allocations: 0.5094 MB / 0.6561 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002716/0.1529, allocations: 138.9 kB / 0.6563 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000125/0.1531, allocations: 63.86 kB / 0.6563 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000472/0.1535, allocations: 445 kB / 0.6568 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.1538, allocations: 155.2 kB / 0.6569 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.154, allocations: 155.4 kB / 0.6571 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002257/0.1543, allocations: 183.1 kB / 0.6572 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.8e-05/0.1543, allocations: 36 kB / 0.6573 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.187e-05/0.1544, allocations: 32 kB / 0.6573 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1545, allocations: 95.67 kB / 0.6574 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.1547, allocations: 222.9 kB / 0.6576 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005726/0.1553, allocations: 0.5525 MB / 0.6581 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1553, allocations: 0 / 0.6581 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.243e-06/0.1553, allocations: 0 / 0.6581 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.1553, allocations: 0 / 0.6581 GB, free: 11.85 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001041/0.1564, allocations: 0.7121 MB / 0.6588 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1564, allocations: 8.031 kB / 0.6588 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.753e-05/0.1565, allocations: 58.72 kB / 0.6589 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/0.1566, allocations: 48.61 kB / 0.6589 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/0.1571, allocations: 378.4 kB / 0.6593 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.1571, allocations: 16.56 kB / 0.6593 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.1572, allocations: 20 kB / 0.6593 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004027/0.1576, allocations: 203.3 kB / 0.6595 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.1576, allocations: 11.91 kB / 0.6595 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.1577, allocations: 8 kB / 0.6595 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1577, allocations: 4 kB / 0.6596 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004029/0.1581, allocations: 161.7 kB / 0.6597 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.1593, allocations: 0.8664 MB / 0.6606 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.1596, allocations: 158.5 kB / 0.6607 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002114/0.1598, allocations: 108.8 kB / 0.6608 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.855e-05/0.1599, allocations: 3.938 kB / 0.6608 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.1599, allocations: 38.56 kB / 0.6608 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.1599, allocations: 4 kB / 0.6609 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005992/0.1605, allocations: 255.7 kB / 0.6611 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.1606, allocations: 55.41 kB / 0.6611 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004807/0.161, allocations: 413.7 kB / 0.6615 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.1611, allocations: 29.7 kB / 0.6616 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.1612, allocations: 212.4 kB / 0.6618 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.889e-05/0.1613, allocations: 59.44 kB / 0.6618 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.604e-05/0.1614, allocations: 33.7 kB / 0.6619 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1616, allocations: 346.8 kB / 0.6622 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.1617, allocations: 59.97 kB / 0.6622 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.1619, allocations: 53.17 kB / 0.6623 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.1622, allocations: 146.6 kB / 0.6624 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1622, allocations: 0 / 0.6624 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004095/0.1626, allocations: 209.3 kB / 0.6626 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1626, allocations: 11.94 kB / 0.6627 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1626, allocations: 0 / 0.6627 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1627, allocations: 0 / 0.6627 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.1629, allocations: 51.91 kB / 0.6627 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1629, allocations: 4 kB / 0.6627 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.1631, allocations: 23.88 kB / 0.6627 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.1631, allocations: 8 kB / 0.6627 GB, free: 6.871 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 (20): * Single equations (assignments): 20 * 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.000167/0.1633, allocations: 161.8 kB / 0.6629 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.1633, allocations: 39.7 kB / 0.6629 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.309e-05/0.1634, allocations: 39.59 kB / 0.663 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1634, allocations: 4 kB / 0.663 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1634, allocations: 0 / 0.663 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.1634, allocations: 0 / 0.663 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004286/0.1639, allocations: 381.3 kB / 0.6633 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1639, allocations: 3.938 kB / 0.6633 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.1641, allocations: 59.91 kB / 0.6634 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.1641, allocations: 0 / 0.6634 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.1642, allocations: 3.984 kB / 0.6634 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1642, allocations: 0 / 0.6634 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1642, allocations: 7.938 kB / 0.6634 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006125/0.1648, allocations: 377.5 kB / 0.6638 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1649, allocations: 124.8 kB / 0.6639 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.165, allocations: 0 / 0.6639 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.1651, allocations: 11.98 kB / 0.6639 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.1652, allocations: 15.92 kB / 0.6639 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-06/0.1652, allocations: 4 kB / 0.6639 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003244/0.1655, allocations: 299.2 kB / 0.6642 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.8e-07/0.1655, allocations: 4.062 kB / 0.6642 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002931/0.1658, allocations: 71.89 kB / 0.6643 GB, free: 5.203 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0009618/0.1668, allocations: 0.9243 MB / 0.6652 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003573/0.1672, allocations: 143.9 kB / 0.6653 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.1672, allocations: 0 / 0.6653 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.1673, allocations: 77.94 kB / 0.6654 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.1679, allocations: 101.6 kB / 0.6655 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/0.1725, allocations: 3.477 MB / 0.6689 GB, free: 388 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/0.173, allocations: 0.8067 MB / 0.6697 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001389/0.1731, allocations: 38.95 kB / 0.6697 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.1733, allocations: 115.4 kB / 0.6698 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of SimCode: time 6.92e-07/0.1733, allocations: 0 / 0.6698 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/0.2058, allocations: 7.954 MB / 0.6776 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/8.475, allocations: 16.53 kB / 0.6776 GB, free: 7.699 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_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_InternalResistancesOneUTube.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)