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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001399/0.001399, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001443/0.001443, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.431/1.431, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.689/2.689, allocations: 461.9 MB / 0.7354 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 67.91 kB / 1.055 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8783/0.8796, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003131/0.8828, allocations: 1.761 MB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007851/0.8907, allocations: 5.391 MB / 1.215 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.8909, allocations: 0 / 1.215 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.8922, allocations: 367.3 kB / 1.216 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.8923, allocations: 63.66 kB / 1.216 GB, free: 5.977 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 11.0.1-master/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.004116/0.8965, allocations: 1.488 MB / 1.217 GB, free: 4.488 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.8968, allocations: 163.3 kB / 1.217 GB, free: 4.328 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.694e-05/0.8968, allocations: 13.56 kB / 1.218 GB, free: 4.316 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.125e-05/0.8969, allocations: 59.77 kB / 1.218 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.8972, allocations: 163.5 kB / 1.218 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.585e-05/0.8972, allocations: 16 kB / 1.218 GB, free: 4.082 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003574/0.9008, allocations: 2.208 MB / 1.22 GB, free: 1.871 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.9011, allocations: 283.8 kB / 1.22 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.9014, allocations: 306.1 kB / 1.22 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003421/0.9048, allocations: 2.178 MB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.9048, allocations: 0 / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.597e-06/0.9048, allocations: 0 / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.9048, allocations: 3.938 kB / 1.223 GB, free: 15.1 MB / 0.9512 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.01064/0.9155, allocations: 1.37 MB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.9156, allocations: 11.97 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004349/0.916, allocations: 95.59 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006288/0.9166, allocations: 410.2 kB / 1.224 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.9167, allocations: 8.375 kB / 1.224 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.9167, allocations: 8.359 kB / 1.224 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004543/0.9172, allocations: 391.4 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.9172, allocations: 0 / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.9172, allocations: 4 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.9172, allocations: 0 / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.9177, allocations: 439.7 kB / 1.225 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006755/0.9184, allocations: 0.6693 MB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005677/0.919, allocations: 0.5712 MB / 1.226 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.9193, allocations: 333.6 kB / 1.227 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001108/0.9204, allocations: 1.025 MB / 1.228 GB, free: 9.395 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004373/0.9209, allocations: 412.8 kB / 1.228 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.9209, allocations: 0 / 1.228 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.001443/0.9223, allocations: 1.293 MB / 1.229 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.9224, allocations: 93.16 kB / 1.23 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.9237, allocations: 1.293 MB / 1.231 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.9238, allocations: 29.7 kB / 1.231 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.924, allocations: 281.4 kB / 1.231 GB, free: 5.941 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/0.9241, allocations: 27.72 kB / 1.231 GB, free: 5.914 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003273/0.9244, allocations: 351.6 kB / 1.231 GB, free: 5.566 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.9245, allocations: 322 kB / 1.232 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.9258, allocations: 1.373 MB / 1.233 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.9272, allocations: 1.503 MB / 1.235 GB, free: 2.359 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007163/0.9343, allocations: 3.553 MB / 1.238 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.9344, allocations: 4 kB / 1.238 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00484/0.9392, allocations: 4.018 MB / 1.242 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.9393, allocations: 8 kB / 1.242 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/0.9393, allocations: 0 / 1.242 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.9393, allocations: 4 kB / 1.242 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.9395, allocations: 23.92 kB / 1.242 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.9395, allocations: 0 / 1.242 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006052/0.9401, allocations: 228.3 kB / 1.242 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.9402, allocations: 23.98 kB / 1.242 GB, free: 10.37 MB / 0.9669 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.0003934/0.9406, allocations: 249.7 kB / 1.242 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.553e-05/0.9407, allocations: 78.61 kB / 1.243 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.941, allocations: 79.77 kB / 1.243 GB, free: 9.953 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.941, allocations: 4 kB / 1.243 GB, free: 9.949 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.941, allocations: 3.984 kB / 1.243 GB, free: 9.945 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.941, allocations: 32 / 1.243 GB, free: 9.945 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000541/0.9416, allocations: 0.518 MB / 1.243 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.9416, allocations: 0 / 1.243 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.973e-05/0.9417, allocations: 7.938 kB / 1.243 GB, free: 9.375 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.9417, allocations: 0 / 1.243 GB, free: 9.375 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.9417, allocations: 11.92 kB / 1.243 GB, free: 9.363 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.9417, allocations: 0 / 1.243 GB, free: 9.363 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.9417, allocations: 0 / 1.243 GB, free: 9.363 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009619/0.9427, allocations: 1.01 MB / 1.244 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.9428, allocations: 167.6 kB / 1.244 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.927e-05/0.9429, allocations: 0 / 1.244 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.943, allocations: 7.938 kB / 1.244 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.9431, allocations: 11.98 kB / 1.244 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/0.9431, allocations: 11.98 kB / 1.244 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0008666/0.944, allocations: 0.7261 MB / 1.245 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of sort global known variables: time 4.5e-07/0.944, allocations: 0 / 1.245 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001885/0.9459, allocations: 0.5818 MB / 1.246 GB, free: 6.805 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.002016/0.9479, allocations: 0.6937 MB / 1.246 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002638/0.9506, allocations: 2.548 MB / 1.249 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.9506, allocations: 0 / 1.249 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000386/0.951, allocations: 343.7 kB / 1.249 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.9515, allocations: 61.3 kB / 1.249 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.954, allocations: 1.906 MB / 1.251 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000657/0.9547, allocations: 0.9879 MB / 1.252 GB, free: 208 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.9549, allocations: 27.42 kB / 1.252 GB, free: 180 kB / 0.9669 GB Notification: Performance of SimCode: time 5.21e-07/0.9549, allocations: 0 / 1.252 GB, free: 180 kB / 0.9669 GB Notification: Performance of Templates: time 0.02326/0.9781, allocations: 14.49 MB / 1.266 GB, free: 1.699 MB / 0.9825 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/jenkins1/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) "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time