Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_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.001288/0.001288, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001457/0.001457, allocations: 193.3 kB / 16.14 MB, free: 6.645 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.351/1.351, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.172/2.172, allocations: 390.2 MB / 0.6643 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.91 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5385/0.5397, allocations: 140.4 MB / 0.9491 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004105/0.5438, allocations: 4.171 MB / 0.9532 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002503/0.5464, allocations: 2.371 MB / 0.9555 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.5466, allocations: 10.84 kB / 0.9555 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001274/0.548, allocations: 0.5053 MB / 0.956 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004378/0.5484, allocations: 215.6 kB / 0.9562 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001838/0.5486, allocations: 118.6 kB / 0.9563 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006182/0.5492, allocations: 0.8143 MB / 0.9571 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003303/0.5496, allocations: 284.1 kB / 0.9574 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.5499, allocations: 260.2 kB / 0.9576 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.5501, allocations: 316.8 kB / 0.9579 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.737e-05/0.5502, allocations: 50.12 kB / 0.958 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.644e-05/0.5503, allocations: 47.31 kB / 0.958 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.5504, allocations: 142.1 kB / 0.9581 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002579/0.5507, allocations: 355.9 kB / 0.9585 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.5512, allocations: 0.9606 MB / 0.9594 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.5512, allocations: 8.906 kB / 0.9594 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.01e-07/0.5512, allocations: 0 / 0.9594 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.5513, allocations: 0 / 0.9594 GB, free: 1.211 MB / 0.7169 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.00116/0.5524, allocations: 0.9453 MB / 0.9604 GB, free: 452 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.5525, allocations: 9.469 kB / 0.9604 GB, free: 452 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.329e-05/0.5525, allocations: 94.02 kB / 0.9604 GB, free: 364 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.5527, allocations: 72.31 kB / 0.9605 GB, free: 328 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004829/0.5532, allocations: 457.8 kB / 0.961 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.5532, allocations: 41.03 kB / 0.961 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.5533, allocations: 48.38 kB / 0.961 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.554, allocations: 431.1 kB / 0.9615 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.554, allocations: 0 / 0.9615 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.5541, allocations: 21 kB / 0.9615 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.5541, allocations: 11.66 kB / 0.9615 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006692/0.5548, allocations: 364.2 kB / 0.9618 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.5566, allocations: 1.546 MB / 0.9633 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.5571, allocations: 325.7 kB / 0.9637 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.5576, allocations: 328.6 kB / 0.964 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.5576, allocations: 7.25 kB / 0.964 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.5577, allocations: 36.66 kB / 0.964 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.503e-06/0.5577, allocations: 1.219 kB / 0.964 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.0008927/0.5586, allocations: 497.3 kB / 0.9645 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.5586, allocations: 58.69 kB / 0.9645 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.5591, allocations: 486.9 kB / 0.965 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.5592, allocations: 30.67 kB / 0.965 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.5593, allocations: 276.2 kB / 0.9653 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.5594, allocations: 147.1 kB / 0.9654 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.303e-05/0.5595, allocations: 60.23 kB / 0.9655 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5597, allocations: 359.6 kB / 0.9658 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.5599, allocations: 125 kB / 0.966 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.5602, allocations: 133.2 kB / 0.9661 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.5607, allocations: 295.6 kB / 0.9664 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5607, allocations: 5.062 kB / 0.9664 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006319/0.5613, allocations: 400.2 kB / 0.9667 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.5613, allocations: 5.25 kB / 0.9668 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.5614, allocations: 0 / 0.9668 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.5614, allocations: 5.594 kB / 0.9668 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004872/0.5619, allocations: 124.7 kB / 0.9669 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.5619, allocations: 5.109 kB / 0.9669 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.5621, allocations: 45.5 kB / 0.9669 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.5622, allocations: 15.62 kB / 0.9669 GB, free: 11.89 MB / 0.7325 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.0001946/0.5624, allocations: 192.4 kB / 0.9671 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.009e-05/0.5625, allocations: 56.44 kB / 0.9672 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.5626, allocations: 62.31 kB / 0.9672 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.5626, allocations: 4.219 kB / 0.9672 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.082e-05/0.5626, allocations: 5.125 kB / 0.9672 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5626, allocations: 3.984 kB / 0.9673 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006351/0.5633, allocations: 0.5791 MB / 0.9678 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.5633, allocations: 3.938 kB / 0.9678 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004776/0.5638, allocations: 131.4 kB / 0.9679 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.5638, allocations: 1.438 kB / 0.9679 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.5638, allocations: 6.656 kB / 0.968 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.5638, allocations: 5.25 kB / 0.968 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.5638, allocations: 1.312 kB / 0.968 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009073/0.5647, allocations: 0.6488 MB / 0.9686 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.5648, allocations: 136.2 kB / 0.9687 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.386e-05/0.5649, allocations: 11.12 kB / 0.9687 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.5651, allocations: 16.83 kB / 0.9688 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.577e-05/0.5652, allocations: 27.16 kB / 0.9688 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.5652, allocations: 7.062 kB / 0.9688 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003664/0.5656, allocations: 359.9 kB / 0.9691 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5656, allocations: 0 / 0.9691 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004082/0.566, allocations: 148.6 kB / 0.9693 GB, free: 10.3 MB / 0.7325 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.001347/0.5674, allocations: 1.214 MB / 0.9705 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006285/0.568, allocations: 319.4 kB / 0.9708 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.568, allocations: 0.9688 kB / 0.9708 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000323/0.5684, allocations: 179.3 kB / 0.9709 GB, free: 9.133 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008549/0.5692, allocations: 121.3 kB / 0.971 GB, free: 9.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007108/0.5763, allocations: 5.217 MB / 0.9761 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.5768, allocations: 0.8659 MB / 0.977 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002326/0.5771, allocations: 57.97 kB / 0.977 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.5773, allocations: 188.3 kB / 0.9772 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of SimCode: time 2.084e-06/0.5773, allocations: 0 / 0.9772 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.936/2.514, allocations: 10.79 MB / 0.9878 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002564/2.514, allocations: 273.9 kB / 0.988 GB, free: 9.906 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.054/5.568, allocations: 4.891 kB / 0.988 GB, free: 9.906 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)