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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002504/0.002504, allocations: 188 kB / 22.22 MB, free: 5.164 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.288/3.288, allocations: 0.4893 GB / 0.7884 GB, free: 33.21 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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.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: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 70.36 kB / 1.145 GB, free: 30.72 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4233/0.4253, allocations: 174.9 MB / 1.316 GB, free: 9.648 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003481/0.4288, allocations: 1.778 MB / 1.318 GB, free: 7.859 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.009308/0.4381, allocations: 5.459 MB / 1.323 GB, free: 2.375 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.4383, allocations: 7.938 kB / 1.323 GB, free: 2.367 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.001437/0.4397, allocations: 382 kB / 1.324 GB, free: 1.996 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.4399, allocations: 59.66 kB / 1.324 GB, free: 1.938 MB / 1.014 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'.
Notification: Performance of NFTyping.typeClassSections: time 0.004558/0.4444, allocations: 1.617 MB / 1.325 GB, free: 328 kB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002947/0.4447, allocations: 155.4 kB / 1.325 GB, free: 172 kB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 6.062e-05/0.4448, allocations: 13.67 kB / 1.325 GB, free: 156 kB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.341e-05/0.4449, allocations: 59.78 kB / 1.325 GB, free: 96 kB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002688/0.4452, allocations: 175.4 kB / 1.326 GB, free: 15.92 MB / 1.029 GB
Notification: Performance of NFPackage.collectConstants: time 5.122e-05/0.4452, allocations: 19.98 kB / 1.326 GB, free: 15.9 MB / 1.029 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.00433/0.4495, allocations: 2.644 MB / 1.328 GB, free: 13.25 MB / 1.029 GB
Notification: Performance of NFScalarize.scalarize: time 0.0002762/0.4498, allocations: 279.8 kB / 1.328 GB, free: 12.98 MB / 1.029 GB
Notification: Performance of NFVerifyModel.verify: time 0.0003265/0.4501, allocations: 310.1 kB / 1.329 GB, free: 12.68 MB / 1.029 GB
Notification: Performance of NFConvertDAE.convert: time 0.003507/0.4536, allocations: 2.231 MB / 1.331 GB, free: 10.44 MB / 1.029 GB
Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4536, allocations: 0 / 1.331 GB, free: 10.44 MB / 1.029 GB
Notification: Performance of FrontEnd: time 1.593e-06/0.4537, allocations: 0 / 1.331 GB, free: 10.44 MB / 1.029 GB
Notification: Performance of Transformations before backend: time 1.557e-05/0.4537, allocations: 0 / 1.331 GB, free: 10.44 MB / 1.029 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.01073/0.4644, allocations: 1.331 MB / 1.332 GB, free: 9.07 MB / 1.029 GB
Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.4644, allocations: 12.03 kB / 1.332 GB, free: 9.059 MB / 1.029 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004313/0.4649, allocations: 100.2 kB / 1.332 GB, free: 8.961 MB / 1.029 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006807/0.4655, allocations: 356.5 kB / 1.333 GB, free: 8.578 MB / 1.029 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.4656, allocations: 4.375 kB / 1.333 GB, free: 8.574 MB / 1.029 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.4656, allocations: 8.375 kB / 1.333 GB, free: 8.566 MB / 1.029 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.4661, allocations: 399.4 kB / 1.333 GB, free: 8.164 MB / 1.029 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.4661, allocations: 0 / 1.333 GB, free: 8.164 MB / 1.029 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.4662, allocations: 3.984 kB / 1.333 GB, free: 8.16 MB / 1.029 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.4662, allocations: 11.94 kB / 1.333 GB, free: 8.148 MB / 1.029 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.4667, allocations: 427.8 kB / 1.333 GB, free: 7.73 MB / 1.029 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007614/0.4674, allocations: 0.6455 MB / 1.334 GB, free: 7.043 MB / 1.029 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.4681, allocations: 0.5672 MB / 1.335 GB, free: 6.457 MB / 1.029 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003672/0.4684, allocations: 333.6 kB / 1.335 GB, free: 6.125 MB / 1.029 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0006504/0.4691, allocations: 131.9 kB / 1.335 GB, free: 5.996 MB / 1.029 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000485/0.4696, allocations: 412.8 kB / 1.335 GB, free: 5.574 MB / 1.029 GB
Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.4696, allocations: 4 kB / 1.335 GB, free: 5.57 MB / 1.029 GB
Notification: Performance of matching and sorting (n=8): time 0.001576/0.4712, allocations: 1.293 MB / 1.337 GB, free: 4.27 MB / 1.029 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.4712, allocations: 85.09 kB / 1.337 GB, free: 4.168 MB / 1.029 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.4727, allocations: 1.298 MB / 1.338 GB, free: 2.859 MB / 1.029 GB
Notification: Performance of collectPreVariables (initialization): time 4.91e-05/0.4727, allocations: 33.67 kB / 1.338 GB, free: 2.82 MB / 1.029 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.473, allocations: 289.9 kB / 1.338 GB, free: 2.531 MB / 1.029 GB
Notification: Performance of collectInitialBindings (initialization): time 4.09e-05/0.473, allocations: 19.84 kB / 1.338 GB, free: 2.512 MB / 1.029 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003737/0.4734, allocations: 351.6 kB / 1.339 GB, free: 2.164 MB / 1.029 GB
Notification: Performance of setup shared object (initialization): time 0.0001607/0.4736, allocations: 318 kB / 1.339 GB, free: 1.848 MB / 1.029 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.475, allocations: 1.373 MB / 1.34 GB, free: 484 kB / 1.029 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.4766, allocations: 1.505 MB / 1.342 GB, free: 14.95 MB / 1.045 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007617/0.4842, allocations: 3.56 MB / 1.345 GB, free: 11.3 MB / 1.045 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4843, allocations: 0 / 1.345 GB, free: 11.3 MB / 1.045 GB
Notification: Performance of matching and sorting (n=319) (initialization): time 0.005031/0.4893, allocations: 4.019 MB / 1.349 GB, free: 7.246 MB / 1.045 GB
Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.4893, allocations: 7.938 kB / 1.349 GB, free: 7.238 MB / 1.045 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.4893, allocations: 3.984 kB / 1.349 GB, free: 7.234 MB / 1.045 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.4893, allocations: 4 kB / 1.349 GB, free: 7.23 MB / 1.045 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.4895, allocations: 12 kB / 1.349 GB, free: 7.219 MB / 1.045 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.4895, allocations: 0 / 1.349 GB, free: 7.219 MB / 1.045 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005841/0.4901, allocations: 245.3 kB / 1.35 GB, free: 6.977 MB / 1.045 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.432e-05/0.4901, allocations: 19.98 kB / 1.35 GB, free: 6.957 MB / 1.045 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.0003848/0.4905, allocations: 254.3 kB / 1.35 GB, free: 6.699 MB / 1.045 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-05/0.4906, allocations: 83.19 kB / 1.35 GB, free: 6.617 MB / 1.045 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.4918, allocations: 0.9484 MB / 1.351 GB, free: 5.664 MB / 1.045 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.4918, allocations: 7.875 kB / 1.351 GB, free: 5.656 MB / 1.045 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4918, allocations: 0 / 1.351 GB, free: 5.656 MB / 1.045 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4918, allocations: 0 / 1.351 GB, free: 5.656 MB / 1.045 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005392/0.4923, allocations: 497.5 kB / 1.351 GB, free: 5.133 MB / 1.045 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4923, allocations: 0 / 1.351 GB, free: 5.133 MB / 1.045 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-05/0.4924, allocations: 11.94 kB / 1.351 GB, free: 5.121 MB / 1.045 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.4924, allocations: 3.938 kB / 1.351 GB, free: 5.117 MB / 1.045 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.4924, allocations: 7.984 kB / 1.351 GB, free: 5.109 MB / 1.045 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.4924, allocations: 0 / 1.351 GB, free: 5.109 MB / 1.045 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.511e-05/0.4925, allocations: 4 kB / 1.351 GB, free: 5.105 MB / 1.045 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.4936, allocations: 1.014 MB / 1.352 GB, free: 4.07 MB / 1.045 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.4937, allocations: 103.1 kB / 1.352 GB, free: 3.969 MB / 1.045 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.51e-05/0.4938, allocations: 0 / 1.352 GB, free: 3.969 MB / 1.045 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.4939, allocations: 4 kB / 1.352 GB, free: 3.965 MB / 1.045 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.494, allocations: 15.92 kB / 1.352 GB, free: 3.949 MB / 1.045 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.494, allocations: 11.97 kB / 1.352 GB, free: 3.938 MB / 1.045 GB
Notification: Performance of sorting global known variables: time 0.0009136/0.4949, allocations: 0.7261 MB / 1.353 GB, free: 3.207 MB / 1.045 GB
Notification: Performance of sort global known variables: time 9e-08/0.4949, allocations: 0 / 1.353 GB, free: 3.207 MB / 1.045 GB
Notification: Performance of remove unused functions: time 0.001839/0.4968, allocations: 0.5884 MB / 1.354 GB, free: 2.617 MB / 1.045 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.001883/0.4987, allocations: 0.6935 MB / 1.354 GB, free: 1.934 MB / 1.045 GB
Notification: Performance of simCode: created initialization part: time 0.002305/0.501, allocations: 1.997 MB / 1.356 GB, free: 15.92 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.501, allocations: 4.062 kB / 1.356 GB, free: 15.92 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 0.0003885/0.5014, allocations: 339.8 kB / 1.357 GB, free: 15.59 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.5017, allocations: 60.64 kB / 1.357 GB, free: 15.52 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.5045, allocations: 1.891 MB / 1.359 GB, free: 13.59 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007564/0.5052, allocations: 0.9918 MB / 1.36 GB, free: 12.58 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 0.0001609/0.5054, allocations: 45.36 kB / 1.36 GB, free: 12.53 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.5055, allocations: 27.41 kB / 1.36 GB, free: 12.5 MB / 1.061 GB
Notification: Performance of SimCode: time 4.81e-07/0.5055, allocations: 0 / 1.36 GB, free: 12.5 MB / 1.061 GB
Notification: Performance of Templates: time 0.02711/0.5326, allocations: 14.46 MB / 1.374 GB, free: 14.11 MB / 1.076 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/jenkins/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]
Reference file matches
[Calling sys.exit(0), Time elapsed: 10.784320247359574]