Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 219.5 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.811/2.811, allocations: 476.8 MB / 0.7714 GB, free: 4.285 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 69.83 kB / 1.119 GB, free: 39.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3692, allocations: 170 MB / 1.285 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003399/0.3726, allocations: 1.801 MB / 1.286 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008748/0.3813, allocations: 5.483 MB / 1.292 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.3815, allocations: 0 / 1.292 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.3829, allocations: 375.4 kB / 1.292 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.3831, allocations: 71.66 kB / 1.292 GB, free: 3.23 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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 11.1.1-maint.11.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.004517/0.3876, allocations: 1.594 MB / 1.294 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.3879, allocations: 159.4 kB / 1.294 GB, free: 1.48 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.615e-05/0.388, allocations: 13.73 kB / 1.294 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.239e-05/0.3881, allocations: 63.72 kB / 1.294 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.3883, allocations: 167.4 kB / 1.294 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.737e-05/0.3884, allocations: 16 kB / 1.294 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004361/0.3927, allocations: 2.628 MB / 1.297 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002641/0.393, allocations: 279.8 kB / 1.297 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003212/0.3933, allocations: 302.1 kB / 1.297 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003513/0.3968, allocations: 2.235 MB / 1.299 GB, free: 11.78 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3968, allocations: 3.938 kB / 1.299 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.754e-06/0.3968, allocations: 0 / 1.299 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.898e-06/0.3968, allocations: 0 / 1.299 GB, free: 11.77 MB / 0.9981 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.009513/0.4063, allocations: 1.335 MB / 1.301 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.4064, allocations: 8.031 kB / 1.301 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004526/0.4068, allocations: 104.2 kB / 1.301 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006977/0.4075, allocations: 360.4 kB / 1.301 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.4076, allocations: 384 / 1.301 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.4076, allocations: 12.38 kB / 1.301 GB, free: 9.895 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004884/0.4081, allocations: 395.4 kB / 1.302 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4081, allocations: 4 kB / 1.302 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.4081, allocations: 7.984 kB / 1.302 GB, free: 9.484 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.4081, allocations: 0 / 1.302 GB, free: 9.484 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004797/0.4086, allocations: 435.7 kB / 1.302 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007282/0.4093, allocations: 0.6416 MB / 1.303 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000587/0.4099, allocations: 0.5595 MB / 1.303 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003561/0.4103, allocations: 333.6 kB / 1.304 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006314/0.4109, allocations: 131.8 kB / 1.304 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004575/0.4114, allocations: 412.8 kB / 1.304 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.4114, allocations: 0 / 1.304 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001511/0.4129, allocations: 1.297 MB / 1.305 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.4129, allocations: 85.22 kB / 1.305 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.4143, allocations: 1.302 MB / 1.307 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.4144, allocations: 29.7 kB / 1.307 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.4147, allocations: 289.9 kB / 1.307 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.4147, allocations: 19.86 kB / 1.307 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003534/0.4151, allocations: 347.6 kB / 1.307 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.4152, allocations: 322 kB / 1.308 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.4166, allocations: 1.369 MB / 1.309 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.4181, allocations: 1.509 MB / 1.31 GB, free: 304 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007373/0.4255, allocations: 3.564 MB / 1.314 GB, free: 12.64 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.4255, allocations: 0 / 1.314 GB, free: 12.64 MB / 1.014 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004891/0.4304, allocations: 4.019 MB / 1.318 GB, free: 8.586 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.4304, allocations: 4 kB / 1.318 GB, free: 8.582 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.4304, allocations: 7.984 kB / 1.318 GB, free: 8.574 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.4304, allocations: 0 / 1.318 GB, free: 8.574 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.4306, allocations: 12 kB / 1.318 GB, free: 8.562 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.4306, allocations: 8.047 kB / 1.318 GB, free: 8.555 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005949/0.4312, allocations: 245.3 kB / 1.318 GB, free: 8.312 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-05/0.4313, allocations: 23.98 kB / 1.318 GB, free: 8.289 MB / 1.014 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.0003593/0.4316, allocations: 249.6 kB / 1.318 GB, free: 8.035 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.109e-05/0.4317, allocations: 83.19 kB / 1.318 GB, free: 7.953 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/0.4328, allocations: 0.9523 MB / 1.319 GB, free: 6.988 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4328, allocations: 0 / 1.319 GB, free: 6.988 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.4328, allocations: 4 kB / 1.319 GB, free: 6.984 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.4328, allocations: 0 / 1.319 GB, free: 6.984 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005462/0.4333, allocations: 0.4898 MB / 1.32 GB, free: 6.457 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.4333, allocations: 0 / 1.32 GB, free: 6.457 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.106e-05/0.4334, allocations: 7.938 kB / 1.32 GB, free: 6.449 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.4334, allocations: 0 / 1.32 GB, free: 6.449 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.4334, allocations: 7.984 kB / 1.32 GB, free: 6.441 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4334, allocations: 0 / 1.32 GB, free: 6.441 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.4334, allocations: 4 kB / 1.32 GB, free: 6.438 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4345, allocations: 1.022 MB / 1.321 GB, free: 5.395 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.4346, allocations: 91.17 kB / 1.321 GB, free: 5.305 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.094e-05/0.4346, allocations: 0 / 1.321 GB, free: 5.305 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.4348, allocations: 7.984 kB / 1.321 GB, free: 5.297 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.425e-05/0.4348, allocations: 8 kB / 1.321 GB, free: 5.289 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.4349, allocations: 15.97 kB / 1.321 GB, free: 5.273 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0008734/0.4357, allocations: 0.7222 MB / 1.322 GB, free: 4.547 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.4357, allocations: 0 / 1.322 GB, free: 4.547 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001771/0.4375, allocations: 0.5923 MB / 1.322 GB, free: 3.953 MB / 1.014 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.001843/0.4394, allocations: 0.6912 MB / 1.323 GB, free: 3.27 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002169/0.4415, allocations: 2.004 MB / 1.325 GB, free: 1.254 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.4415, allocations: 8 kB / 1.325 GB, free: 1.246 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003618/0.4419, allocations: 331.8 kB / 1.325 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.4423, allocations: 67.28 kB / 1.325 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.4448, allocations: 1.94 MB / 1.327 GB, free: 14.88 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.4455, allocations: 0.9879 MB / 1.328 GB, free: 13.86 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.4456, allocations: 31.41 kB / 1.328 GB, free: 13.83 MB / 1.029 GB Notification: Performance of SimCode: time 1.493e-06/0.4456, allocations: 0 / 1.328 GB, free: 13.83 MB / 1.029 GB Notification: Performance of Templates: time 0.02522/0.4708, allocations: 14.63 MB / 1.342 GB, free: 15.22 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time [Calling sys.exit(0), Time elapsed: 16.2396543220093]