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.001554/0.001554, 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.001761/0.001761, 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7288/0.7288, allocations: 122.9 MB / 414.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 65.02 kB / 0.568 GB, free: 28.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1331, allocations: 77.94 MB / 0.6441 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00489/0.138, allocations: 4.117 MB / 0.6481 GB, free: 5.367 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003301/0.1414, allocations: 2.421 MB / 0.6505 GB, free: 2.934 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004367/0.1418, allocations: 12 kB / 0.6505 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001721/0.1436, allocations: 0.5286 MB / 0.651 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007641/0.1443, allocations: 254 kB / 0.6513 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000374/0.1447, allocations: 147.8 kB / 0.6514 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.1458, allocations: 0.8098 MB / 0.6522 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005347/0.1464, allocations: 330.5 kB / 0.6525 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004618/0.1469, allocations: 291 kB / 0.6528 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004459/0.1473, allocations: 326.6 kB / 0.6531 GB, free: 256 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.1475, allocations: 76 kB / 0.6532 GB, free: 180 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.1476, allocations: 72 kB / 0.6532 GB, free: 108 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.1478, allocations: 179.4 kB / 0.6534 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004509/0.1483, allocations: 382.3 kB / 0.6538 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009816/0.1493, allocations: 1 MB / 0.6548 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1493, allocations: 4 kB / 0.6548 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.864e-06/0.1493, allocations: 0 / 0.6548 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.442e-05/0.1493, allocations: 0 / 0.6548 GB, free: 14.55 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.001703/0.151, allocations: 0.9652 MB / 0.6557 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1511, allocations: 8.625 kB / 0.6557 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.1512, allocations: 94.64 kB / 0.6558 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.1514, allocations: 76.47 kB / 0.6559 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006905/0.1521, allocations: 470 kB / 0.6563 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.1521, allocations: 37.38 kB / 0.6564 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.385e-05/0.1522, allocations: 48.38 kB / 0.6564 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007389/0.1529, allocations: 430.6 kB / 0.6568 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.153, allocations: 7.938 kB / 0.6568 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.153, allocations: 20 kB / 0.6568 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.153, allocations: 12 kB / 0.6569 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006626/0.1537, allocations: 375.7 kB / 0.6572 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.1557, allocations: 1.52 MB / 0.6587 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.1562, allocations: 331 kB / 0.659 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.1567, allocations: 321.5 kB / 0.6593 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.1567, allocations: 7.938 kB / 0.6593 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.1567, allocations: 38.28 kB / 0.6594 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.994e-06/0.1567, allocations: 0 / 0.6594 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0009725/0.1577, allocations: 0.4937 MB / 0.6598 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.1578, allocations: 64.17 kB / 0.6599 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005702/0.1584, allocations: 485.9 kB / 0.6604 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.1584, allocations: 29.7 kB / 0.6604 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.1586, allocations: 284.6 kB / 0.6607 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.1587, allocations: 154.6 kB / 0.6608 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.875e-05/0.1588, allocations: 62.08 kB / 0.6609 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.159, allocations: 358.8 kB / 0.6612 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.1592, allocations: 132.6 kB / 0.6613 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.1595, allocations: 129.1 kB / 0.6615 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.16, allocations: 294.2 kB / 0.6618 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.16, allocations: 0 / 0.6618 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006518/0.1606, allocations: 396.7 kB / 0.6621 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1607, allocations: 12 kB / 0.6621 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.1607, allocations: 0 / 0.6621 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1607, allocations: 0 / 0.6621 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.1612, allocations: 123.9 kB / 0.6623 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1612, allocations: 4 kB / 0.6623 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.1615, allocations: 35.72 kB / 0.6623 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/0.1615, allocations: 12 kB / 0.6623 GB, free: 6.555 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.0002408/0.1618, allocations: 206.5 kB / 0.6625 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.313e-05/0.1619, allocations: 55.61 kB / 0.6626 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.162, allocations: 57.09 kB / 0.6626 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.391e-06/0.162, allocations: 4 kB / 0.6626 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.162, allocations: 4 kB / 0.6626 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.162, allocations: 3.984 kB / 0.6626 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006869/0.1627, allocations: 0.5752 MB / 0.6632 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.946e-06/0.1628, allocations: 3.938 kB / 0.6632 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005088/0.1633, allocations: 127.8 kB / 0.6633 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.1633, allocations: 4 kB / 0.6633 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/0.1633, allocations: 12 kB / 0.6633 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.1633, allocations: 0 / 0.6633 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1633, allocations: 0 / 0.6633 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000981/0.1643, allocations: 0.6393 MB / 0.664 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.1645, allocations: 152.5 kB / 0.6641 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.392e-05/0.1646, allocations: 12 kB / 0.6641 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.1648, allocations: 19.98 kB / 0.6641 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.1649, allocations: 23.97 kB / 0.6641 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.1649, allocations: 8 kB / 0.6642 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004131/0.1653, allocations: 351.1 kB / 0.6645 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1653, allocations: 0 / 0.6645 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004188/0.1658, allocations: 139.7 kB / 0.6646 GB, free: 4.082 MB / 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.001242/0.167, allocations: 1.216 MB / 0.6658 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000624/0.1676, allocations: 323.5 kB / 0.6661 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1677, allocations: 4 kB / 0.6661 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002998/0.168, allocations: 183.6 kB / 0.6663 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007655/0.1687, allocations: 126.8 kB / 0.6664 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006811/0.1756, allocations: 4.859 MB / 0.6712 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.1761, allocations: 0.8665 MB / 0.672 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002799/0.1764, allocations: 56.38 kB / 0.6721 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.1767, allocations: 187.4 kB / 0.6722 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of SimCode: time 1.553e-06/0.1767, allocations: 0 / 0.6722 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.345/1.521, allocations: 11.46 MB / 0.6834 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/11.96, allocations: 10.75 kB / 0.6834 GB, free: 0.9805 MB / 0.5137 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)