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.005143/0.005143, allocations: 102.8 kB / 15.73 MB, free: 6.004 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.001146/0.001146, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.537/2.537, allocations: 461.9 MB / 0.7348 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 72.11 kB / 1.054 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8014/0.8028, allocations: 157.4 MB / 1.208 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002674/0.8056, allocations: 1.757 MB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007298/0.8129, allocations: 5.385 MB / 1.215 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.813, allocations: 4 kB / 1.215 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.8142, allocations: 371.7 kB / 1.215 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.8143, allocations: 59.67 kB / 1.215 GB, free: 5.969 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.003492/0.8178, allocations: 1.49 MB / 1.217 GB, free: 4.477 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.8181, allocations: 163.3 kB / 1.217 GB, free: 4.316 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.829e-05/0.8181, allocations: 17.47 kB / 1.217 GB, free: 4.301 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.52e-05/0.8182, allocations: 59.78 kB / 1.217 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.8184, allocations: 159.5 kB / 1.217 GB, free: 4.086 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.581e-05/0.8185, allocations: 20 kB / 1.217 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002985/0.8215, allocations: 2.207 MB / 1.219 GB, free: 1.855 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002077/0.8217, allocations: 283.8 kB / 1.219 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002364/0.8219, allocations: 302.1 kB / 1.22 GB, free: 1.277 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.8245, allocations: 2.178 MB / 1.222 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.8246, allocations: 4 kB / 1.222 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.332e-06/0.8246, allocations: 4 kB / 1.222 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.345e-06/0.8246, allocations: 0 / 1.222 GB, free: 15.09 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.01127/0.8359, allocations: 1.366 MB / 1.223 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.8359, allocations: 8.031 kB / 1.223 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003915/0.8363, allocations: 91.59 kB / 1.223 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005494/0.8369, allocations: 422.1 kB / 1.224 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-06/0.8369, allocations: 384 / 1.224 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.8369, allocations: 8.375 kB / 1.224 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.8373, allocations: 391.5 kB / 1.224 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.8374, allocations: 7.938 kB / 1.224 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.8374, allocations: 0 / 1.224 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.8374, allocations: 0 / 1.224 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004212/0.8378, allocations: 443.7 kB / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005869/0.8384, allocations: 0.6654 MB / 1.225 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005024/0.8389, allocations: 0.5633 MB / 1.226 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.8392, allocations: 337.7 kB / 1.226 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009513/0.8402, allocations: 1.028 MB / 1.227 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.8406, allocations: 412.8 kB / 1.227 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.8406, allocations: 3.938 kB / 1.227 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.00128/0.8419, allocations: 1.289 MB / 1.229 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.842, allocations: 85.11 kB / 1.229 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.8432, allocations: 1.289 MB / 1.23 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.8432, allocations: 33.81 kB / 1.23 GB, free: 6.219 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.8434, allocations: 293.4 kB / 1.23 GB, free: 5.926 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.8435, allocations: 15.81 kB / 1.23 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003118/0.8438, allocations: 351.6 kB / 1.231 GB, free: 5.562 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.8439, allocations: 314 kB / 1.231 GB, free: 5.25 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.8451, allocations: 1.377 MB / 1.232 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/0.8464, allocations: 1.505 MB / 1.234 GB, free: 2.355 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006986/0.8534, allocations: 3.553 MB / 1.237 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.8534, allocations: 0 / 1.237 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004255/0.8576, allocations: 4.024 MB / 1.241 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.8577, allocations: 4 kB / 1.241 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.8577, allocations: 8.031 kB / 1.241 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.8577, allocations: 0 / 1.241 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.8579, allocations: 15.98 kB / 1.241 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.8579, allocations: 4 kB / 1.241 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/0.8584, allocations: 232.2 kB / 1.241 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.034e-05/0.8585, allocations: 27.98 kB / 1.242 GB, free: 10.36 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.0002983/0.8588, allocations: 245.6 kB / 1.242 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.8588, allocations: 82.62 kB / 1.242 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.8591, allocations: 75.81 kB / 1.242 GB, free: 9.949 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.8591, allocations: 0 / 1.242 GB, free: 9.949 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.8592, allocations: 4 kB / 1.242 GB, free: 9.945 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.8592, allocations: 0 / 1.242 GB, free: 9.945 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004382/0.8596, allocations: 0.5141 MB / 1.242 GB, free: 9.387 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.8596, allocations: 7.984 kB / 1.242 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.704e-05/0.8597, allocations: 19.89 kB / 1.242 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.8597, allocations: 0 / 1.242 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.8597, allocations: 8 kB / 1.242 GB, free: 9.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.8597, allocations: 0 / 1.242 GB, free: 9.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8597, allocations: 3.984 kB / 1.242 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008818/0.8606, allocations: 1.002 MB / 1.243 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.8608, allocations: 163.6 kB / 1.244 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.932e-05/0.8608, allocations: 3.984 kB / 1.244 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.861, allocations: 8 kB / 1.244 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.861, allocations: 7.984 kB / 1.244 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.8611, allocations: 15.92 kB / 1.244 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0007664/0.8618, allocations: 0.7222 MB / 1.244 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8618, allocations: 3.938 kB / 1.244 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001398/0.8632, allocations: 0.5818 MB / 1.245 GB, free: 6.797 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.001634/0.8649, allocations: 0.6893 MB / 1.246 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002219/0.8671, allocations: 2.548 MB / 1.248 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8671, allocations: 0 / 1.248 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.8675, allocations: 340.2 kB / 1.248 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.000385/0.8679, allocations: 72.67 kB / 1.248 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.87, allocations: 1.869 MB / 1.25 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/0.8705, allocations: 0.9839 MB / 1.251 GB, free: 244 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001389/0.8706, allocations: 45.42 kB / 1.251 GB, free: 196 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.951e-05/0.8707, allocations: 23.42 kB / 1.251 GB, free: 172 kB / 0.9669 GB Notification: Performance of SimCode: time 3.91e-07/0.8708, allocations: 0 / 1.251 GB, free: 172 kB / 0.9669 GB Notification: Performance of Templates: time 0.02161/0.8924, allocations: 14.3 MB / 1.265 GB, free: 1.93 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/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