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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|TPip3.T|TPip4.T|intRes2UTub.capFil1.T|intRes2UTub.capFil2.T|intRes2UTub.capFil3.T|intRes2UTub.capFil4.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|TPip3.T|TPip4.T|intRes2UTub.capFil1.T|intRes2UTub.capFil2.T|intRes2UTub.capFil3.T|intRes2UTub.capFil4.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.385/2.385, allocations: 387.1 MB / 399.7 MB, free: 9.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009892/0.0009891, allocations: 176.9 kB / 492.3 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 221.3 MB / 0.7871 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009043/0.0009043, allocations: 91.73 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.741e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3196, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9502/1.27, allocations: 159.9 MB / 1.369 GB, free: 19.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/1.27, allocations: 114.5 kB / 1.369 GB, free: 19.07 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05153/1.322, allocations: 22.24 MB / 1.39 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.635e-06/1.322, allocations: 0 / 1.39 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.747e-05/1.322, allocations: 11.56 kB / 1.39 GB, free: 29.42 MB / 0.8386 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.0009676/1.323, allocations: 0.7493 MB / 1.391 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/1.323, allocations: 11.5 kB / 1.391 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/1.323, allocations: 69.47 kB / 1.391 GB, free: 28.81 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005544/1.323, allocations: 437 kB / 1.392 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/1.324, allocations: 38.16 kB / 1.392 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-05/1.324, allocations: 55.62 kB / 1.392 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006041/1.324, allocations: 400.6 kB / 1.392 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/1.324, allocations: 0 / 1.392 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/1.324, allocations: 21.25 kB / 1.392 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/1.324, allocations: 11.5 kB / 1.392 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004766/1.325, allocations: 329.6 kB / 1.392 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/1.327, allocations: 1.549 MB / 1.394 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003788/1.327, allocations: 313.6 kB / 1.394 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003587/1.327, allocations: 334.8 kB / 1.395 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/1.327, allocations: 7.656 kB / 1.395 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/1.327, allocations: 34.56 kB / 1.395 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=42): time 1.563e-06/1.327, allocations: 0 / 1.395 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of matching and sorting (n=42): time 0.0005061/1.328, allocations: 352.6 kB / 1.395 GB, free: 27.42 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/1.328, allocations: 55.28 kB / 1.395 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/1.328, allocations: 430.5 kB / 1.395 GB, free: 27.21 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/1.328, allocations: 32.66 kB / 1.395 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000132/1.329, allocations: 273.6 kB / 1.396 GB, free: 27.02 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.256e-05/1.329, allocations: 145.4 kB / 1.396 GB, free: 26.92 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/1.329, allocations: 14.53 kB / 1.396 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001238/1.329, allocations: 359.4 kB / 1.396 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/1.329, allocations: 106.8 kB / 1.396 GB, free: 26.58 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/1.329, allocations: 111.1 kB / 1.396 GB, free: 26.58 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/1.329, allocations: 125.5 kB / 1.397 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/1.329, allocations: 0 / 1.397 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000441/1.33, allocations: 362.4 kB / 1.397 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/1.33, allocations: 11.78 kB / 1.397 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.33, allocations: 3.984 kB / 1.397 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/1.33, allocations: 0 / 1.397 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/1.33, allocations: 135.7 kB / 1.397 GB, free: 26.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/1.33, allocations: 3.953 kB / 1.397 GB, free: 26.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/1.331, allocations: 53.41 kB / 1.397 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/1.331, allocations: 10.59 kB / 1.397 GB, free: 26.41 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.249e-05/1.331, allocations: 119.5 kB / 1.397 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.568e-05/1.331, allocations: 54.31 kB / 1.397 GB, free: 26.27 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001201/1.331, allocations: 61.12 kB / 1.397 GB, free: 26.26 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/1.331, allocations: 7.75 kB / 1.397 GB, free: 26.26 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.331, allocations: 0 / 1.397 GB, free: 26.26 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.331, allocations: 3.953 kB / 1.397 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005391/1.331, allocations: 0.5667 MB / 1.398 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/1.331, allocations: 4 kB / 1.398 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/1.332, allocations: 127.6 kB / 1.398 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.332, allocations: 0 / 1.398 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/1.332, allocations: 11.16 kB / 1.398 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/1.332, allocations: 3.984 kB / 1.398 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.332, allocations: 0 / 1.398 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006578/1.333, allocations: 0.6138 MB / 1.399 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.831e-05/1.333, allocations: 135.4 kB / 1.399 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.61e-05/1.333, allocations: 6.438 kB / 1.399 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/1.333, allocations: 22.83 kB / 1.399 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.158e-05/1.333, allocations: 23.16 kB / 1.399 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/1.333, allocations: 11.69 kB / 1.399 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003282/1.333, allocations: 348.4 kB / 1.399 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.9e-07/1.334, allocations: 0 / 1.399 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004499/1.334, allocations: 153.9 kB / 1.399 GB, free: 25.43 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003633/1.334, allocations: 267.9 kB / 1.4 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003973/1.335, allocations: 291.8 kB / 1.4 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.335, allocations: 3.938 kB / 1.4 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/1.335, allocations: 164.9 kB / 1.4 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005259/1.335, allocations: 123.2 kB / 1.4 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/1.337, allocations: 0.913 MB / 1.401 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003981/1.337, allocations: 0.8782 MB / 1.402 GB, free: 23.09 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001929/1.337, allocations: 60.33 kB / 1.402 GB, free: 23.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.784e-05/1.338, allocations: 35.44 kB / 1.402 GB, free: 23 MB / 0.8386 GB Notification: Performance of SimCode: time 3.81e-07/1.338, allocations: 0 / 1.402 GB, free: 23 MB / 0.8386 GB Notification: Performance of Templates: time 0.0115/1.349, allocations: 7.342 MB / 1.409 GB, free: 15.8 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (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 & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches