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 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_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.007019/0.007019, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001662/0.001663, allocations: 195 kB / 16.68 MB, free: 6.375 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.764/2.764, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 67.89 kB / 1.054 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.281, allocations: 157.4 MB / 1.208 GB, free: 9.551 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002455/0.2835, allocations: 1.416 MB / 1.209 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.006137/0.2896, allocations: 4.211 MB / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.721e-05/0.2897, allocations: 0 / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.2899, allocations: 11.86 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002829/0.2902, allocations: 31.84 kB / 1.213 GB, free: 3.848 MB / 0.9669 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.003911/0.2941, allocations: 1.503 MB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.2943, allocations: 95.67 kB / 1.215 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.2943, allocations: 8 kB / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.967e-05/0.2944, allocations: 43.84 kB / 1.215 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.2946, allocations: 151.6 kB / 1.215 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.016e-05/0.2947, allocations: 12 kB / 1.215 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003199/0.2979, allocations: 2.208 MB / 1.217 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.2981, allocations: 271.8 kB / 1.218 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.2984, allocations: 274.3 kB / 1.218 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002917/0.3013, allocations: 2.116 MB / 1.22 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3013, allocations: 0 / 1.22 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3013, allocations: 0 / 1.22 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.3013, allocations: 4 kB / 1.22 GB, free: 13.16 MB / 0.9825 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.01075/0.3121, allocations: 1.3 MB / 1.221 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3121, allocations: 12.62 kB / 1.221 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004207/0.3126, allocations: 91.67 kB / 1.221 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004153/0.313, allocations: 357 kB / 1.222 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.313, allocations: 4.375 kB / 1.222 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.389e-05/0.3131, allocations: 4.375 kB / 1.222 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.3135, allocations: 403.4 kB / 1.222 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.3135, allocations: 0 / 1.222 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.3136, allocations: 8 kB / 1.222 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3136, allocations: 0 / 1.222 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004188/0.314, allocations: 427.8 kB / 1.222 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005858/0.3146, allocations: 0.6444 MB / 1.223 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/0.3151, allocations: 0.5595 MB / 1.224 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003186/0.3154, allocations: 341.6 kB / 1.224 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009763/0.3164, allocations: 1.021 MB / 1.225 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.3168, allocations: 408.8 kB / 1.225 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.412e-06/0.3169, allocations: 0 / 1.225 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.001335/0.3182, allocations: 1.293 MB / 1.227 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.3183, allocations: 89.17 kB / 1.227 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.3194, allocations: 1.21 MB / 1.228 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.3195, allocations: 33.62 kB / 1.228 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.3197, allocations: 265.4 kB / 1.228 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.3197, allocations: 23.66 kB / 1.228 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003255/0.32, allocations: 351.6 kB / 1.228 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.146e-05/0.3201, allocations: 310 kB / 1.229 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.3213, allocations: 1.369 MB / 1.23 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.3227, allocations: 1.509 MB / 1.232 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00725/0.3299, allocations: 3.56 MB / 1.235 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3299, allocations: 0 / 1.235 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004564/0.3345, allocations: 4.003 MB / 1.239 GB, free: 9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3346, allocations: 4 kB / 1.239 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.3346, allocations: 4 kB / 1.239 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.3346, allocations: 0 / 1.239 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.3348, allocations: 19.92 kB / 1.239 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.3348, allocations: 4 kB / 1.239 GB, free: 8.969 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/0.3353, allocations: 228.3 kB / 1.239 GB, free: 8.742 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.3354, allocations: 23.98 kB / 1.239 GB, free: 8.719 MB / 0.9981 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.0003342/0.3357, allocations: 241.7 kB / 1.239 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.127e-05/0.3358, allocations: 70.7 kB / 1.239 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002812/0.3361, allocations: 78.95 kB / 1.24 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3361, allocations: 0 / 1.24 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3361, allocations: 0 / 1.24 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3361, allocations: 0 / 1.24 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000435/0.3366, allocations: 0.4931 MB / 1.24 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3366, allocations: 0 / 1.24 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.3367, allocations: 11.92 kB / 1.24 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3367, allocations: 7.984 kB / 1.24 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.3367, allocations: 0 / 1.24 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.3367, allocations: 3.984 kB / 1.24 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3367, allocations: 0 / 1.24 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009031/0.3376, allocations: 1.009 MB / 1.241 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.3377, allocations: 155.8 kB / 1.241 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.3378, allocations: 7.984 kB / 1.241 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.338, allocations: 4 kB / 1.241 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.338, allocations: 7.984 kB / 1.241 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/0.338, allocations: 11.98 kB / 1.241 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007228/0.3388, allocations: 0.6767 MB / 1.242 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3388, allocations: 0 / 1.242 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001616/0.3404, allocations: 0.5779 MB / 1.242 GB, free: 5.258 MB / 0.9981 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.002172/0.3426, allocations: 0.6952 MB / 1.243 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002315/0.3449, allocations: 2.544 MB / 1.246 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3449, allocations: 4.062 kB / 1.246 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.3453, allocations: 343.7 kB / 1.246 GB, free: 1.676 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.3456, allocations: 36.55 kB / 1.246 GB, free: 1.641 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.541/0.8866, allocations: 1.742 MB / 1.248 GB, free: 39.39 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004854/0.8871, allocations: 0.9649 MB / 1.249 GB, free: 38.69 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001935/0.8874, allocations: 33.81 kB / 1.249 GB, free: 38.69 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.8875, allocations: 28.34 kB / 1.249 GB, free: 38.69 MB / 0.9981 GB Notification: Performance of SimCode: time 1.092e-06/0.8875, allocations: 0 / 1.249 GB, free: 38.69 MB / 0.9981 GB Notification: Performance of Templates: time 0.02592/0.9134, allocations: 13.56 MB / 1.262 GB, free: 38.03 MB / 0.9981 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