Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00143/0.00143, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001613/0.001613, allocations: 213.5 kB / 22.99 MB, free: 4.945 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.542/1.542, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.371/3.371, allocations: 0.5107 GB / 0.8166 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002122/0.002122, allocations: 73.64 kB / 1.187 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4143/0.4165, allocations: 181.9 MB / 1.365 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00339/0.4199, allocations: 1.739 MB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.008727/0.4286, allocations: 4.884 MB / 1.371 GB, free: 6.891 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.4287, allocations: 3.938 kB / 1.371 GB, free: 6.887 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.4302, allocations: 334.5 kB / 1.371 GB, free: 6.559 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.4304, allocations: 71.59 kB / 1.372 GB, free: 6.488 MB / 1.061 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'. Notification: Performance of NFTyping.typeClassSections: time 0.004545/0.4349, allocations: 1.589 MB / 1.373 GB, free: 4.895 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000331/0.4352, allocations: 167.3 kB / 1.373 GB, free: 4.73 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.978e-05/0.4353, allocations: 9.734 kB / 1.373 GB, free: 4.719 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.15e-05/0.4354, allocations: 59.78 kB / 1.373 GB, free: 4.66 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002564/0.4356, allocations: 167.4 kB / 1.373 GB, free: 4.496 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.75e-05/0.4357, allocations: 16 kB / 1.373 GB, free: 4.48 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004291/0.44, allocations: 2.39 MB / 1.376 GB, free: 2.086 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0002767/0.4403, allocations: 287.8 kB / 1.376 GB, free: 1.805 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002532/0.4405, allocations: 238.8 kB / 1.376 GB, free: 1.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.003646/0.4442, allocations: 2.216 MB / 1.378 GB, free: 15.35 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4442, allocations: 0 / 1.378 GB, free: 15.35 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.924e-06/0.4442, allocations: 0 / 1.378 GB, free: 15.35 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.4442, allocations: 0 / 1.378 GB, free: 15.35 MB / 1.076 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.01004/0.4542, allocations: 1.331 MB / 1.38 GB, free: 13.98 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4543, allocations: 15.97 kB / 1.38 GB, free: 13.96 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004384/0.4547, allocations: 96.2 kB / 1.38 GB, free: 13.87 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006989/0.4554, allocations: 356.5 kB / 1.38 GB, free: 13.49 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.4554, allocations: 4.375 kB / 1.38 GB, free: 13.48 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.4555, allocations: 8.375 kB / 1.38 GB, free: 13.48 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/0.456, allocations: 387.5 kB / 1.381 GB, free: 13.09 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.456, allocations: 4 kB / 1.381 GB, free: 13.08 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.456, allocations: 7.922 kB / 1.381 GB, free: 13.07 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.456, allocations: 0 / 1.381 GB, free: 13.07 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004881/0.4565, allocations: 431.8 kB / 1.381 GB, free: 12.65 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006756/0.4572, allocations: 0.5976 MB / 1.382 GB, free: 12.02 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.4578, allocations: 0.5594 MB / 1.382 GB, free: 11.45 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003542/0.4582, allocations: 333.7 kB / 1.382 GB, free: 11.11 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006362/0.4588, allocations: 139.7 kB / 1.383 GB, free: 10.98 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004858/0.4593, allocations: 412.8 kB / 1.383 GB, free: 10.55 MB / 1.076 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.4593, allocations: 0 / 1.383 GB, free: 10.55 MB / 1.076 GB Notification: Performance of matching and sorting (n=8): time 0.001565/0.4608, allocations: 1.297 MB / 1.384 GB, free: 9.25 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.4609, allocations: 89.02 kB / 1.384 GB, free: 9.145 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.4624, allocations: 1.294 MB / 1.386 GB, free: 7.84 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.4624, allocations: 33.69 kB / 1.386 GB, free: 7.801 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.4627, allocations: 293.9 kB / 1.386 GB, free: 7.508 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.759e-05/0.4627, allocations: 19.84 kB / 1.386 GB, free: 7.488 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003684/0.4631, allocations: 351.6 kB / 1.386 GB, free: 7.141 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.4632, allocations: 318 kB / 1.387 GB, free: 6.824 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001492/0.4647, allocations: 1.373 MB / 1.388 GB, free: 5.449 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.4663, allocations: 1.505 MB / 1.389 GB, free: 3.934 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007643/0.474, allocations: 3.56 MB / 1.393 GB, free: 288 kB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.474, allocations: 3.938 kB / 1.393 GB, free: 284 kB / 1.076 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005481/0.4794, allocations: 4.007 MB / 1.397 GB, free: 12.23 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.4795, allocations: 18.16 kB / 1.397 GB, free: 12.21 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.4795, allocations: 3.984 kB / 1.397 GB, free: 12.21 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.881e-05/0.4795, allocations: 4 kB / 1.397 GB, free: 12.21 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.4797, allocations: 15.94 kB / 1.397 GB, free: 12.19 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.998e-06/0.4797, allocations: 0 / 1.397 GB, free: 12.19 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006643/0.4804, allocations: 245.3 kB / 1.397 GB, free: 11.95 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.126e-05/0.4804, allocations: 23.89 kB / 1.397 GB, free: 11.93 MB / 1.092 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.0004294/0.4809, allocations: 245.7 kB / 1.397 GB, free: 11.68 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.671e-05/0.4809, allocations: 87.19 kB / 1.397 GB, free: 11.59 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.4822, allocations: 0.9446 MB / 1.398 GB, free: 10.64 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.4822, allocations: 7.984 kB / 1.398 GB, free: 10.63 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4822, allocations: 0 / 1.398 GB, free: 10.63 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4822, allocations: 0 / 1.398 GB, free: 10.63 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005394/0.4827, allocations: 468.4 kB / 1.399 GB, free: 10.15 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4827, allocations: 0 / 1.399 GB, free: 10.15 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.242e-05/0.4828, allocations: 7.984 kB / 1.399 GB, free: 10.14 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.4828, allocations: 4.031 kB / 1.399 GB, free: 10.14 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.4828, allocations: 7.938 kB / 1.399 GB, free: 10.13 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.4828, allocations: 7.938 kB / 1.399 GB, free: 10.12 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4828, allocations: 0 / 1.399 GB, free: 10.12 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.484, allocations: 1.011 MB / 1.4 GB, free: 9.09 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.4841, allocations: 91.19 kB / 1.4 GB, free: 9 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.541e-05/0.4842, allocations: 7.875 kB / 1.4 GB, free: 8.992 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.4843, allocations: 7.984 kB / 1.4 GB, free: 8.984 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.4844, allocations: 15.98 kB / 1.4 GB, free: 8.969 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.4844, allocations: 11.98 kB / 1.4 GB, free: 8.957 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0009513/0.4854, allocations: 0.7261 MB / 1.401 GB, free: 8.227 MB / 1.092 GB Notification: Performance of sort global known variables: time 1e-07/0.4854, allocations: 0 / 1.401 GB, free: 8.227 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002128/0.4875, allocations: 0.5884 MB / 1.401 GB, free: 7.637 MB / 1.092 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.002118/0.4896, allocations: 0.7009 MB / 1.402 GB, free: 6.949 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002483/0.4921, allocations: 2.001 MB / 1.404 GB, free: 4.934 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4921, allocations: 0 / 1.404 GB, free: 4.934 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.000389/0.4925, allocations: 335.8 kB / 1.404 GB, free: 4.605 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004581/0.4929, allocations: 54.09 kB / 1.404 GB, free: 4.551 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002983/0.4959, allocations: 1.94 MB / 1.406 GB, free: 2.566 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.4964, allocations: 397.8 kB / 1.407 GB, free: 2.156 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.4965, allocations: 27.36 kB / 1.407 GB, free: 2.129 MB / 1.092 GB Notification: Performance of SimCode: time 1.052e-06/0.4965, allocations: 0 / 1.407 GB, free: 2.129 MB / 1.092 GB Notification: Performance of Templates: time 0.02819/0.5247, allocations: 15 MB / 1.421 GB, free: 3.145 MB / 1.107 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.907489510253072]