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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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=5000,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=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 111.3 kB / 15.24 MB, free: 0.6484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 201.4 kB / 16.14 MB, free: 6.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.74/2.74, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 69.22 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2695, allocations: 159.9 MB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002801/0.2723, allocations: 1.825 MB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007563/0.2799, allocations: 5.657 MB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.715e-05/0.28, allocations: 7.875 kB / 1.075 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.2812, allocations: 354.6 kB / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.2813, allocations: 63.73 kB / 1.075 GB, free: 2.934 MB / 0.8262 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.002953/0.2843, allocations: 1.177 MB / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000231/0.2845, allocations: 203.3 kB / 1.077 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.248e-05/0.2846, allocations: 9.562 kB / 1.077 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.999e-05/0.2846, allocations: 59.72 kB / 1.077 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.2848, allocations: 180.8 kB / 1.077 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.2849, allocations: 16 kB / 1.077 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002798/0.2877, allocations: 2.18 MB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.2879, allocations: 275.8 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.2882, allocations: 318.1 kB / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002513/0.2907, allocations: 2.217 MB / 1.082 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2907, allocations: 3.938 kB / 1.082 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of FrontEnd: time 7.81e-07/0.2907, allocations: 0 / 1.082 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.747e-06/0.2907, allocations: 0 / 1.082 GB, free: 12.3 MB / 0.8419 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.008371/0.2991, allocations: 1.37 MB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2992, allocations: 12.03 kB / 1.083 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004079/0.2996, allocations: 95.59 kB / 1.083 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.3, allocations: 410.1 kB / 1.084 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.3001, allocations: 8.375 kB / 1.084 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.81e-05/0.3001, allocations: 4.375 kB / 1.084 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004026/0.3005, allocations: 395.4 kB / 1.084 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.3005, allocations: 0 / 1.084 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.3006, allocations: 4 kB / 1.084 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.3006, allocations: 0 / 1.084 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004073/0.301, allocations: 435.7 kB / 1.084 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005723/0.3016, allocations: 0.6654 MB / 1.085 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000496/0.3021, allocations: 0.5673 MB / 1.086 GB, free: 8.188 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/0.3024, allocations: 333.6 kB / 1.086 GB, free: 7.855 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000989/0.3034, allocations: 1.025 MB / 1.087 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003954/0.3038, allocations: 412.8 kB / 1.087 GB, free: 6.188 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.3038, allocations: 4 kB / 1.087 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001288/0.3051, allocations: 1.289 MB / 1.089 GB, free: 4.887 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.3051, allocations: 89.22 kB / 1.089 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.3063, allocations: 1.293 MB / 1.09 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.3064, allocations: 29.7 kB / 1.09 GB, free: 3.441 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.3066, allocations: 281.4 kB / 1.09 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.3066, allocations: 23.73 kB / 1.09 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003295/0.3069, allocations: 355.6 kB / 1.091 GB, free: 2.785 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.307, allocations: 322 kB / 1.091 GB, free: 2.465 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.3082, allocations: 1.377 MB / 1.092 GB, free: 1.086 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.3095, allocations: 1.501 MB / 1.094 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007075/0.3166, allocations: 3.56 MB / 1.097 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3166, allocations: 0 / 1.097 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004206/0.3208, allocations: 4.018 MB / 1.101 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.3209, allocations: 7.984 kB / 1.101 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.3209, allocations: 0 / 1.101 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.3209, allocations: 4 kB / 1.101 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.3211, allocations: 16 kB / 1.101 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3211, allocations: 3.984 kB / 1.101 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005343/0.3216, allocations: 228.3 kB / 1.101 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.604e-05/0.3217, allocations: 23.97 kB / 1.101 GB, free: 7.582 MB / 0.8575 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.000328/0.322, allocations: 255.4 kB / 1.102 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.571e-05/0.3221, allocations: 74.62 kB / 1.102 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.3224, allocations: 83.81 kB / 1.102 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3224, allocations: 4 kB / 1.102 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3224, allocations: 0 / 1.102 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3225, allocations: 4.016 kB / 1.102 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004382/0.3229, allocations: 0.5179 MB / 1.102 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3229, allocations: 0 / 1.102 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-05/0.323, allocations: 7.938 kB / 1.102 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.323, allocations: 4 kB / 1.102 GB, free: 6.582 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.323, allocations: 3.984 kB / 1.102 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.323, allocations: 3.938 kB / 1.102 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.323, allocations: 4 kB / 1.102 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008746/0.3239, allocations: 1.006 MB / 1.103 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.324, allocations: 167.6 kB / 1.103 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.868e-05/0.3241, allocations: 0 / 1.103 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.3243, allocations: 4 kB / 1.103 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.3243, allocations: 11.98 kB / 1.103 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.3244, allocations: 11.98 kB / 1.103 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007421/0.3251, allocations: 0.7299 MB / 1.104 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3251, allocations: 4 kB / 1.104 GB, free: 4.594 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001406/0.3265, allocations: 0.5857 MB / 1.105 GB, free: 4.008 MB / 0.8575 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.001828/0.3284, allocations: 0.6899 MB / 1.105 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002179/0.3306, allocations: 2.548 MB / 1.108 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3306, allocations: 4 kB / 1.108 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000324/0.3309, allocations: 343.9 kB / 1.108 GB, free: 436 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.3313, allocations: 56.64 kB / 1.108 GB, free: 380 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.3335, allocations: 2.062 MB / 1.11 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.334, allocations: 0.9881 MB / 1.111 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001864/0.3342, allocations: 37.42 kB / 1.111 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3343, allocations: 27.42 kB / 1.111 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of SimCode: time 4.21e-07/0.3343, allocations: 0 / 1.111 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of Templates: time 0.02146/0.3557, allocations: 13.89 MB / 1.125 GB, free: 15.35 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) 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) Reference file matches