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.001536/0.001535, allocations: 102 kB / 16.4 MB, free: 6.484 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.001676/0.001676, allocations: 195.8 kB / 17.34 MB, free: 5.762 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.288/1.288, 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.6952/0.6952, allocations: 115.3 MB / 406.5 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 64.2 kB / 0.5572 GB, free: 32.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.131, allocations: 76.19 MB / 0.6316 GB, free: 4.91 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004733/0.1358, allocations: 4.121 MB / 0.6357 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.1392, allocations: 2.416 MB / 0.638 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005011/0.1397, allocations: 12 kB / 0.638 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00171/0.1414, allocations: 0.5333 MB / 0.6386 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006904/0.1421, allocations: 250 kB / 0.6388 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.1425, allocations: 135.9 kB / 0.6389 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009972/0.1435, allocations: 0.8163 MB / 0.6397 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004829/0.144, allocations: 326.5 kB / 0.64 GB, free: 12.26 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004366/0.1444, allocations: 302.9 kB / 0.6403 GB, free: 11.96 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004637/0.1449, allocations: 322.6 kB / 0.6406 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.145, allocations: 76 kB / 0.6407 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.1452, allocations: 72 kB / 0.6408 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.1454, allocations: 175.4 kB / 0.6409 GB, free: 11.33 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004073/0.1458, allocations: 382.3 kB / 0.6413 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008843/0.1467, allocations: 1.004 MB / 0.6423 GB, free: 9.949 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1467, allocations: 0 / 0.6423 GB, free: 9.949 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1467, allocations: 0 / 0.6423 GB, free: 9.949 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.062e-05/0.1467, allocations: 0 / 0.6423 GB, free: 9.949 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001635/0.1484, allocations: 0.9424 MB / 0.6432 GB, free: 8.957 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1484, allocations: 15.97 kB / 0.6432 GB, free: 8.941 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.1485, allocations: 86.7 kB / 0.6433 GB, free: 8.848 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.1486, allocations: 76 kB / 0.6434 GB, free: 8.773 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000663/0.1493, allocations: 461.7 kB / 0.6438 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.1494, allocations: 37.36 kB / 0.6438 GB, free: 8.246 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.441e-05/0.1494, allocations: 52.31 kB / 0.6439 GB, free: 8.195 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007309/0.1502, allocations: 430.6 kB / 0.6443 GB, free: 7.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1502, allocations: 0 / 0.6443 GB, free: 7.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.1502, allocations: 20 kB / 0.6443 GB, free: 7.75 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.1503, allocations: 12 kB / 0.6443 GB, free: 7.738 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006669/0.1509, allocations: 367.8 kB / 0.6447 GB, free: 7.379 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.153, allocations: 1.52 MB / 0.6462 GB, free: 5.785 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004916/0.1535, allocations: 339.5 kB / 0.6465 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004425/0.1539, allocations: 331.2 kB / 0.6468 GB, free: 5.117 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1539, allocations: 11.72 kB / 0.6468 GB, free: 5.105 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.154, allocations: 34.56 kB / 0.6469 GB, free: 5.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.503e-06/0.154, allocations: 0 / 0.6469 GB, free: 5.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009104/0.1549, allocations: 496.4 kB / 0.6473 GB, free: 4.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.1549, allocations: 59.41 kB / 0.6474 GB, free: 4.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.1555, allocations: 485.9 kB / 0.6479 GB, free: 4.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.1555, allocations: 33.7 kB / 0.6479 GB, free: 3.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.1557, allocations: 280.3 kB / 0.6482 GB, free: 3.703 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.1558, allocations: 146.6 kB / 0.6483 GB, free: 3.559 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.237e-05/0.1559, allocations: 62.06 kB / 0.6484 GB, free: 3.488 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.156, allocations: 366.8 kB / 0.6487 GB, free: 3.121 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.1562, allocations: 120.7 kB / 0.6488 GB, free: 3.004 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.1565, allocations: 129.2 kB / 0.6489 GB, free: 2.879 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004785/0.157, allocations: 294.2 kB / 0.6492 GB, free: 2.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.157, allocations: 0 / 0.6492 GB, free: 2.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006137/0.1576, allocations: 404.3 kB / 0.6496 GB, free: 2.188 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1576, allocations: 12 kB / 0.6496 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.1576, allocations: 0 / 0.6496 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1577, allocations: 0 / 0.6496 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004754/0.1581, allocations: 127.8 kB / 0.6497 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.1582, allocations: 4 kB / 0.6497 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.1584, allocations: 27.69 kB / 0.6498 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.1584, allocations: 15.98 kB / 0.6498 GB, free: 2.004 MB / 494.1 MB 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.0001953/0.1586, allocations: 201.8 kB / 0.65 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.452e-05/0.1587, allocations: 55.28 kB / 0.65 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.1588, allocations: 61.09 kB / 0.6501 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1588, allocations: 4 kB / 0.6501 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1588, allocations: 0 / 0.6501 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1589, allocations: 0 / 0.6501 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005939/0.1595, allocations: 0.5713 MB / 0.6506 GB, free: 1.055 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1595, allocations: 3.938 kB / 0.6507 GB, free: 1.051 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.16, allocations: 127.8 kB / 0.6508 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.16, allocations: 8 kB / 0.6508 GB, free: 0.918 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.16, allocations: 7.938 kB / 0.6508 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.16, allocations: 4 kB / 0.6508 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.16, allocations: 0 / 0.6508 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009291/0.161, allocations: 0.6479 MB / 0.6514 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.1611, allocations: 136.4 kB / 0.6516 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.842e-05/0.1612, allocations: 16 kB / 0.6516 GB, free: 76 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.1614, allocations: 11.98 kB / 0.6516 GB, free: 64 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.1615, allocations: 23.97 kB / 0.6516 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.1615, allocations: 15.94 kB / 0.6516 GB, free: 24 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003817/0.1619, allocations: 351.1 kB / 0.652 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1619, allocations: 0 / 0.652 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003853/0.1623, allocations: 139.7 kB / 0.6521 GB, free: 15.54 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.001212/0.1635, allocations: 1.208 MB / 0.6533 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005696/0.1641, allocations: 327.9 kB / 0.6536 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1641, allocations: 8 kB / 0.6536 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.1644, allocations: 179.8 kB / 0.6538 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006215/0.165, allocations: 138.2 kB / 0.6539 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006039/0.171, allocations: 4.839 MB / 0.6586 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.1715, allocations: 0.8704 MB / 0.6595 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002029/0.1717, allocations: 56.39 kB / 0.6595 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.1719, allocations: 195.4 kB / 0.6597 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of SimCode: time 7.02e-07/0.1719, allocations: 0 / 0.6597 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03224/0.2042, allocations: 11.61 MB / 0.671 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.338, allocations: 7.109 kB / 0.6711 GB, free: 12.29 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 & /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)