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.001641/0.001641, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001794/0.001794, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.481/1.481, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.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.63/2.63, allocations: 437.1 MB / 0.711 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.41 kB / 0.8699 GB, free: 2.125 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3697, allocations: 151.6 MB / 1.018 GB, free: 10.56 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003721/0.3735, allocations: 1.761 MB / 1.02 GB, free: 8.789 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008955/0.3825, allocations: 5.382 MB / 1.025 GB, free: 3.383 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.3827, allocations: 0 / 1.025 GB, free: 3.383 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.3842, allocations: 378.9 kB / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.3844, allocations: 59.66 kB / 1.025 GB, free: 2.953 MB / 0.795 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.004476/0.3889, allocations: 1.5 MB / 1.027 GB, free: 1.453 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.3892, allocations: 159.3 kB / 1.027 GB, free: 1.297 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 6.034e-05/0.3892, allocations: 13.55 kB / 1.027 GB, free: 1.281 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.089e-05/0.3893, allocations: 63.7 kB / 1.027 GB, free: 1.219 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.3896, allocations: 159.5 kB / 1.027 GB, free: 1.062 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.487e-05/0.3897, allocations: 16 kB / 1.027 GB, free: 1.047 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003821/0.3935, allocations: 2.153 MB / 1.029 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002924/0.3938, allocations: 287.7 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003234/0.3941, allocations: 310.1 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.004074/0.3982, allocations: 2.167 MB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3982, allocations: 0 / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3983, allocations: 3.938 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.3983, allocations: 4 kB / 1.032 GB, free: 12.12 MB / 0.8106 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.01085/0.4091, allocations: 1.359 MB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.4092, allocations: 12.92 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004341/0.4096, allocations: 99.59 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.4102, allocations: 406.2 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.4102, allocations: 4.375 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.219e-05/0.4103, allocations: 16.31 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004805/0.4108, allocations: 391.5 kB / 1.034 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.4108, allocations: 0 / 1.034 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.4108, allocations: 0 / 1.034 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.4108, allocations: 7.938 kB / 1.034 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004776/0.4113, allocations: 431.7 kB / 1.035 GB, free: 9.316 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007882/0.4121, allocations: 0.6692 MB / 1.035 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005951/0.4127, allocations: 0.5594 MB / 1.036 GB, free: 8.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003684/0.4131, allocations: 333.7 kB / 1.036 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00128/0.4144, allocations: 1.036 MB / 1.037 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000471/0.4149, allocations: 412.8 kB / 1.038 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 3.848e-06/0.4149, allocations: 4 kB / 1.038 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.001555/0.4164, allocations: 1.289 MB / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.4165, allocations: 85.09 kB / 1.039 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.418, allocations: 1.29 MB / 1.04 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.279e-05/0.418, allocations: 29.7 kB / 1.04 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.4183, allocations: 289.3 kB / 1.041 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.4184, allocations: 27.86 kB / 1.041 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003674/0.4187, allocations: 351.6 kB / 1.041 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4189, allocations: 318 kB / 1.041 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.4203, allocations: 1.369 MB / 1.043 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.4219, allocations: 1.505 MB / 1.044 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007543/0.4294, allocations: 3.568 MB / 1.047 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.4295, allocations: 0 / 1.047 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005203/0.4347, allocations: 4.006 MB / 1.051 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.4348, allocations: 7.984 kB / 1.051 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.522e-05/0.4348, allocations: 4 kB / 1.051 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.4348, allocations: 4.031 kB / 1.051 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.435, allocations: 12 kB / 1.051 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.435, allocations: 3.984 kB / 1.051 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006127/0.4356, allocations: 232.3 kB / 1.052 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.4357, allocations: 23.98 kB / 1.052 GB, free: 7.41 MB / 0.8262 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.0003746/0.4361, allocations: 245.6 kB / 1.052 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-05/0.4362, allocations: 78.53 kB / 1.052 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003233/0.4365, allocations: 83.81 kB / 1.052 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.4365, allocations: 0 / 1.052 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4365, allocations: 0 / 1.052 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.4365, allocations: 3.984 kB / 1.052 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000573/0.4371, allocations: 0.5178 MB / 1.053 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4371, allocations: 0 / 1.053 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.657e-05/0.4372, allocations: 15.94 kB / 1.053 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.4372, allocations: 0 / 1.053 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.4372, allocations: 12.02 kB / 1.053 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.4373, allocations: 7.938 kB / 1.053 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4373, allocations: 0 / 1.053 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.4384, allocations: 0.9978 MB / 1.054 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.4385, allocations: 163.7 kB / 1.054 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.078e-05/0.4386, allocations: 12 kB / 1.054 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.4388, allocations: 0 / 1.054 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.4388, allocations: 11.97 kB / 1.054 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.4389, allocations: 11.98 kB / 1.054 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0008926/0.4398, allocations: 0.7261 MB / 1.054 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.585e-06/0.4398, allocations: 3.938 kB / 1.054 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001815/0.4416, allocations: 0.5818 MB / 1.055 GB, free: 3.84 MB / 0.8262 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.002112/0.4437, allocations: 0.6827 MB / 1.056 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002901/0.4466, allocations: 2.564 MB / 1.058 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.4467, allocations: 0 / 1.058 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003934/0.4471, allocations: 339.8 kB / 1.059 GB, free: 268 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.4476, allocations: 68.94 kB / 1.059 GB, free: 204 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.4504, allocations: 1.937 MB / 1.061 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007127/0.4511, allocations: 0.9879 MB / 1.061 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.4513, allocations: 27.42 kB / 1.062 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of SimCode: time 1.012e-06/0.4513, allocations: 0 / 1.062 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.5603/1.012, allocations: 14.46 MB / 1.076 GB, free: 61.52 MB / 0.8419 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=400 -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/jenkins1/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) "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time