Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001547/0.001547, allocations: 101.6 kB / 15.99 MB, free: 6.367 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.001635/0.001635, allocations: 195.6 kB / 16.91 MB, free: 6.195 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.347/1.347, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.588/2.588, allocations: 469.8 MB / 0.7427 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 68.08 kB / 0.9088 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3262, allocations: 159.1 MB / 1.064 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002991/0.3292, allocations: 1.486 MB / 1.066 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.006808/0.3361, allocations: 4.227 MB / 1.07 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.258e-05/0.3362, allocations: 0 / 1.07 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.3364, allocations: 7.922 kB / 1.07 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.3366, allocations: 35.84 kB / 1.07 GB, free: 9.312 MB / 0.8419 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.1.0-maint.11.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.003905/0.3405, allocations: 1.349 MB / 1.071 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.3407, allocations: 91.69 kB / 1.071 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.406e-05/0.3407, allocations: 0 / 1.071 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.064e-05/0.3408, allocations: 55.77 kB / 1.071 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.3411, allocations: 153 kB / 1.071 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.3411, allocations: 16 kB / 1.071 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003122/0.3443, allocations: 2.196 MB / 1.074 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002394/0.3445, allocations: 263.9 kB / 1.074 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002621/0.3448, allocations: 286.3 kB / 1.074 GB, free: 4.914 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002015/0.3468, allocations: 1.462 MB / 1.076 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3468, allocations: 0 / 1.076 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.817e-06/0.3468, allocations: 0 / 1.076 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.485e-05/0.3469, allocations: 11.88 kB / 1.076 GB, free: 3.438 MB / 0.8419 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.008842/0.3557, allocations: 1.289 MB / 1.077 GB, free: 2.098 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.3558, allocations: 12.03 kB / 1.077 GB, free: 2.086 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004005/0.3562, allocations: 91.69 kB / 1.077 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004172/0.3566, allocations: 353 kB / 1.077 GB, free: 1.602 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.3566, allocations: 12.36 kB / 1.077 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.196e-05/0.3567, allocations: 8.359 kB / 1.077 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004791/0.3572, allocations: 391.5 kB / 1.078 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.3572, allocations: 0 / 1.078 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.3572, allocations: 4 kB / 1.078 GB, free: 1.184 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.3572, allocations: 4 kB / 1.078 GB, free: 1.18 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.3577, allocations: 435.7 kB / 1.078 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.3583, allocations: 0.6443 MB / 1.079 GB, free: 60 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5176/0.8759, allocations: 0.5559 MB / 1.079 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.8765, allocations: 335.5 kB / 1.08 GB, free: 21.6 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001062/0.8776, allocations: 1.028 MB / 1.081 GB, free: 20.48 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006155/0.8782, allocations: 409 kB / 1.081 GB, free: 20.41 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 2.876e-06/0.8782, allocations: 0 / 1.081 GB, free: 20.41 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001947/0.8802, allocations: 1.293 MB / 1.082 GB, free: 20.35 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.8802, allocations: 84.08 kB / 1.082 GB, free: 20.26 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.8817, allocations: 1.207 MB / 1.083 GB, free: 20.04 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.141e-05/0.8818, allocations: 31.48 kB / 1.083 GB, free: 20.01 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.882, allocations: 261.5 kB / 1.084 GB, free: 19.88 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.018e-05/0.8821, allocations: 29.19 kB / 1.084 GB, free: 19.86 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004394/0.8825, allocations: 354.1 kB / 1.084 GB, free: 19.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 6.385e-05/0.8826, allocations: 313.5 kB / 1.084 GB, free: 19.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.8844, allocations: 1.37 MB / 1.086 GB, free: 19.07 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.8864, allocations: 1.51 MB / 1.087 GB, free: 18.54 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008316/0.8947, allocations: 3.558 MB / 1.091 GB, free: 16.7 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.8948, allocations: 0 / 1.091 GB, free: 16.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004684/0.8995, allocations: 4.001 MB / 1.095 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.8995, allocations: 5.906 kB / 1.095 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.8996, allocations: 1.875 kB / 1.095 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.8996, allocations: 1.75 kB / 1.095 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.8997, allocations: 17.06 kB / 1.095 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.8997, allocations: 3.641 kB / 1.095 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005319/0.9003, allocations: 231.7 kB / 1.095 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/0.9003, allocations: 22.52 kB / 1.095 GB, free: 14.54 MB / 0.8419 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.0003253/0.9007, allocations: 251.1 kB / 1.095 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.017e-05/0.9007, allocations: 63.8 kB / 1.095 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002859/0.901, allocations: 72.14 kB / 1.095 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.901, allocations: 2.25 kB / 1.095 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.901, allocations: 1.953 kB / 1.095 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.9011, allocations: 5.609 kB / 1.095 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.9015, allocations: 0.4983 MB / 1.096 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.9015, allocations: 1.062 kB / 1.096 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.786e-05/0.9016, allocations: 7.797 kB / 1.096 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.9016, allocations: 1.188 kB / 1.096 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.9016, allocations: 3.812 kB / 1.096 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.9016, allocations: 0.6094 kB / 1.096 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.9016, allocations: 5.25 kB / 1.096 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.9028, allocations: 1.002 MB / 1.097 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.53e-05/0.9029, allocations: 151.4 kB / 1.097 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.464e-05/0.9029, allocations: 4.391 kB / 1.097 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.9031, allocations: 7.969 kB / 1.097 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.33e-05/0.9031, allocations: 10.31 kB / 1.097 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/0.9032, allocations: 11.94 kB / 1.097 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0009049/0.9041, allocations: 0.672 MB / 1.098 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9041, allocations: 0 / 1.098 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001912/0.906, allocations: 0.5715 MB / 1.098 GB, free: 13.47 MB / 0.8419 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.001897/0.9079, allocations: 0.7055 MB / 1.099 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002541/0.9105, allocations: 2.55 MB / 1.101 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.9105, allocations: 0 / 1.101 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003846/0.9109, allocations: 339.5 kB / 1.102 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.9113, allocations: 51.95 kB / 1.102 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.9135, allocations: 1.97 MB / 1.104 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.914, allocations: 0.9655 MB / 1.105 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.9141, allocations: 25.92 kB / 1.105 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of SimCode: time 9.71e-07/0.9141, allocations: 0 / 1.105 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.02901/0.9431, allocations: 13.81 MB / 1.118 GB, free: 9.02 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches