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.00141/0.00141, allocations: 108.3 kB / 19.71 MB, free: 2.141 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.001518/0.001518, allocations: 211.8 kB / 22.99 MB, free: 4.965 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.808/2.808, allocations: 476 MB / 0.7707 GB, free: 4.715 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.002115/0.002115, allocations: 67.69 kB / 1.118 GB, free: 41.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3892, allocations: 170 MB / 1.284 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003385/0.3926, allocations: 1.738 MB / 1.286 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008489/0.4011, allocations: 4.89 MB / 1.29 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.4012, allocations: 0 / 1.29 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00141/0.4027, allocations: 338.5 kB / 1.291 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.4028, allocations: 67.66 kB / 1.291 GB, free: 4.848 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.004506/0.4073, allocations: 1.574 MB / 1.292 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.4076, allocations: 163.3 kB / 1.292 GB, free: 3.113 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.032e-05/0.4077, allocations: 9.75 kB / 1.292 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.558e-05/0.4078, allocations: 59.72 kB / 1.292 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.4081, allocations: 163.5 kB / 1.293 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.884e-05/0.4081, allocations: 23.94 kB / 1.293 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004151/0.4123, allocations: 2.367 MB / 1.295 GB, free: 0.4922 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002825/0.4125, allocations: 283.8 kB / 1.295 GB, free: 220 kB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002859/0.4128, allocations: 234.8 kB / 1.295 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003433/0.4163, allocations: 2.212 MB / 1.298 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4163, allocations: 0 / 1.298 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.524e-06/0.4163, allocations: 4 kB / 1.298 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.926e-06/0.4163, allocations: 0 / 1.298 GB, free: 13.76 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.01001/0.4263, allocations: 1.331 MB / 1.299 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.4263, allocations: 8.031 kB / 1.299 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00043/0.4268, allocations: 100.2 kB / 1.299 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007109/0.4275, allocations: 356.4 kB / 1.299 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.4275, allocations: 12.31 kB / 1.299 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.962e-05/0.4275, allocations: 8.375 kB / 1.299 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005078/0.428, allocations: 391.5 kB / 1.3 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.428, allocations: 0 / 1.3 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.4281, allocations: 4 kB / 1.3 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4281, allocations: 0 / 1.3 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005068/0.4286, allocations: 435.7 kB / 1.3 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006852/0.4293, allocations: 0.6015 MB / 1.301 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005883/0.4298, allocations: 0.5594 MB / 1.301 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003567/0.4302, allocations: 333.7 kB / 1.302 GB, free: 9.516 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006489/0.4309, allocations: 139.7 kB / 1.302 GB, free: 9.379 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004655/0.4313, allocations: 404.9 kB / 1.302 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.4313, allocations: 0 / 1.302 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001583/0.4329, allocations: 1.301 MB / 1.303 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.433, allocations: 85.09 kB / 1.304 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.4344, allocations: 1.298 MB / 1.305 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.4344, allocations: 29.7 kB / 1.305 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.4347, allocations: 285.9 kB / 1.305 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.4347, allocations: 23.97 kB / 1.305 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003505/0.4351, allocations: 355.6 kB / 1.305 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.4352, allocations: 322 kB / 1.306 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.4366, allocations: 1.365 MB / 1.307 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/0.4382, allocations: 1.509 MB / 1.309 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007377/0.4455, allocations: 3.56 MB / 1.312 GB, free: 14.69 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.4455, allocations: 4 kB / 1.312 GB, free: 14.69 MB / 1.014 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004881/0.4504, allocations: 4.011 MB / 1.316 GB, free: 10.64 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.4504, allocations: 11.88 kB / 1.316 GB, free: 10.63 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.4505, allocations: 7.984 kB / 1.316 GB, free: 10.62 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.4505, allocations: 3.938 kB / 1.316 GB, free: 10.62 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.4506, allocations: 15.98 kB / 1.316 GB, free: 10.6 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.4506, allocations: 0 / 1.316 GB, free: 10.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005895/0.4512, allocations: 249.4 kB / 1.316 GB, free: 10.36 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-05/0.4513, allocations: 23.98 kB / 1.316 GB, free: 10.33 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.000367/0.4517, allocations: 248.7 kB / 1.316 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.782e-05/0.4517, allocations: 87.17 kB / 1.317 GB, free: 9.996 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.4529, allocations: 0.9446 MB / 1.317 GB, free: 9.039 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4529, allocations: 0 / 1.317 GB, free: 9.039 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4529, allocations: 0 / 1.317 GB, free: 9.039 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.4529, allocations: 8.031 kB / 1.317 GB, free: 9.031 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004896/0.4534, allocations: 468.4 kB / 1.318 GB, free: 8.547 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4534, allocations: 0 / 1.318 GB, free: 8.547 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.104e-05/0.4535, allocations: 7.984 kB / 1.318 GB, free: 8.539 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.4535, allocations: 4 kB / 1.318 GB, free: 8.535 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.4535, allocations: 3.938 kB / 1.318 GB, free: 8.531 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.4535, allocations: 0 / 1.318 GB, free: 8.531 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.4535, allocations: 4 kB / 1.318 GB, free: 8.527 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4545, allocations: 1.018 MB / 1.319 GB, free: 7.488 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.4546, allocations: 91.23 kB / 1.319 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.927e-05/0.4547, allocations: 11.92 kB / 1.319 GB, free: 7.387 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.4549, allocations: 4 kB / 1.319 GB, free: 7.383 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.4549, allocations: 7.984 kB / 1.319 GB, free: 7.375 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.829e-05/0.4549, allocations: 11.98 kB / 1.319 GB, free: 7.363 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0008623/0.4558, allocations: 0.7261 MB / 1.32 GB, free: 6.633 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4558, allocations: 0 / 1.32 GB, free: 6.633 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001726/0.4575, allocations: 0.5884 MB / 1.32 GB, free: 6.043 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.001807/0.4593, allocations: 0.6999 MB / 1.321 GB, free: 5.355 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002233/0.4616, allocations: 1.997 MB / 1.323 GB, free: 3.344 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4616, allocations: 0 / 1.323 GB, free: 3.344 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003756/0.4619, allocations: 343.7 kB / 1.323 GB, free: 3.008 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.4623, allocations: 52.84 kB / 1.323 GB, free: 2.953 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.4649, allocations: 1.948 MB / 1.325 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.4653, allocations: 389.8 kB / 1.326 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.4654, allocations: 27.42 kB / 1.326 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of SimCode: time 8.02e-07/0.4654, allocations: 0 / 1.326 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of Templates: time 0.02671/0.4921, allocations: 14.94 MB / 1.34 GB, free: 1.613 MB / 1.029 GB " [Timeout remaining time 299] 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.59007926285267]