Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001459/0.001459, allocations: 108 kB / 15.61 MB, free: 128 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.001614/0.001614, allocations: 198 kB / 16.53 MB, free: 6.668 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.686/2.686, allocations: 472.7 MB / 0.7451 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001245, allocations: 63.86 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2797, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005563/0.2853, allocations: 4.152 MB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003684/0.289, allocations: 2.417 MB / 1.075 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004946/0.2896, allocations: 16 kB / 1.075 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.2914, allocations: 0.5519 MB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007425/0.2921, allocations: 242.1 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.2924, allocations: 143.8 kB / 1.076 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009697/0.2934, allocations: 0.7976 MB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004631/0.2939, allocations: 326.5 kB / 1.077 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004282/0.2943, allocations: 295 kB / 1.077 GB, free: 1.406 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004884/0.2948, allocations: 326.6 kB / 1.077 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.295, allocations: 72 kB / 1.077 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.2951, allocations: 76 kB / 1.077 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.2953, allocations: 167.5 kB / 1.078 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004352/0.2958, allocations: 386.2 kB / 1.078 GB, free: 408 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008275/0.2966, allocations: 0.9889 MB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2966, allocations: 0 / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.614e-06/0.2966, allocations: 0 / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.753e-05/0.2967, allocations: 0 / 1.079 GB, free: 15.41 MB / 0.8419 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.0015/0.2982, allocations: 0.9502 MB / 1.08 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2982, allocations: 8.031 kB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.2983, allocations: 76.09 kB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.2989, allocations: 449.7 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.2989, allocations: 37.38 kB / 1.08 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.034e-05/0.299, allocations: 48.38 kB / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007216/0.2997, allocations: 426.7 kB / 1.081 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.2997, allocations: 7.906 kB / 1.081 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.954e-05/0.2998, allocations: 23.98 kB / 1.081 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.2998, allocations: 19.92 kB / 1.081 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000672/0.3005, allocations: 363.8 kB / 1.081 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.3024, allocations: 1.543 MB / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005209/0.303, allocations: 331.5 kB / 1.083 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000473/0.3034, allocations: 322.6 kB / 1.083 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.3035, allocations: 8 kB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.3035, allocations: 38.5 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.3035, allocations: 4 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=42): time 0.0009193/0.3044, allocations: 0.4892 MB / 1.084 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.3045, allocations: 55.41 kB / 1.084 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005113/0.305, allocations: 481.9 kB / 1.084 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.305, allocations: 37.7 kB / 1.084 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.3052, allocations: 276.3 kB / 1.085 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.3053, allocations: 146.7 kB / 1.085 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.311e-05/0.3054, allocations: 58.08 kB / 1.085 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.3056, allocations: 358.8 kB / 1.085 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.3058, allocations: 128.7 kB / 1.085 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.3061, allocations: 121.5 kB / 1.085 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.3066, allocations: 298.2 kB / 1.086 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3066, allocations: 0 / 1.086 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006777/0.3073, allocations: 408 kB / 1.086 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3073, allocations: 4 kB / 1.086 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-06/0.3073, allocations: 0 / 1.086 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.3073, allocations: 4 kB / 1.086 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005155/0.3079, allocations: 127.9 kB / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.3079, allocations: 0 / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.3081, allocations: 39.61 kB / 1.086 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3081, allocations: 12 kB / 1.086 GB, free: 7.551 MB / 0.8419 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.0001912/0.3083, allocations: 195.5 kB / 1.087 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-05/0.3084, allocations: 55.28 kB / 1.087 GB, free: 7.297 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.3085, allocations: 61.09 kB / 1.087 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3085, allocations: 8 kB / 1.087 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3085, allocations: 0 / 1.087 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3085, allocations: 3.984 kB / 1.087 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005913/0.3091, allocations: 0.571 MB / 1.087 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3091, allocations: 0 / 1.087 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.3097, allocations: 131.8 kB / 1.087 GB, free: 6.477 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.3097, allocations: 0 / 1.087 GB, free: 6.477 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.3097, allocations: 12 kB / 1.087 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3097, allocations: 0 / 1.087 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3097, allocations: 8 kB / 1.087 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009359/0.3107, allocations: 0.6403 MB / 1.088 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.3108, allocations: 148.3 kB / 1.088 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.3109, allocations: 4 kB / 1.088 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.3111, allocations: 16 kB / 1.088 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.3112, allocations: 27.95 kB / 1.088 GB, free: 5.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.3112, allocations: 11.94 kB / 1.088 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003585/0.3116, allocations: 351.1 kB / 1.089 GB, free: 5.238 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3116, allocations: 0 / 1.089 GB, free: 5.238 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003814/0.312, allocations: 139.6 kB / 1.089 GB, free: 5.102 MB / 0.8419 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.0001384/0.3121, allocations: 115.7 kB / 1.089 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007021/0.3128, allocations: 351.8 kB / 1.089 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3128, allocations: 0 / 1.089 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002815/0.3131, allocations: 183.6 kB / 1.089 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006723/0.3138, allocations: 128.1 kB / 1.089 GB, free: 4.332 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.3157, allocations: 1.201 MB / 1.091 GB, free: 3.105 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.3161, allocations: 0.8665 MB / 1.091 GB, free: 2.215 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001887/0.3163, allocations: 60.34 kB / 1.091 GB, free: 2.152 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.621e-05/0.3164, allocations: 35.44 kB / 1.091 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.3164, allocations: 0 / 1.091 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of Templates: time 0.01075/0.3272, allocations: 5.929 MB / 1.097 GB, free: 12.32 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches