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.0009672/0.0009672, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005551/0.005551, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.146/2.146, allocations: 390.9 MB / 0.6664 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 8 kB / 0.8161 GB, free: 13.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.54/0.5404, allocations: 142.4 MB / 0.9552 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.002768/0.5432, allocations: 3.773 MB / 0.9589 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00187/0.545, allocations: 2.337 MB / 0.9612 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.5452, allocations: 9.969 kB / 0.9612 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009586/0.5462, allocations: 0.5098 MB / 0.9617 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002853/0.5465, allocations: 211 kB / 0.9619 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.5466, allocations: 119.2 kB / 0.962 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005507/0.5472, allocations: 0.8163 MB / 0.9628 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003031/0.5475, allocations: 284.4 kB / 0.9631 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.5477, allocations: 233.5 kB / 0.9633 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.5479, allocations: 286.9 kB / 0.9636 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.17e-05/0.548, allocations: 34.66 kB / 0.9636 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.766e-05/0.5481, allocations: 35.28 kB / 0.9636 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.16e-05/0.5482, allocations: 126.2 kB / 0.9637 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.5484, allocations: 365 kB / 0.9641 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004734/0.5489, allocations: 0.9348 MB / 0.965 GB, free: 232 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.5489, allocations: 1.406 kB / 0.965 GB, free: 232 kB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5489, allocations: 0 / 0.965 GB, free: 232 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.5489, allocations: 0 / 0.965 GB, free: 232 kB / 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.001016/0.5499, allocations: 0.8405 MB / 0.9658 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.55, allocations: 11.11 kB / 0.9658 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.216e-05/0.5501, allocations: 89.59 kB / 0.9659 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.199e-05/0.5502, allocations: 84.42 kB / 0.966 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004951/0.5507, allocations: 450.3 kB / 0.9664 GB, free: 15 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.5507, allocations: 35.91 kB / 0.9665 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.582e-05/0.5508, allocations: 47.72 kB / 0.9665 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.5515, allocations: 436.5 kB / 0.9669 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.5515, allocations: 1.031 kB / 0.9669 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.5515, allocations: 19.12 kB / 0.967 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.5515, allocations: 16.5 kB / 0.967 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006555/0.5522, allocations: 373.5 kB / 0.9673 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.554, allocations: 1.549 MB / 0.9688 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005128/0.5545, allocations: 336.5 kB / 0.9692 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/0.555, allocations: 328.8 kB / 0.9695 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.555, allocations: 8.969 kB / 0.9695 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.5551, allocations: 36.91 kB / 0.9695 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.392e-06/0.5551, allocations: 0 / 0.9695 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.0008764/0.5559, allocations: 0.5112 MB / 0.97 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.556, allocations: 56.12 kB / 0.9701 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004902/0.5565, allocations: 485.6 kB / 0.9705 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.5565, allocations: 32.78 kB / 0.9706 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.5567, allocations: 278.6 kB / 0.9708 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.5568, allocations: 146.7 kB / 0.971 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.5569, allocations: 35.58 kB / 0.971 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.557, allocations: 359 kB / 0.9713 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.5572, allocations: 126.6 kB / 0.9715 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.5575, allocations: 138.2 kB / 0.9716 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004963/0.558, allocations: 309.5 kB / 0.9719 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.558, allocations: 1.156 kB / 0.9719 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006249/0.5586, allocations: 401.9 kB / 0.9723 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.5586, allocations: 10.06 kB / 0.9723 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.5586, allocations: 0 / 0.9723 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.779e-06/0.5586, allocations: 1.219 kB / 0.9723 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000442/0.5591, allocations: 126.6 kB / 0.9724 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.5591, allocations: 6.25 kB / 0.9724 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.5594, allocations: 51.42 kB / 0.9725 GB, free: 11 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.5594, allocations: 15.92 kB / 0.9725 GB, free: 10.99 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.0001852/0.5596, allocations: 188.5 kB / 0.9727 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.986e-05/0.5596, allocations: 59.72 kB / 0.9727 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.5598, allocations: 62.34 kB / 0.9728 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.5598, allocations: 5 kB / 0.9728 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5598, allocations: 0 / 0.9728 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.5598, allocations: 4.984 kB / 0.9728 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005761/0.5604, allocations: 0.5746 MB / 0.9733 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5604, allocations: 3.938 kB / 0.9733 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.5609, allocations: 134.2 kB / 0.9735 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.5609, allocations: 6.359 kB / 0.9735 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.5609, allocations: 14.19 kB / 0.9735 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.5609, allocations: 1.062 kB / 0.9735 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5609, allocations: 0 / 0.9735 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009088/0.5618, allocations: 0.6686 MB / 0.9742 GB, free: 9.809 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.5619, allocations: 143.3 kB / 0.9743 GB, free: 9.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.562, allocations: 6 kB / 0.9743 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.5622, allocations: 31.7 kB / 0.9743 GB, free: 9.641 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.2e-05/0.5623, allocations: 19.84 kB / 0.9743 GB, free: 9.633 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.5623, allocations: 11.22 kB / 0.9744 GB, free: 9.629 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003461/0.5627, allocations: 351.5 kB / 0.9747 GB, free: 9.422 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5627, allocations: 0 / 0.9747 GB, free: 9.422 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003436/0.563, allocations: 147.9 kB / 0.9748 GB, free: 9.387 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.001138/0.5642, allocations: 1.228 MB / 0.976 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005273/0.5647, allocations: 335.3 kB / 0.9763 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.5647, allocations: 0 / 0.9763 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.565, allocations: 183.8 kB / 0.9765 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/0.5656, allocations: 120.9 kB / 0.9766 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00613/0.5717, allocations: 5.34 MB / 0.9819 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.5721, allocations: 0.8746 MB / 0.9827 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001646/0.5723, allocations: 48.41 kB / 0.9828 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002168/0.5725, allocations: 191.4 kB / 0.9829 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.5725, allocations: 0 / 0.9829 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8012/1.374, allocations: 10.63 MB / 0.9933 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004228/1.374, allocations: 278.2 kB / 0.9936 GB, free: 7.707 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/3.306, allocations: 0 / 0.9936 GB, free: 7.707 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)