Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 107.6 kB / 16.41 MB, free: 6.492 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.001476/0.001476, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.557/2.557, allocations: 437 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 71.88 kB / 1.019 GB, free: 9.34 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.069/1.071, allocations: 151.6 MB / 1.167 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.003434/1.074, allocations: 1.425 MB / 1.169 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.008072/1.082, allocations: 4.202 MB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.742e-05/1.082, allocations: 7.938 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.000169/1.083, allocations: 15.86 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003207/1.083, allocations: 27.84 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.005544/1.089, allocations: 1.518 MB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0002349/1.089, allocations: 91.67 kB / 1.174 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.545e-05/1.089, allocations: 4 kB / 1.174 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/1.089, allocations: 43.91 kB / 1.175 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/1.089, allocations: 143.6 kB / 1.175 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.127e-05/1.089, allocations: 12 kB / 1.175 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004222/1.094, allocations: 2.211 MB / 1.177 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002807/1.094, allocations: 271.8 kB / 1.177 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003168/1.094, allocations: 278.3 kB / 1.177 GB, free: 9.531 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004555/1.099, allocations: 2.11 MB / 1.179 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/1.099, allocations: 0 / 1.179 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.344e-06/1.099, allocations: 0 / 1.179 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.38e-05/1.099, allocations: 0 / 1.179 GB, free: 7.418 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.008828/1.108, allocations: 1.296 MB / 1.181 GB, free: 6.07 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/1.108, allocations: 12.92 kB / 1.181 GB, free: 6.059 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004999/1.108, allocations: 99.58 kB / 1.181 GB, free: 5.961 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005738/1.109, allocations: 360.9 kB / 1.181 GB, free: 5.559 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/1.109, allocations: 8.375 kB / 1.181 GB, free: 5.551 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/1.109, allocations: 4.375 kB / 1.181 GB, free: 5.547 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/1.109, allocations: 395.5 kB / 1.182 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/1.109, allocations: 0 / 1.182 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/1.109, allocations: 0 / 1.182 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/1.109, allocations: 0 / 1.182 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005604/1.11, allocations: 435.7 kB / 1.182 GB, free: 4.723 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008417/1.111, allocations: 0.6366 MB / 1.183 GB, free: 4.035 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000711/1.112, allocations: 0.5633 MB / 1.183 GB, free: 3.453 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/1.112, allocations: 341.6 kB / 1.183 GB, free: 3.113 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001276/1.113, allocations: 1.021 MB / 1.184 GB, free: 1.871 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005894/1.114, allocations: 408.8 kB / 1.185 GB, free: 1.453 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/1.114, allocations: 0 / 1.185 GB, free: 1.453 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.001825/1.116, allocations: 1.293 MB / 1.186 GB, free: 152 kB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/1.116, allocations: 85.09 kB / 1.186 GB, free: 48 kB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/1.117, allocations: 1.21 MB / 1.187 GB, free: 14.82 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.704e-05/1.117, allocations: 37.64 kB / 1.187 GB, free: 14.78 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/1.118, allocations: 261.4 kB / 1.188 GB, free: 14.52 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.162e-05/1.118, allocations: 19.75 kB / 1.188 GB, free: 14.5 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007515/1.119, allocations: 347.6 kB / 1.188 GB, free: 14.15 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000292/1.119, allocations: 322 kB / 1.188 GB, free: 13.83 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/1.12, allocations: 1.377 MB / 1.19 GB, free: 12.45 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001936/1.122, allocations: 1.509 MB / 1.191 GB, free: 10.93 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007513/1.13, allocations: 3.556 MB / 1.195 GB, free: 7.285 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/1.13, allocations: 4 kB / 1.195 GB, free: 7.281 MB / 0.92 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005341/1.135, allocations: 4.006 MB / 1.199 GB, free: 3.238 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/1.135, allocations: 4 kB / 1.199 GB, free: 3.234 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/1.135, allocations: 4 kB / 1.199 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/1.135, allocations: 0 / 1.199 GB, free: 3.23 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/1.135, allocations: 15.98 kB / 1.199 GB, free: 3.215 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/1.136, allocations: 4.062 kB / 1.199 GB, free: 3.211 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000555/1.136, allocations: 232.3 kB / 1.199 GB, free: 2.98 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/1.136, allocations: 27.98 kB / 1.199 GB, free: 2.953 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0003881/1.137, allocations: 242.7 kB / 1.199 GB, free: 2.707 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/1.137, allocations: 74.7 kB / 1.199 GB, free: 2.633 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/1.137, allocations: 67.08 kB / 1.199 GB, free: 2.555 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/1.137, allocations: 4 kB / 1.199 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.137, allocations: 4.031 kB / 1.199 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/1.137, allocations: 0 / 1.199 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005228/1.138, allocations: 496.8 kB / 1.2 GB, free: 2.016 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/1.138, allocations: 7.984 kB / 1.2 GB, free: 2.008 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.787e-05/1.138, allocations: 11.94 kB / 1.2 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/1.138, allocations: 0 / 1.2 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/1.138, allocations: 7.984 kB / 1.2 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/1.138, allocations: 0 / 1.2 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.138, allocations: 0 / 1.2 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/1.139, allocations: 0.9936 MB / 1.201 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/1.139, allocations: 155.8 kB / 1.201 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.614e-05/1.139, allocations: 11.98 kB / 1.201 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/1.139, allocations: 0 / 1.201 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/1.139, allocations: 19.89 kB / 1.201 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/1.139, allocations: 15.98 kB / 1.201 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0008133/1.14, allocations: 0.6728 MB / 1.201 GB, free: 76 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.764e-06/1.14, allocations: 0 / 1.201 GB, free: 76 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.002005/1.142, allocations: 0.5779 MB / 1.202 GB, free: 15.5 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002763/1.145, allocations: 0.682 MB / 1.203 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002844/1.148, allocations: 2.552 MB / 1.205 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/1.148, allocations: 4 kB / 1.205 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004404/1.148, allocations: 339.8 kB / 1.206 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/1.149, allocations: 39.33 kB / 1.206 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/1.152, allocations: 1.796 MB / 1.207 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006155/1.152, allocations: 0.964 MB / 1.208 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/1.152, allocations: 23.42 kB / 1.208 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of SimCode: time 7.72e-07/1.152, allocations: 0 / 1.208 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of Templates: time 0.02861/1.181, allocations: 13.83 MB / 1.222 GB, free: 11.2 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches