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.001246/0.001246, allocations: 101.1 kB / 16.4 MB, free: 6.496 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.001181/0.001181, allocations: 192 kB / 17.34 MB, free: 5.727 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.267/1.267, 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.732/0.732, allocations: 122.9 MB / 414.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 71.06 kB / 0.568 GB, free: 28.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1431, allocations: 77.94 MB / 0.6441 GB, free: 9.52 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004792/0.1479, allocations: 3.007 MB / 0.647 GB, free: 6.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002786/0.1507, allocations: 2.145 MB / 0.6491 GB, free: 4.344 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003/0.1511, allocations: 8 kB / 0.6491 GB, free: 4.336 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.1526, allocations: 0.4977 MB / 0.6496 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004072/0.153, allocations: 154.8 kB / 0.6498 GB, free: 3.684 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001547/0.1532, allocations: 59.92 kB / 0.6498 GB, free: 3.625 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005171/0.1537, allocations: 456.5 kB / 0.6503 GB, free: 3.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.154, allocations: 151.2 kB / 0.6504 GB, free: 3.031 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.1542, allocations: 159.4 kB / 0.6506 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.1544, allocations: 179.1 kB / 0.6507 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.634e-05/0.1545, allocations: 36 kB / 0.6508 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.628e-05/0.1545, allocations: 32 kB / 0.6508 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.1547, allocations: 99.66 kB / 0.6509 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.1549, allocations: 222.9 kB / 0.6511 GB, free: 2.316 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005474/0.1554, allocations: 0.5524 MB / 0.6517 GB, free: 1.762 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1554, allocations: 0 / 0.6517 GB, free: 1.762 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1554, allocations: 0 / 0.6517 GB, free: 1.762 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1555, allocations: 0 / 0.6517 GB, free: 1.762 MB / 494.1 MB 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.0009832/0.1564, allocations: 0.7198 MB / 0.6524 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1565, allocations: 8.625 kB / 0.6524 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.043e-05/0.1566, allocations: 58.73 kB / 0.6524 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.367e-05/0.1566, allocations: 44.66 kB / 0.6525 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005547/0.1572, allocations: 386.3 kB / 0.6528 GB, free: 464 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.1572, allocations: 16.81 kB / 0.6528 GB, free: 448 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/0.1573, allocations: 24.38 kB / 0.6529 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003894/0.1577, allocations: 199.4 kB / 0.6531 GB, free: 220 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1577, allocations: 8 kB / 0.6531 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.1577, allocations: 4 kB / 0.6531 GB, free: 208 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1578, allocations: 8 kB / 0.6531 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003651/0.1581, allocations: 165.6 kB / 0.6532 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.1593, allocations: 0.8625 MB / 0.6541 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.1596, allocations: 150.6 kB / 0.6542 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.1598, allocations: 108.8 kB / 0.6543 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.1598, allocations: 4 kB / 0.6543 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1599, allocations: 34.56 kB / 0.6544 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.733e-06/0.1599, allocations: 0 / 0.6544 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005974/0.1605, allocations: 263.2 kB / 0.6546 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.1605, allocations: 55.41 kB / 0.6547 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004456/0.161, allocations: 413.7 kB / 0.6551 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.161, allocations: 29.7 kB / 0.6551 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.1612, allocations: 216.3 kB / 0.6553 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.499e-05/0.1612, allocations: 67.38 kB / 0.6554 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.1613, allocations: 29.7 kB / 0.6554 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1614, allocations: 346.8 kB / 0.6557 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.1616, allocations: 59.97 kB / 0.6558 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.1617, allocations: 51.97 kB / 0.6558 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.162, allocations: 143.3 kB / 0.656 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.162, allocations: 0 / 0.656 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000388/0.1624, allocations: 209.4 kB / 0.6562 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1624, allocations: 4 kB / 0.6562 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1624, allocations: 7.938 kB / 0.6562 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1625, allocations: 0 / 0.6562 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/0.1627, allocations: 55.91 kB / 0.6562 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/0.1627, allocations: 3.984 kB / 0.6562 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.1629, allocations: 27.83 kB / 0.6563 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.1629, allocations: 4 kB / 0.6563 GB, free: 12.78 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.0001482/0.1631, allocations: 162.7 kB / 0.6564 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.1631, allocations: 39.77 kB / 0.6565 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.251e-05/0.1632, allocations: 47.52 kB / 0.6565 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1632, allocations: 0 / 0.6565 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1632, allocations: 3.938 kB / 0.6565 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1632, allocations: 3.984 kB / 0.6565 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003759/0.1636, allocations: 377.3 kB / 0.6569 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1636, allocations: 0 / 0.6569 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.1639, allocations: 59.91 kB / 0.6569 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1639, allocations: 0 / 0.6569 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.1639, allocations: 3.938 kB / 0.6569 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1639, allocations: 4 kB / 0.6569 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.1639, allocations: 3.984 kB / 0.6569 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005775/0.1645, allocations: 378.9 kB / 0.6573 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.1646, allocations: 120.8 kB / 0.6574 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.197e-05/0.1647, allocations: 7.938 kB / 0.6574 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1649, allocations: 11.98 kB / 0.6574 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.763e-05/0.1649, allocations: 11.92 kB / 0.6574 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.1649, allocations: 8 kB / 0.6574 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003024/0.1652, allocations: 303.1 kB / 0.6577 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.723e-06/0.1652, allocations: 4.062 kB / 0.6577 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003085/0.1656, allocations: 79.83 kB / 0.6578 GB, free: 11.09 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.0008378/0.1664, allocations: 0.9151 MB / 0.6587 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003576/0.1668, allocations: 145.6 kB / 0.6589 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1668, allocations: 0 / 0.6589 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.1669, allocations: 79.89 kB / 0.6589 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.1675, allocations: 93.58 kB / 0.659 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004231/0.1717, allocations: 3.5 MB / 0.6624 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1721, allocations: 0.7951 MB / 0.6632 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001479/0.1723, allocations: 34.97 kB / 0.6632 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.1724, allocations: 119.4 kB / 0.6634 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of SimCode: time 7.31e-07/0.1724, allocations: 0 / 0.6634 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/0.1994, allocations: 7.985 MB / 0.6712 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.699/8.898, allocations: 10.72 kB / 0.6712 GB, free: 13.57 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)