Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.007767/0.007767, allocations: 100.9 kB / 15.73 MB, free: 6.039 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.001811/0.001811, allocations: 199 kB / 16.68 MB, free: 5.965 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.626/2.626, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 67.89 kB / 1.019 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2853, allocations: 151.6 MB / 1.167 GB, free: 6.734 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002969/0.2883, allocations: 1.75 MB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0079/0.2962, allocations: 5.398 MB / 1.174 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2964, allocations: 4 kB / 1.174 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.2977, allocations: 370.4 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.2979, allocations: 63.66 kB / 1.174 GB, free: 15.11 MB / 0.9356 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.00437/0.3023, allocations: 1.5 MB / 1.176 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.3026, allocations: 155.4 kB / 1.176 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.492e-05/0.3027, allocations: 13.55 kB / 1.176 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.3028, allocations: 67.64 kB / 1.176 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.3031, allocations: 163.5 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.135e-05/0.3031, allocations: 16 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003502/0.3066, allocations: 2.208 MB / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002452/0.3069, allocations: 283.8 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002428/0.3072, allocations: 306.1 kB / 1.179 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002957/0.3101, allocations: 2.192 MB / 1.181 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3101, allocations: 0 / 1.181 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.983e-06/0.3101, allocations: 0 / 1.181 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.927e-06/0.3102, allocations: 0 / 1.181 GB, free: 8.211 MB / 0.9356 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.008287/0.3185, allocations: 1.414 MB / 1.182 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.3185, allocations: 12.03 kB / 1.182 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004178/0.3189, allocations: 96.2 kB / 1.182 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.3195, allocations: 410.4 kB / 1.183 GB, free: 6.188 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3195, allocations: 8.359 kB / 1.183 GB, free: 6.18 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.3196, allocations: 4.375 kB / 1.183 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004169/0.32, allocations: 403.4 kB / 1.183 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.32, allocations: 0 / 1.183 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.32, allocations: 0 / 1.183 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.32, allocations: 4 kB / 1.183 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.3205, allocations: 431.7 kB / 1.183 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000622/0.3211, allocations: 0.6776 MB / 1.184 GB, free: 4.617 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.3216, allocations: 0.5633 MB / 1.185 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003067/0.3219, allocations: 333.7 kB / 1.185 GB, free: 3.703 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/0.323, allocations: 1.028 MB / 1.186 GB, free: 2.453 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.3234, allocations: 412.7 kB / 1.186 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.3234, allocations: 0 / 1.186 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.001329/0.3247, allocations: 1.309 MB / 1.188 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.3248, allocations: 81.11 kB / 1.188 GB, free: 0.6172 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.326, allocations: 1.294 MB / 1.189 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/0.3261, allocations: 29.7 kB / 1.189 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.3263, allocations: 293.9 kB / 1.189 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.3263, allocations: 23.83 kB / 1.189 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000314/0.3266, allocations: 351.8 kB / 1.19 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3268, allocations: 318 kB / 1.19 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.328, allocations: 1.369 MB / 1.191 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.3293, allocations: 1.511 MB / 1.193 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00706/0.3364, allocations: 3.564 MB / 1.196 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3364, allocations: 0 / 1.196 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004309/0.3407, allocations: 4.019 MB / 1.2 GB, free: 3.695 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.3408, allocations: 4 kB / 1.2 GB, free: 3.691 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/0.3408, allocations: 4 kB / 1.2 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.3408, allocations: 0 / 1.2 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.341, allocations: 23.95 kB / 1.2 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.341, allocations: 0 / 1.2 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005151/0.3415, allocations: 241.4 kB / 1.2 GB, free: 3.426 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.026e-05/0.3416, allocations: 23.98 kB / 1.201 GB, free: 3.402 MB / 0.9512 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.0003216/0.3419, allocations: 245.6 kB / 1.201 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.342, allocations: 83.22 kB / 1.201 GB, free: 3.07 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.3423, allocations: 87.75 kB / 1.201 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3423, allocations: 0 / 1.201 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3423, allocations: 0 / 1.201 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3423, allocations: 4 kB / 1.201 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004424/0.3428, allocations: 0.514 MB / 1.201 GB, free: 2.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3428, allocations: 0 / 1.201 GB, free: 2.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.981e-05/0.3428, allocations: 11.94 kB / 1.201 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3429, allocations: 0 / 1.201 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.3429, allocations: 11.98 kB / 1.201 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3429, allocations: 0 / 1.201 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3429, allocations: 4.031 kB / 1.201 GB, free: 2.383 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008855/0.3438, allocations: 1.006 MB / 1.202 GB, free: 1.355 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.3439, allocations: 172.3 kB / 1.203 GB, free: 1.168 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.819e-05/0.344, allocations: 8 kB / 1.203 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.3441, allocations: 15.98 kB / 1.203 GB, free: 1.145 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.3442, allocations: 3.984 kB / 1.203 GB, free: 1.141 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.3442, allocations: 11.98 kB / 1.203 GB, free: 1.129 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007666/0.345, allocations: 0.7299 MB / 1.203 GB, free: 404 kB / 0.9512 GB Notification: Performance of sort global known variables: time 3.2e-07/0.345, allocations: 0 / 1.203 GB, free: 404 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.00156/0.3466, allocations: 0.5884 MB / 1.204 GB, free: 15.8 MB / 0.9669 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.001734/0.3483, allocations: 0.6985 MB / 1.205 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002373/0.3507, allocations: 2.552 MB / 1.207 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3507, allocations: 0 / 1.207 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003262/0.3511, allocations: 335.8 kB / 1.207 GB, free: 12.22 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.3515, allocations: 71.17 kB / 1.207 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.3537, allocations: 1.892 MB / 1.209 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.3542, allocations: 0.9839 MB / 1.21 GB, free: 9.219 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000151/0.3544, allocations: 41.42 kB / 1.21 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.3545, allocations: 31.36 kB / 1.21 GB, free: 9.148 MB / 0.9669 GB Notification: Performance of SimCode: time 9.42e-07/0.3545, allocations: 0 / 1.21 GB, free: 9.148 MB / 0.9669 GB Notification: Performance of Templates: time 0.02256/0.3771, allocations: 14.18 MB / 1.224 GB, free: 11.02 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches