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_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_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_latest_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.001324/0.001324, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001531/0.001531, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.342/1.342, allocations: 222.9 MB / 239.9 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.742/2.742, allocations: 472.7 MB / 0.7449 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 71.39 kB / 0.9116 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2591, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00285/0.262, allocations: 1.497 MB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006/0.268, allocations: 4.223 MB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.264e-05/0.2681, allocations: 0 / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.2682, allocations: 7.922 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.2684, allocations: 31.84 kB / 1.073 GB, free: 5 MB / 0.8262 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 12.0.0-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.003612/0.2721, allocations: 1.361 MB / 1.075 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.2722, allocations: 91.69 kB / 1.075 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.829e-05/0.2723, allocations: 11.97 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.719e-05/0.2724, allocations: 43.84 kB / 1.075 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.2726, allocations: 164.9 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.2727, allocations: 12 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003111/0.2758, allocations: 2.196 MB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.276, allocations: 275.8 kB / 1.077 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.2763, allocations: 278.3 kB / 1.078 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003014/0.2793, allocations: 2.112 MB / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2794, allocations: 0 / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2794, allocations: 0 / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.993e-05/0.2794, allocations: 4 kB / 1.08 GB, free: 14.46 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.009838/0.2892, allocations: 1.296 MB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2893, allocations: 12.02 kB / 1.081 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004031/0.2897, allocations: 87.59 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.2901, allocations: 369 kB / 1.081 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-06/0.2901, allocations: 4.375 kB / 1.081 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.2902, allocations: 8.375 kB / 1.082 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004399/0.2906, allocations: 395.5 kB / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2906, allocations: 0 / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.2906, allocations: 0 / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2907, allocations: 0 / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004308/0.2911, allocations: 439.7 kB / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005778/0.2917, allocations: 0.6366 MB / 1.083 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.2922, allocations: 0.5595 MB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.2925, allocations: 337.6 kB / 1.084 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001038/0.2936, allocations: 1.028 MB / 1.085 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004049/0.294, allocations: 408.8 kB / 1.085 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 3.697e-06/0.294, allocations: 0 / 1.085 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001326/0.2953, allocations: 1.293 MB / 1.086 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.2954, allocations: 85.09 kB / 1.087 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.2966, allocations: 1.206 MB / 1.088 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.2966, allocations: 33.69 kB / 1.088 GB, free: 5.828 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.2968, allocations: 261.4 kB / 1.088 GB, free: 5.566 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/0.2969, allocations: 27.86 kB / 1.088 GB, free: 5.539 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/0.2972, allocations: 351.6 kB / 1.088 GB, free: 5.191 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.2973, allocations: 310 kB / 1.089 GB, free: 4.883 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.2986, allocations: 1.369 MB / 1.09 GB, free: 3.512 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.3, allocations: 1.514 MB / 1.091 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007234/0.3072, allocations: 3.561 MB / 1.095 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3072, allocations: 0 / 1.095 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004415/0.3117, allocations: 4.003 MB / 1.099 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3117, allocations: 4 kB / 1.099 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.3117, allocations: 4 kB / 1.099 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.3117, allocations: 0 / 1.099 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.3119, allocations: 20.02 kB / 1.099 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.3119, allocations: 0 / 1.099 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004792/0.3124, allocations: 236.2 kB / 1.099 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/0.3125, allocations: 31.97 kB / 1.099 GB, free: 10 MB / 0.8575 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.0003067/0.3128, allocations: 237.6 kB / 1.099 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.879e-05/0.3128, allocations: 70.72 kB / 1.099 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003166/0.3132, allocations: 71.08 kB / 1.099 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3132, allocations: 7.984 kB / 1.099 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3132, allocations: 0 / 1.099 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3132, allocations: 0 / 1.099 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000462/0.3137, allocations: 0.489 MB / 1.1 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3137, allocations: 7.938 kB / 1.1 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.843e-05/0.3138, allocations: 7.938 kB / 1.1 GB, free: 9.055 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3138, allocations: 3.938 kB / 1.1 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.3138, allocations: 12.02 kB / 1.1 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3138, allocations: 0 / 1.1 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3138, allocations: 0 / 1.1 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009159/0.3147, allocations: 0.9978 MB / 1.101 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.3149, allocations: 155.8 kB / 1.101 GB, free: 7.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.673e-05/0.3149, allocations: 8 kB / 1.101 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.3151, allocations: 0 / 1.101 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.115e-05/0.3151, allocations: 11.92 kB / 1.101 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.745e-05/0.3152, allocations: 15.98 kB / 1.101 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007268/0.3159, allocations: 0.6728 MB / 1.102 GB, free: 7.133 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3159, allocations: 0 / 1.102 GB, free: 7.133 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001476/0.3174, allocations: 0.574 MB / 1.102 GB, free: 6.559 MB / 0.8575 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.002213/0.3196, allocations: 0.692 MB / 1.103 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002331/0.322, allocations: 2.548 MB / 1.106 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.322, allocations: 0 / 1.106 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003382/0.3223, allocations: 347.7 kB / 1.106 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.3226, allocations: 48.52 kB / 1.106 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.3248, allocations: 1.924 MB / 1.108 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005648/0.3254, allocations: 0.964 MB / 1.109 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001771/0.3256, allocations: 36.55 kB / 1.109 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.3257, allocations: 27.42 kB / 1.109 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of SimCode: time 3.01e-07/0.3257, allocations: 0 / 1.109 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of Templates: time 0.02289/0.3486, allocations: 13.53 MB / 1.122 GB, free: 2.418 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches