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.001237/0.001237, allocations: 108.2 kB / 16.41 MB, free: 6.488 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.001223/0.001223, allocations: 183 kB / 17.34 MB, free: 5.766 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.311/2.311, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 59.91 kB / 0.9516 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9112/0.9127, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005291/0.918, allocations: 4.164 MB / 1.093 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003638/0.9217, allocations: 2.414 MB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004503/0.9222, allocations: 9.5 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.9241, allocations: 0.5384 MB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007256/0.9249, allocations: 249.3 kB / 1.096 GB, free: 376 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.9252, allocations: 138.5 kB / 1.096 GB, free: 284 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00113/0.9263, allocations: 0.8146 MB / 1.097 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005955/0.9269, allocations: 323.6 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005478/0.9275, allocations: 294.2 kB / 1.097 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004604/0.928, allocations: 327.9 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.9281, allocations: 73.97 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.9283, allocations: 74.88 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.9285, allocations: 177.7 kB / 1.098 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003998/0.9289, allocations: 384.1 kB / 1.098 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001289/0.9302, allocations: 0.9882 MB / 1.099 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.9302, allocations: 1.547 kB / 1.099 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.557e-06/0.9302, allocations: 0 / 1.099 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.477e-05/0.9302, allocations: 3.938 kB / 1.099 GB, free: 14.68 MB / 0.8731 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.001654/0.9319, allocations: 0.9476 MB / 1.1 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.932, allocations: 10.02 kB / 1.1 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.9321, allocations: 76.97 kB / 1.1 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007538/0.9329, allocations: 459.8 kB / 1.101 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.138e-05/0.9329, allocations: 41.11 kB / 1.101 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-05/0.933, allocations: 46.78 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008637/0.9339, allocations: 430.8 kB / 1.101 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.9339, allocations: 8.906 kB / 1.101 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.589e-05/0.934, allocations: 21.09 kB / 1.101 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.934, allocations: 10.95 kB / 1.101 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007525/0.9348, allocations: 368.8 kB / 1.102 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002389/0.9372, allocations: 1.52 MB / 1.103 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005968/0.9378, allocations: 342.2 kB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006643/0.9384, allocations: 325.9 kB / 1.104 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.9385, allocations: 4.344 kB / 1.104 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.9385, allocations: 41.28 kB / 1.104 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=42): time 2.044e-06/0.9385, allocations: 0 / 1.104 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.001112/0.9397, allocations: 0.4904 MB / 1.104 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.9397, allocations: 56.8 kB / 1.104 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.9403, allocations: 486.5 kB / 1.105 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.9404, allocations: 31.11 kB / 1.105 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.9406, allocations: 271.5 kB / 1.105 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.9407, allocations: 147 kB / 1.105 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.9408, allocations: 66.19 kB / 1.105 GB, free: 11.04 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.941, allocations: 363.3 kB / 1.106 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.9412, allocations: 124.2 kB / 1.106 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/0.9415, allocations: 123.5 kB / 1.106 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005292/0.942, allocations: 295.8 kB / 1.106 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.942, allocations: 5.156 kB / 1.106 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006669/0.9427, allocations: 404.8 kB / 1.107 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.9427, allocations: 5.891 kB / 1.107 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.9428, allocations: 3.984 kB / 1.107 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.9428, allocations: 3.5 kB / 1.107 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.9433, allocations: 126.8 kB / 1.107 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.9433, allocations: 2.891 kB / 1.107 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.9436, allocations: 34.8 kB / 1.107 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.9436, allocations: 11.86 kB / 1.107 GB, free: 10.24 MB / 0.8731 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.0002287/0.9438, allocations: 203.3 kB / 1.107 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.037e-05/0.9439, allocations: 52.09 kB / 1.107 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.9441, allocations: 61.77 kB / 1.107 GB, free: 10 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.9441, allocations: 4.766 kB / 1.107 GB, free: 10 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.9441, allocations: 0 / 1.107 GB, free: 10 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.9441, allocations: 3.125 kB / 1.107 GB, free: 10 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00074/0.9448, allocations: 0.5737 MB / 1.108 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.9449, allocations: 3.938 kB / 1.108 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000511/0.9454, allocations: 132.9 kB / 1.108 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.9454, allocations: 1.188 kB / 1.108 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.9454, allocations: 6.969 kB / 1.108 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.9454, allocations: 2.281 kB / 1.108 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.9454, allocations: 0.7031 kB / 1.108 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.9465, allocations: 0.6483 MB / 1.108 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.9466, allocations: 136.1 kB / 1.109 GB, free: 9.125 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.608e-05/0.9467, allocations: 11.06 kB / 1.109 GB, free: 9.117 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.9469, allocations: 12.12 kB / 1.109 GB, free: 9.113 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.829e-05/0.947, allocations: 23.64 kB / 1.109 GB, free: 9.109 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.947, allocations: 7.125 kB / 1.109 GB, free: 9.109 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004232/0.9474, allocations: 353.4 kB / 1.109 GB, free: 8.941 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9474, allocations: 0 / 1.109 GB, free: 8.941 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004601/0.9479, allocations: 148.6 kB / 1.109 GB, free: 8.906 MB / 0.8731 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.0001423/0.9481, allocations: 116.4 kB / 1.109 GB, free: 8.809 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006304/0.9487, allocations: 318.4 kB / 1.109 GB, free: 8.703 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.9487, allocations: 1.094 kB / 1.109 GB, free: 8.703 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003064/0.949, allocations: 187 kB / 1.11 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006702/0.9497, allocations: 137.8 kB / 1.11 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.9517, allocations: 1.211 MB / 1.111 GB, free: 7.832 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.9522, allocations: 0.8726 MB / 1.112 GB, free: 7.117 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.9524, allocations: 39.17 kB / 1.112 GB, free: 7.109 MB / 0.8731 GB Notification: Performance of SimCode: time 4.91e-07/0.9524, allocations: 0 / 1.112 GB, free: 7.109 MB / 0.8731 GB Notification: Performance of Templates: time 0.01479/0.9672, allocations: 6.904 MB / 1.119 GB, free: 6.297 MB / 0.8731 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/jenkins1/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