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.001815/0.001815, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002332/0.002332, allocations: 212.9 kB / 22.24 MB, free: 5.262 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.594/1.594, allocations: 230.6 MB / 256 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 3.025/3.025, allocations: 475.9 MB / 0.7699 GB, free: 4.754 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.002232/0.002232, allocations: 69.3 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3974, allocations: 170 MB / 1.283 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.004079/0.4015, allocations: 1.737 MB / 1.285 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.009498/0.411, allocations: 4.895 MB / 1.29 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.4111, allocations: 3.938 kB / 1.29 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001541/0.4127, allocations: 334.5 kB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.4129, allocations: 67.66 kB / 1.29 GB, free: 4.852 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.005448/0.4183, allocations: 1.563 MB / 1.291 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003908/0.4187, allocations: 171.3 kB / 1.292 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.346e-05/0.4188, allocations: 5.75 kB / 1.292 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.4189, allocations: 67.7 kB / 1.292 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.4192, allocations: 155.5 kB / 1.292 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.234e-05/0.4193, allocations: 16 kB / 1.292 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005003/0.4243, allocations: 2.367 MB / 1.294 GB, free: 0.5117 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003273/0.4246, allocations: 287.7 kB / 1.294 GB, free: 236 kB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003848/0.425, allocations: 246.8 kB / 1.295 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005477/0.4305, allocations: 2.212 MB / 1.297 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4305, allocations: 0 / 1.297 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.805e-06/0.4305, allocations: 0 / 1.297 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.974e-05/0.4305, allocations: 3.938 kB / 1.297 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.01126/0.4418, allocations: 1.331 MB / 1.298 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.4418, allocations: 8.031 kB / 1.298 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005275/0.4424, allocations: 104.2 kB / 1.298 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008374/0.4432, allocations: 352.5 kB / 1.299 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.4432, allocations: 384 / 1.299 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.412e-05/0.4433, allocations: 8.375 kB / 1.299 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.4438, allocations: 391.5 kB / 1.299 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.4438, allocations: 0 / 1.299 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.4438, allocations: 4 kB / 1.299 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.4439, allocations: 7.938 kB / 1.299 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005866/0.4444, allocations: 439.7 kB / 1.299 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009129/0.4454, allocations: 0.5976 MB / 1.3 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006684/0.446, allocations: 0.5672 MB / 1.301 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003913/0.4464, allocations: 329.7 kB / 1.301 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007097/0.4471, allocations: 139.7 kB / 1.301 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005174/0.4476, allocations: 400.9 kB / 1.301 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.743e-06/0.4476, allocations: 0 / 1.301 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001708/0.4493, allocations: 1.305 MB / 1.303 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.4494, allocations: 85.03 kB / 1.303 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001686/0.4511, allocations: 1.302 MB / 1.304 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.4512, allocations: 29.7 kB / 1.304 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003138/0.4515, allocations: 285.9 kB / 1.304 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.518e-05/0.4515, allocations: 23.84 kB / 1.304 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000433/0.452, allocations: 351.6 kB / 1.305 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.4521, allocations: 322 kB / 1.305 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/0.4537, allocations: 1.369 MB / 1.306 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.4554, allocations: 1.509 MB / 1.308 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008055/0.4634, allocations: 3.556 MB / 1.311 GB, free: 14.7 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4634, allocations: 0 / 1.311 GB, free: 14.7 MB / 1.014 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005408/0.4688, allocations: 4.011 MB / 1.315 GB, free: 10.65 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.4689, allocations: 7.938 kB / 1.315 GB, free: 10.64 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.4689, allocations: 4.031 kB / 1.315 GB, free: 10.64 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.4689, allocations: 4 kB / 1.315 GB, free: 10.63 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.4691, allocations: 19.92 kB / 1.315 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.4691, allocations: 0 / 1.315 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005813/0.4697, allocations: 245.3 kB / 1.315 GB, free: 10.37 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.534e-05/0.4697, allocations: 27.91 kB / 1.315 GB, free: 10.34 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.0004117/0.4701, allocations: 249.7 kB / 1.316 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.4702, allocations: 83.19 kB / 1.316 GB, free: 10.01 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001265/0.4715, allocations: 0.9449 MB / 1.317 GB, free: 9.051 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.4715, allocations: 4 kB / 1.317 GB, free: 9.047 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4715, allocations: 0 / 1.317 GB, free: 9.047 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.4715, allocations: 0 / 1.317 GB, free: 9.047 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005725/0.4721, allocations: 468.4 kB / 1.317 GB, free: 8.562 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.4721, allocations: 4 kB / 1.317 GB, free: 8.559 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.7e-05/0.4722, allocations: 4 kB / 1.317 GB, free: 8.555 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.4722, allocations: 4 kB / 1.317 GB, free: 8.551 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.4722, allocations: 11.95 kB / 1.317 GB, free: 8.539 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4722, allocations: 80 / 1.317 GB, free: 8.539 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.4722, allocations: 7.922 kB / 1.317 GB, free: 8.531 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.4734, allocations: 1.014 MB / 1.318 GB, free: 7.496 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.4735, allocations: 91.22 kB / 1.318 GB, free: 7.406 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.4736, allocations: 7.938 kB / 1.318 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.4738, allocations: 4 kB / 1.318 GB, free: 7.395 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.056e-05/0.4738, allocations: 7.984 kB / 1.318 GB, free: 7.387 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.435e-05/0.4739, allocations: 19.97 kB / 1.318 GB, free: 7.367 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009505/0.4748, allocations: 0.7222 MB / 1.319 GB, free: 6.641 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.4748, allocations: 0 / 1.319 GB, free: 6.641 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001868/0.4767, allocations: 0.5923 MB / 1.32 GB, free: 6.047 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.002761/0.4795, allocations: 0.6941 MB / 1.32 GB, free: 5.363 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002402/0.4819, allocations: 2.001 MB / 1.322 GB, free: 3.348 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4819, allocations: 0 / 1.322 GB, free: 3.348 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.4823, allocations: 335.8 kB / 1.323 GB, free: 3.02 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.4827, allocations: 62.83 kB / 1.323 GB, free: 2.957 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002836/0.4856, allocations: 1.895 MB / 1.324 GB, free: 1.027 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/0.486, allocations: 393.8 kB / 1.325 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001677/0.4862, allocations: 45.39 kB / 1.325 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.4863, allocations: 35.34 kB / 1.325 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of SimCode: time 8.31e-07/0.4863, allocations: 0 / 1.325 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of Templates: time 0.0285/0.5148, allocations: 15.67 MB / 1.34 GB, free: 1.027 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/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 11.122900281101465]