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_1borehole_5meters.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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005081/0.005081, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001202/0.001202, allocations: 195.7 kB / 16.68 MB, free: 5.934 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.53/2.53, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 63.91 kB / 1.019 GB, free: 9.324 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.771/0.7723, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002747/0.7751, allocations: 1.432 MB / 1.168 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.007407/0.7825, allocations: 4.203 MB / 1.172 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.355e-05/0.7826, allocations: 0 / 1.172 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.7828, allocations: 19.86 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.7831, allocations: 35.83 kB / 1.172 GB, free: 14.1 MB / 0.9044 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.00435/0.7875, allocations: 1.504 MB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.7876, allocations: 91.67 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.23e-05/0.7877, allocations: 4 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 7.708e-05/0.7878, allocations: 47.84 kB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.788, allocations: 139.6 kB / 1.174 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.7881, allocations: 20 kB / 1.174 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003578/0.7916, allocations: 2.208 MB / 1.176 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002132/0.7919, allocations: 267.8 kB / 1.176 GB, free: 9.82 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002403/0.7921, allocations: 278.3 kB / 1.177 GB, free: 9.547 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.7954, allocations: 2.134 MB / 1.179 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.7954, allocations: 0 / 1.179 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7955, allocations: 4 kB / 1.179 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.952e-05/0.7955, allocations: 0 / 1.179 GB, free: 7.414 MB / 0.9044 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.01072/0.8062, allocations: 1.342 MB / 1.18 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.8063, allocations: 8.031 kB / 1.18 GB, free: 6.012 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004182/0.8067, allocations: 96.23 kB / 1.18 GB, free: 5.918 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.8071, allocations: 361 kB / 1.181 GB, free: 5.516 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.8072, allocations: 12.38 kB / 1.181 GB, free: 5.504 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.8072, allocations: 4.375 kB / 1.181 GB, free: 5.5 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.8077, allocations: 395.4 kB / 1.181 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.8078, allocations: 0 / 1.181 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.8078, allocations: 0 / 1.181 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.8078, allocations: 3.938 kB / 1.181 GB, free: 5.098 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000479/0.8083, allocations: 435.8 kB / 1.181 GB, free: 4.672 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006375/0.8089, allocations: 0.6449 MB / 1.182 GB, free: 3.977 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005954/0.8095, allocations: 0.5633 MB / 1.183 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.8099, allocations: 333.7 kB / 1.183 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001258/0.8112, allocations: 1.028 MB / 1.184 GB, free: 1.812 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004501/0.8116, allocations: 408.8 kB / 1.184 GB, free: 1.395 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 2.685e-06/0.8116, allocations: 4 kB / 1.184 GB, free: 1.391 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.001613/0.8133, allocations: 1.293 MB / 1.185 GB, free: 88 kB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.8134, allocations: 81.09 kB / 1.186 GB, free: 15.99 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.8147, allocations: 1.219 MB / 1.187 GB, free: 14.75 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.454e-05/0.8147, allocations: 33.7 kB / 1.187 GB, free: 14.71 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.8149, allocations: 270 kB / 1.187 GB, free: 14.45 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.754e-05/0.815, allocations: 23.8 kB / 1.187 GB, free: 14.42 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003265/0.8153, allocations: 347.6 kB / 1.187 GB, free: 14.08 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.8154, allocations: 322 kB / 1.188 GB, free: 13.76 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.8166, allocations: 1.369 MB / 1.189 GB, free: 12.39 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.818, allocations: 1.505 MB / 1.191 GB, free: 10.87 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007747/0.8258, allocations: 3.56 MB / 1.194 GB, free: 7.219 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.8258, allocations: 3.938 kB / 1.194 GB, free: 7.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004451/0.8302, allocations: 4.007 MB / 1.198 GB, free: 3.172 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.8303, allocations: 4 kB / 1.198 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.8303, allocations: 4 kB / 1.198 GB, free: 3.164 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.8303, allocations: 4.031 kB / 1.198 GB, free: 3.16 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.8305, allocations: 19.92 kB / 1.198 GB, free: 3.141 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.8305, allocations: 0 / 1.198 GB, free: 3.141 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005909/0.8311, allocations: 237.4 kB / 1.198 GB, free: 2.906 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.8312, allocations: 31.95 kB / 1.198 GB, free: 2.875 MB / 0.92 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.0002965/0.8315, allocations: 237.7 kB / 1.198 GB, free: 2.633 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.538e-05/0.8316, allocations: 79.22 kB / 1.198 GB, free: 2.555 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002805/0.8319, allocations: 79.02 kB / 1.199 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.8319, allocations: 4 kB / 1.199 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.8319, allocations: 4 kB / 1.199 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.8319, allocations: 0 / 1.199 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004229/0.8323, allocations: 492.9 kB / 1.199 GB, free: 1.93 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.8323, allocations: 3.984 kB / 1.199 GB, free: 1.926 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.662e-05/0.8324, allocations: 11.94 kB / 1.199 GB, free: 1.914 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.8324, allocations: 4.031 kB / 1.199 GB, free: 1.91 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.8325, allocations: 7.984 kB / 1.199 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.8325, allocations: 320 / 1.199 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.8325, allocations: 0 / 1.199 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009468/0.8334, allocations: 1.01 MB / 1.2 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.8336, allocations: 164.3 kB / 1.2 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.064e-05/0.8336, allocations: 7.984 kB / 1.2 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.8338, allocations: 4 kB / 1.2 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.8338, allocations: 7.984 kB / 1.2 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.22e-05/0.8339, allocations: 11.98 kB / 1.2 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0007543/0.8346, allocations: 0.6729 MB / 1.201 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8347, allocations: 0 / 1.201 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001634/0.8363, allocations: 0.5884 MB / 1.201 GB, free: 15.39 MB / 0.9356 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.00223/0.8385, allocations: 0.6857 MB / 1.202 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002377/0.8409, allocations: 2.555 MB / 1.205 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.8409, allocations: 0 / 1.205 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003453/0.8413, allocations: 343.7 kB / 1.205 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.8416, allocations: 44.67 kB / 1.205 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.8437, allocations: 1.766 MB / 1.207 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005614/0.8443, allocations: 0.9685 MB / 1.208 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001393/0.8444, allocations: 36.55 kB / 1.208 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.8445, allocations: 23.42 kB / 1.208 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of SimCode: time 1.603e-06/0.8445, allocations: 0 / 1.208 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of Templates: time 0.02291/0.8674, allocations: 13.55 MB / 1.221 GB, free: 11.39 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches