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.001267/0.001267, allocations: 102 kB / 15.98 MB, free: 6.344 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.001292/0.001292, allocations: 195.6 kB / 16.91 MB, free: 6.188 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.284/1.284, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6807/0.6807, allocations: 115.3 MB / 406.1 MB, free: 6.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 67.89 kB / 493.2 MB, free: 0.582 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3538, allocations: 76.17 MB / 0.5561 GB, free: 36.18 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00457/0.3584, allocations: 4.15 MB / 0.5601 GB, free: 33.26 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.3608, allocations: 2.38 MB / 0.5624 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002337/0.3611, allocations: 10.53 kB / 0.5625 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001362/0.3624, allocations: 0.4951 MB / 0.5629 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003324/0.3628, allocations: 218.6 kB / 0.5631 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001719/0.3629, allocations: 121.8 kB / 0.5633 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006439/0.3636, allocations: 0.8019 MB / 0.564 GB, free: 30.67 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003894/0.364, allocations: 329.4 kB / 0.5644 GB, free: 30.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/0.3643, allocations: 291.5 kB / 0.5646 GB, free: 30.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.3646, allocations: 335.8 kB / 0.565 GB, free: 30.21 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.69e-05/0.3647, allocations: 74.09 kB / 0.565 GB, free: 30.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.3648, allocations: 74.41 kB / 0.5651 GB, free: 30.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.365, allocations: 178.5 kB / 0.5653 GB, free: 30.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002788/0.3652, allocations: 385.1 kB / 0.5656 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008372/0.3661, allocations: 0.9796 MB / 0.5666 GB, free: 29.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3661, allocations: 4.797 kB / 0.5666 GB, free: 29.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3661, allocations: 1.312 kB / 0.5666 GB, free: 29.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.3661, allocations: 1.219 kB / 0.5666 GB, free: 29.51 MB / 446.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.001243/0.3674, allocations: 0.9486 MB / 0.5675 GB, free: 28.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3674, allocations: 9.5 kB / 0.5675 GB, free: 28.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.032e-05/0.3675, allocations: 90.77 kB / 0.5676 GB, free: 28.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.559e-05/0.3676, allocations: 73.06 kB / 0.5677 GB, free: 28.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004742/0.3681, allocations: 453.2 kB / 0.5681 GB, free: 28.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.3681, allocations: 36.38 kB / 0.5682 GB, free: 28.33 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.942e-05/0.3682, allocations: 53.59 kB / 0.5682 GB, free: 28.31 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006994/0.3689, allocations: 430.4 kB / 0.5686 GB, free: 28.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3689, allocations: 1.094 kB / 0.5686 GB, free: 28.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.369, allocations: 25.48 kB / 0.5686 GB, free: 28.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.369, allocations: 11.16 kB / 0.5687 GB, free: 28.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006478/0.3696, allocations: 369.6 kB / 0.569 GB, free: 27.97 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.3715, allocations: 1.524 MB / 0.5705 GB, free: 27.08 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004924/0.3721, allocations: 347.3 kB / 0.5708 GB, free: 26.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004651/0.3725, allocations: 320.5 kB / 0.5711 GB, free: 26.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.3726, allocations: 9.125 kB / 0.5711 GB, free: 26.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.3726, allocations: 45.66 kB / 0.5712 GB, free: 26.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.3726, allocations: 0 / 0.5712 GB, free: 26.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008918/0.3735, allocations: 0.4925 MB / 0.5717 GB, free: 26.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.3735, allocations: 57.03 kB / 0.5717 GB, free: 26.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000545/0.3741, allocations: 486.7 kB / 0.5722 GB, free: 26.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.3741, allocations: 31.83 kB / 0.5722 GB, free: 26.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.3743, allocations: 271.6 kB / 0.5725 GB, free: 25.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.3744, allocations: 151.5 kB / 0.5726 GB, free: 25.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.714e-05/0.3745, allocations: 62.66 kB / 0.5727 GB, free: 25.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.163e-05/0.3746, allocations: 359.5 kB / 0.573 GB, free: 25.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.3748, allocations: 125.6 kB / 0.5731 GB, free: 25.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.375, allocations: 130.9 kB / 0.5733 GB, free: 25.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004339/0.3755, allocations: 294.4 kB / 0.5735 GB, free: 25.26 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3755, allocations: 1.375 kB / 0.5735 GB, free: 25.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005691/0.376, allocations: 392.9 kB / 0.5739 GB, free: 25.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3761, allocations: 6.984 kB / 0.5739 GB, free: 25.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3761, allocations: 1.375 kB / 0.5739 GB, free: 25.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3761, allocations: 1.375 kB / 0.5739 GB, free: 25.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.3766, allocations: 127.2 kB / 0.5741 GB, free: 25.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.3766, allocations: 1.406 kB / 0.5741 GB, free: 25.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.3769, allocations: 50.19 kB / 0.5741 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.3769, allocations: 11.19 kB / 0.5741 GB, free: 25.04 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.0001695/0.3771, allocations: 200.3 kB / 0.5743 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.81e-05/0.3771, allocations: 53.19 kB / 0.5744 GB, free: 24.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.277e-05/0.3772, allocations: 60.92 kB / 0.5744 GB, free: 24.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3773, allocations: 9.328 kB / 0.5744 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.3773, allocations: 1.375 kB / 0.5744 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3773, allocations: 2.688 kB / 0.5744 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006309/0.3779, allocations: 0.5815 MB / 0.575 GB, free: 24.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3779, allocations: 4.875 kB / 0.575 GB, free: 24.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004923/0.3784, allocations: 127.7 kB / 0.5751 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.3784, allocations: 2.5 kB / 0.5751 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.3785, allocations: 6.344 kB / 0.5751 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3785, allocations: 1.891 kB / 0.5751 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3785, allocations: 1.719 kB / 0.5751 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008272/0.3793, allocations: 0.6466 MB / 0.5758 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-05/0.3794, allocations: 139.7 kB / 0.5759 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.768e-05/0.3795, allocations: 15.25 kB / 0.5759 GB, free: 23.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.3797, allocations: 22.53 kB / 0.5759 GB, free: 23.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.3798, allocations: 27.39 kB / 0.576 GB, free: 23.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.3798, allocations: 6.781 kB / 0.576 GB, free: 23.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000327/0.3801, allocations: 352.8 kB / 0.5763 GB, free: 23.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3801, allocations: 0 / 0.5763 GB, free: 23.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000397/0.3805, allocations: 140.8 kB / 0.5764 GB, free: 23.71 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.001024/0.3816, allocations: 1.209 MB / 0.5776 GB, free: 22.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006352/0.3822, allocations: 341.1 kB / 0.5779 GB, free: 22.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3822, allocations: 1.156 kB / 0.5779 GB, free: 22.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.3825, allocations: 184.8 kB / 0.5781 GB, free: 22.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006585/0.3832, allocations: 133.7 kB / 0.5782 GB, free: 22.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006309/0.3895, allocations: 5.233 MB / 0.5834 GB, free: 19.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.3898, allocations: 0.868 MB / 0.5842 GB, free: 18.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002153/0.39, allocations: 53.41 kB / 0.5843 GB, free: 18.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.3902, allocations: 186.4 kB / 0.5844 GB, free: 18.6 MB / 446.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3902, allocations: 0 / 0.5844 GB, free: 18.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.4135, allocations: 11.07 MB / 0.5952 GB, free: 12.41 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/0.4137, allocations: 269.3 kB / 0.5955 GB, free: 12.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.29, allocations: 0 / 0.5955 GB, free: 12.05 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)