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.004974/0.004978, allocations: 100.8 kB / 15.87 MB, free: 6.32 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.001239/0.001239, allocations: 197.5 kB / 16.79 MB, free: 6.246 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.255/1.255, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6281/0.6281, allocations: 115.3 MB / 405.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 65.12 kB / 493 MB, free: 6.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1202, allocations: 76.18 MB / 0.5559 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004392/0.1247, allocations: 4.156 MB / 0.5599 GB, free: 6.523 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1273, allocations: 2.375 MB / 0.5623 GB, free: 4.137 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.1275, allocations: 8 kB / 0.5623 GB, free: 4.129 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.1287, allocations: 0.4901 MB / 0.5627 GB, free: 3.637 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.129, allocations: 222.4 kB / 0.563 GB, free: 3.418 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.1292, allocations: 119.9 kB / 0.5631 GB, free: 3.301 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005967/0.1298, allocations: 0.8058 MB / 0.5639 GB, free: 2.492 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.1302, allocations: 292.1 kB / 0.5641 GB, free: 2.203 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002329/0.1304, allocations: 259 kB / 0.5644 GB, free: 1.949 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.1307, allocations: 322.5 kB / 0.5647 GB, free: 1.633 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.906e-05/0.1308, allocations: 47.94 kB / 0.5647 GB, free: 1.586 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.845e-05/0.1308, allocations: 48 kB / 0.5648 GB, free: 1.539 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.131, allocations: 135.5 kB / 0.5649 GB, free: 1.406 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002852/0.1313, allocations: 358.2 kB / 0.5653 GB, free: 1.055 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006515/0.1319, allocations: 0.9654 MB / 0.5662 GB, free: 88 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1319, allocations: 0 / 0.5662 GB, free: 88 kB / 430.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1319, allocations: 0 / 0.5662 GB, free: 88 kB / 430.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.132, allocations: 0 / 0.5662 GB, free: 88 kB / 430.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.001235/0.1332, allocations: 0.9619 MB / 0.5671 GB, free: 15.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1332, allocations: 11.97 kB / 0.5671 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.819e-05/0.1333, allocations: 90.7 kB / 0.5672 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.279e-05/0.1334, allocations: 76 kB / 0.5673 GB, free: 14.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004661/0.1339, allocations: 453.6 kB / 0.5677 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.1339, allocations: 37.38 kB / 0.5678 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.786e-05/0.134, allocations: 48.38 kB / 0.5678 GB, free: 14.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006596/0.1347, allocations: 430.6 kB / 0.5682 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1347, allocations: 4 kB / 0.5682 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.1347, allocations: 20 kB / 0.5683 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.1348, allocations: 12 kB / 0.5683 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/0.1354, allocations: 363.8 kB / 0.5686 GB, free: 13.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.1372, allocations: 1.528 MB / 0.5701 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004695/0.1376, allocations: 342.7 kB / 0.5704 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004173/0.1381, allocations: 320.7 kB / 0.5707 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.1381, allocations: 7.938 kB / 0.5707 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.1381, allocations: 38.56 kB / 0.5708 GB, free: 11.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 1.483e-06/0.1381, allocations: 0 / 0.5708 GB, free: 11.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008526/0.139, allocations: 0.4977 MB / 0.5713 GB, free: 10.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.139, allocations: 55.41 kB / 0.5713 GB, free: 10.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004753/0.1395, allocations: 485.9 kB / 0.5718 GB, free: 10.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.1396, allocations: 33.7 kB / 0.5718 GB, free: 10.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.1397, allocations: 284.3 kB / 0.5721 GB, free: 9.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.894e-05/0.1398, allocations: 145.8 kB / 0.5722 GB, free: 9.676 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-05/0.1399, allocations: 58.08 kB / 0.5723 GB, free: 9.609 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.14, allocations: 362.7 kB / 0.5726 GB, free: 9.246 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.1403, allocations: 124.7 kB / 0.5727 GB, free: 9.125 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.1405, allocations: 129.4 kB / 0.5729 GB, free: 9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004567/0.141, allocations: 299.6 kB / 0.5732 GB, free: 8.707 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.141, allocations: 0 / 0.5732 GB, free: 8.707 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005695/0.1415, allocations: 392.4 kB / 0.5735 GB, free: 8.316 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.1416, allocations: 4 kB / 0.5735 GB, free: 8.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1416, allocations: 4 kB / 0.5735 GB, free: 8.309 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.1416, allocations: 0 / 0.5735 GB, free: 8.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.1421, allocations: 123.9 kB / 0.5737 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1421, allocations: 8 kB / 0.5737 GB, free: 8.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.1423, allocations: 47.66 kB / 0.5737 GB, free: 8.133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.1423, allocations: 12 kB / 0.5737 GB, free: 8.121 MB / 446.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.0001751/0.1425, allocations: 193.8 kB / 0.5739 GB, free: 7.922 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.365e-05/0.1426, allocations: 59.28 kB / 0.574 GB, free: 7.863 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.231e-05/0.1427, allocations: 57.11 kB / 0.574 GB, free: 7.809 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1427, allocations: 4 kB / 0.574 GB, free: 7.805 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1427, allocations: 0 / 0.574 GB, free: 7.805 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1427, allocations: 11.91 kB / 0.574 GB, free: 7.793 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005562/0.1433, allocations: 0.5635 MB / 0.5746 GB, free: 7.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1433, allocations: 3.938 kB / 0.5746 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004769/0.1438, allocations: 127.9 kB / 0.5747 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1438, allocations: 4 kB / 0.5747 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.1438, allocations: 12 kB / 0.5747 GB, free: 7.035 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1438, allocations: 4 kB / 0.5747 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1438, allocations: 0 / 0.5747 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008673/0.1447, allocations: 0.6515 MB / 0.5754 GB, free: 6.363 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1448, allocations: 144.3 kB / 0.5755 GB, free: 6.203 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.872e-05/0.1449, allocations: 8 kB / 0.5755 GB, free: 6.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.1451, allocations: 23.98 kB / 0.5755 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.1452, allocations: 23.95 kB / 0.5756 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.1452, allocations: 15.94 kB / 0.5756 GB, free: 6.133 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003403/0.1455, allocations: 351.1 kB / 0.5759 GB, free: 5.793 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.402e-06/0.1455, allocations: 0 / 0.5759 GB, free: 5.793 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.1459, allocations: 143.5 kB / 0.576 GB, free: 5.652 MB / 446.1 MB 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.001104/0.147, allocations: 1.207 MB / 0.5772 GB, free: 4.418 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.1475, allocations: 324.3 kB / 0.5775 GB, free: 4.102 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1475, allocations: 0 / 0.5775 GB, free: 4.102 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.1478, allocations: 187.5 kB / 0.5777 GB, free: 3.918 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006428/0.1485, allocations: 110.8 kB / 0.5778 GB, free: 3.812 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2024/0.3509, allocations: 5.213 MB / 0.5829 GB, free: 31.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.3512, allocations: 0.874 MB / 0.5838 GB, free: 30.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002257/0.3515, allocations: 55.67 kB / 0.5838 GB, free: 30.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.3517, allocations: 190.9 kB / 0.584 GB, free: 30.43 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3517, allocations: 0 / 0.584 GB, free: 30.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.3742, allocations: 10.78 MB / 0.5945 GB, free: 29.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/0.3744, allocations: 265.6 kB / 0.5948 GB, free: 28.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.282, allocations: 2.969 kB / 0.5948 GB, free: 28.74 MB / 446.1 MB (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)