Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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.001638/0.001638, allocations: 110 kB / 16.45 MB, free: 6.453 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.001946/0.001946, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.551/1.551, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.19/3.19, allocations: 0.4899 GB / 0.7915 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_12_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=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [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.002148/0.002148, allocations: 65.59 kB / 1.149 GB, free: 26.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.352, allocations: 176.1 MB / 1.321 GB, free: 2.812 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002678/0.3547, allocations: 1.464 MB / 1.323 GB, free: 1.34 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.007098/0.3618, allocations: 4.253 MB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.988e-05/0.3618, allocations: 3.938 kB / 1.327 GB, free: 13.06 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.362, allocations: 11.86 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002193/0.3622, allocations: 35.84 kB / 1.327 GB, free: 13.02 MB / 1.029 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.003925/0.3661, allocations: 1.531 MB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.3663, allocations: 87.73 kB / 1.329 GB, free: 11.4 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.177e-05/0.3663, allocations: 4 kB / 1.329 GB, free: 11.39 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.316e-05/0.3664, allocations: 59.77 kB / 1.329 GB, free: 11.34 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/0.3666, allocations: 151.6 kB / 1.329 GB, free: 11.19 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.3667, allocations: 12 kB / 1.329 GB, free: 11.18 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003852/0.3705, allocations: 2.34 MB / 1.331 GB, free: 8.832 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002592/0.3708, allocations: 267.8 kB / 1.331 GB, free: 8.566 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002774/0.3711, allocations: 282.3 kB / 1.332 GB, free: 8.289 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003654/0.3747, allocations: 2.13 MB / 1.334 GB, free: 6.152 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.3747, allocations: 4 kB / 1.334 GB, free: 6.148 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3747, allocations: 0 / 1.334 GB, free: 6.148 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.782e-05/0.3748, allocations: 3.938 kB / 1.334 GB, free: 6.145 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.01153/0.3863, allocations: 1.34 MB / 1.335 GB, free: 4.75 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3863, allocations: 11.98 kB / 1.335 GB, free: 4.738 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004789/0.3868, allocations: 100.2 kB / 1.335 GB, free: 4.641 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.3874, allocations: 368.9 kB / 1.335 GB, free: 4.23 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.3874, allocations: 4.375 kB / 1.335 GB, free: 4.227 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.3874, allocations: 8.375 kB / 1.335 GB, free: 4.219 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.388, allocations: 399.4 kB / 1.336 GB, free: 3.816 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.388, allocations: 0 / 1.336 GB, free: 3.816 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.388, allocations: 4 kB / 1.336 GB, free: 3.812 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.388, allocations: 4 kB / 1.336 GB, free: 3.809 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005134/0.3885, allocations: 435.7 kB / 1.336 GB, free: 3.383 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007897/0.3893, allocations: 0.6409 MB / 1.337 GB, free: 2.691 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006282/0.3899, allocations: 0.5634 MB / 1.337 GB, free: 2.109 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003757/0.3903, allocations: 337.5 kB / 1.338 GB, free: 1.773 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00127/0.3916, allocations: 1.021 MB / 1.339 GB, free: 0.5312 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005087/0.3921, allocations: 412.8 kB / 1.339 GB, free: 112 kB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.3921, allocations: 0 / 1.339 GB, free: 112 kB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.001649/0.3937, allocations: 1.289 MB / 1.34 GB, free: 14.81 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.3938, allocations: 85.23 kB / 1.34 GB, free: 14.71 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.3952, allocations: 1.219 MB / 1.342 GB, free: 13.48 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.987e-05/0.3953, allocations: 25.7 kB / 1.342 GB, free: 13.45 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.3955, allocations: 265.9 kB / 1.342 GB, free: 13.18 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.872e-05/0.3956, allocations: 27.81 kB / 1.342 GB, free: 13.15 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004077/0.396, allocations: 355.6 kB / 1.342 GB, free: 12.8 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3961, allocations: 306 kB / 1.343 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.3976, allocations: 1.377 MB / 1.344 GB, free: 11.12 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/0.3993, allocations: 1.505 MB / 1.345 GB, free: 9.602 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007983/0.4073, allocations: 3.557 MB / 1.349 GB, free: 5.953 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.4073, allocations: 0 / 1.349 GB, free: 5.953 MB / 1.045 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005193/0.4125, allocations: 4.015 MB / 1.353 GB, free: 1.902 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.4125, allocations: 7.938 kB / 1.353 GB, free: 1.895 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.4125, allocations: 4 kB / 1.353 GB, free: 1.891 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.4125, allocations: 0 / 1.353 GB, free: 1.891 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.4127, allocations: 15.98 kB / 1.353 GB, free: 1.875 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.4127, allocations: 4 kB / 1.353 GB, free: 1.871 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.4132, allocations: 233.4 kB / 1.353 GB, free: 1.641 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.416e-05/0.4133, allocations: 27.98 kB / 1.353 GB, free: 1.613 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.000347/0.4136, allocations: 247.2 kB / 1.353 GB, free: 1.363 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.4137, allocations: 75.28 kB / 1.353 GB, free: 1.289 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002976/0.414, allocations: 75.02 kB / 1.353 GB, free: 1.207 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.414, allocations: 0 / 1.353 GB, free: 1.207 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.414, allocations: 3.938 kB / 1.353 GB, free: 1.203 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.414, allocations: 3.984 kB / 1.353 GB, free: 1.199 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005391/0.4146, allocations: 0.5008 MB / 1.354 GB, free: 0.6523 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4146, allocations: 0 / 1.354 GB, free: 0.6523 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.028e-05/0.4146, allocations: 11.94 kB / 1.354 GB, free: 0.6406 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.4146, allocations: 0 / 1.354 GB, free: 0.6406 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.4147, allocations: 11.92 kB / 1.354 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4147, allocations: 0 / 1.354 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4147, allocations: 0 / 1.354 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.4158, allocations: 1.002 MB / 1.355 GB, free: 15.6 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.4159, allocations: 160.2 kB / 1.355 GB, free: 15.43 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.702e-05/0.416, allocations: 4 kB / 1.355 GB, free: 15.43 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.4162, allocations: 4 kB / 1.355 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.4162, allocations: 7.922 kB / 1.355 GB, free: 15.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-05/0.4163, allocations: 11.98 kB / 1.355 GB, free: 15.4 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0008307/0.4171, allocations: 0.6767 MB / 1.356 GB, free: 14.72 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4171, allocations: 0 / 1.356 GB, free: 14.72 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001615/0.4187, allocations: 0.5845 MB / 1.356 GB, free: 14.13 MB / 1.061 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.002305/0.421, allocations: 0.7077 MB / 1.357 GB, free: 13.43 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002326/0.4233, allocations: 2.007 MB / 1.359 GB, free: 11.41 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4233, allocations: 0 / 1.359 GB, free: 11.41 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000407/0.4237, allocations: 339.8 kB / 1.359 GB, free: 11.08 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.4241, allocations: 37.47 kB / 1.359 GB, free: 11.04 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.4266, allocations: 1.774 MB / 1.361 GB, free: 9.23 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000674/0.4272, allocations: 0.964 MB / 1.362 GB, free: 8.238 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001486/0.4274, allocations: 36.53 kB / 1.362 GB, free: 8.203 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.4275, allocations: 23.42 kB / 1.362 GB, free: 8.18 MB / 1.061 GB Notification: Performance of SimCode: time 4.21e-07/0.4275, allocations: 0 / 1.362 GB, free: 8.18 MB / 1.061 GB Notification: Performance of Templates: time 0.02566/0.4532, allocations: 13.84 MB / 1.376 GB, free: 10.39 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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.268972096033394]