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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002046/0.002046, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.423/1.423, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.297/2.297, allocations: 390.2 MB / 0.6646 GB, free: 408 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 71.91 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6459/0.6472, allocations: 140.3 MB / 0.9496 GB, free: 9.324 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004978/0.6523, allocations: 4.161 MB / 0.9537 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003225/0.6555, allocations: 2.408 MB / 0.956 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003027/0.6558, allocations: 14.09 kB / 0.956 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.6573, allocations: 0.5386 MB / 0.9566 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004255/0.6578, allocations: 244.2 kB / 0.9568 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.658, allocations: 143.3 kB / 0.9569 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000698/0.6587, allocations: 0.8077 MB / 0.9577 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004732/0.6592, allocations: 330 kB / 0.958 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000338/0.6595, allocations: 283.9 kB / 0.9583 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/0.6598, allocations: 329 kB / 0.9586 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.66, allocations: 74.19 kB / 0.9587 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.6601, allocations: 74.94 kB / 0.9588 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.6602, allocations: 170.1 kB / 0.9589 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002857/0.6605, allocations: 383.4 kB / 0.9593 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006413/0.6612, allocations: 0.9914 MB / 0.9603 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.6612, allocations: 3.938 kB / 0.9603 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.843e-06/0.6612, allocations: 4 kB / 0.9603 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.838e-06/0.6612, allocations: 0 / 0.9603 GB, free: 1.133 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.001277/0.6625, allocations: 0.9562 MB / 0.9612 GB, free: 360 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.6625, allocations: 8.938 kB / 0.9612 GB, free: 360 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.6627, allocations: 72.38 kB / 0.9613 GB, free: 324 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000549/0.6632, allocations: 454.6 kB / 0.9617 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.6633, allocations: 36.78 kB / 0.9618 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.511e-05/0.6634, allocations: 54.92 kB / 0.9618 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007664/0.6641, allocations: 432.1 kB / 0.9622 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.6642, allocations: 0 / 0.9622 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.6642, allocations: 21.47 kB / 0.9622 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.6642, allocations: 10.25 kB / 0.9622 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006929/0.6649, allocations: 368.8 kB / 0.9626 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.6671, allocations: 1.548 MB / 0.9641 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005268/0.6676, allocations: 332.2 kB / 0.9644 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004854/0.6681, allocations: 320.3 kB / 0.9647 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.6682, allocations: 3.281 kB / 0.9647 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.6682, allocations: 41.75 kB / 0.9648 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.6682, allocations: 0 / 0.9648 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.001017/0.6692, allocations: 0.4931 MB / 0.9653 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.6693, allocations: 59.69 kB / 0.9653 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005616/0.6699, allocations: 486.1 kB / 0.9658 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.6699, allocations: 31.77 kB / 0.9658 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.6701, allocations: 274.8 kB / 0.9661 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.6702, allocations: 146.5 kB / 0.9662 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.6703, allocations: 61.94 kB / 0.9663 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.6705, allocations: 358.4 kB / 0.9666 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.6707, allocations: 126.1 kB / 0.9667 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.671, allocations: 129.2 kB / 0.9669 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005151/0.6715, allocations: 295.4 kB / 0.9671 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.6715, allocations: 0 / 0.9671 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006692/0.6722, allocations: 397.5 kB / 0.9675 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.6722, allocations: 8.375 kB / 0.9675 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.6722, allocations: 5.094 kB / 0.9675 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.6722, allocations: 1.531 kB / 0.9675 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.6727, allocations: 123.8 kB / 0.9676 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.6728, allocations: 2.125 kB / 0.9676 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.6731, allocations: 36.23 kB / 0.9677 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.6731, allocations: 12.38 kB / 0.9677 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.0002282/0.6733, allocations: 189 kB / 0.9679 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.6734, allocations: 63.64 kB / 0.9679 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.6735, allocations: 62.52 kB / 0.968 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.6736, allocations: 3.969 kB / 0.968 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.6736, allocations: 1.375 kB / 0.968 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.6736, allocations: 3.984 kB / 0.968 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006968/0.6743, allocations: 0.5706 MB / 0.9686 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.6743, allocations: 3.984 kB / 0.9686 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000508/0.6748, allocations: 128.2 kB / 0.9687 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.6748, allocations: 5.562 kB / 0.9687 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.6749, allocations: 13.56 kB / 0.9687 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.6749, allocations: 2.562 kB / 0.9687 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.6749, allocations: 0 / 0.9687 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009744/0.6759, allocations: 0.6385 MB / 0.9693 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.676, allocations: 139.8 kB / 0.9695 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.503e-05/0.6761, allocations: 14.62 kB / 0.9695 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.6763, allocations: 16.83 kB / 0.9695 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.6764, allocations: 19.12 kB / 0.9695 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.6764, allocations: 10.62 kB / 0.9695 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000385/0.6768, allocations: 351.2 kB / 0.9699 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6768, allocations: 1.188 kB / 0.9699 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004404/0.6772, allocations: 147.3 kB / 0.97 GB, free: 10.31 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.0001408/0.6774, allocations: 124.1 kB / 0.9701 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007363/0.6781, allocations: 342.7 kB / 0.9704 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6781, allocations: 0 / 0.9704 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003129/0.6785, allocations: 179.5 kB / 0.9706 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007196/0.6792, allocations: 130.2 kB / 0.9707 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.6812, allocations: 1.209 MB / 0.9719 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004822/0.6817, allocations: 0.8745 MB / 0.9728 GB, free: 8.312 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002158/0.6819, allocations: 58.31 kB / 0.9728 GB, free: 8.281 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.807e-05/0.682, allocations: 34.97 kB / 0.9729 GB, free: 8.273 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.682, allocations: 0 / 0.9729 GB, free: 8.273 MB / 0.7325 GB Notification: Performance of Templates: time 0.01173/0.6938, allocations: 5.926 MB / 0.9787 GB, free: 3.93 MB / 0.7325 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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