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.00482/0.00482, allocations: 102.1 kB / 15.73 MB, free: 5.555 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.001054/0.001054, allocations: 194.5 kB / 16.67 MB, free: 5.484 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.356/1.356, 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 12.0.0-master/package.mo): time 2.7/2.7, allocations: 472.6 MB / 0.7453 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 67.84 kB / 1.07 GB, free: 9.176 MB / 0.8263 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2845, allocations: 159.9 MB / 1.226 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002381/0.2869, allocations: 1.429 MB / 1.227 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005899/0.2929, allocations: 4.204 MB / 1.231 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.923e-05/0.2929, allocations: 0 / 1.231 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.2931, allocations: 15.86 kB / 1.231 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.2933, allocations: 35.77 kB / 1.231 GB, free: 3.449 MB / 0.9825 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.003579/0.2969, allocations: 1.496 MB / 1.233 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000152/0.2971, allocations: 95.66 kB / 1.233 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.753e-05/0.2971, allocations: 7.984 kB / 1.233 GB, free: 1.852 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.464e-05/0.2972, allocations: 51.83 kB / 1.233 GB, free: 1.801 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.2974, allocations: 147.6 kB / 1.233 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.551e-05/0.2975, allocations: 16 kB / 1.233 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.3007, allocations: 2.204 MB / 1.235 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.301, allocations: 271.8 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.3012, allocations: 278.3 kB / 1.236 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002678/0.3039, allocations: 2.118 MB / 1.238 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3039, allocations: 4 kB / 1.238 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3039, allocations: 0 / 1.238 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.3039, allocations: 0 / 1.238 GB, free: 12.76 MB / 0.9981 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.01029/0.3142, allocations: 1.343 MB / 1.239 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3143, allocations: 16.03 kB / 1.239 GB, free: 11.35 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003821/0.3147, allocations: 88.25 kB / 1.239 GB, free: 11.26 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.315, allocations: 365.1 kB / 1.239 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.3151, allocations: 4.359 kB / 1.239 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.3151, allocations: 12.31 kB / 1.239 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004258/0.3155, allocations: 391.5 kB / 1.24 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.3156, allocations: 4 kB / 1.24 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.3156, allocations: 4 kB / 1.24 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.3156, allocations: 3.984 kB / 1.24 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004141/0.316, allocations: 431.8 kB / 1.24 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005491/0.3166, allocations: 0.6409 MB / 1.241 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.3171, allocations: 0.5594 MB / 1.241 GB, free: 8.742 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.3174, allocations: 337.7 kB / 1.242 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009934/0.3184, allocations: 1.028 MB / 1.243 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000386/0.3188, allocations: 412.8 kB / 1.243 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 3.036e-06/0.3188, allocations: 0 / 1.243 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001266/0.3201, allocations: 1.301 MB / 1.244 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.3201, allocations: 81.11 kB / 1.245 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.3212, allocations: 1.223 MB / 1.246 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.3213, allocations: 25.7 kB / 1.246 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.3215, allocations: 265.9 kB / 1.246 GB, free: 3.793 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.3215, allocations: 23.78 kB / 1.246 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003188/0.3218, allocations: 355.6 kB / 1.246 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.322, allocations: 310 kB / 1.247 GB, free: 3.109 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.3232, allocations: 1.377 MB / 1.248 GB, free: 1.73 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.3244, allocations: 1.497 MB / 1.249 GB, free: 228 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5546/0.8791, allocations: 3.557 MB / 1.253 GB, free: 25.84 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.8791, allocations: 1.125 kB / 1.253 GB, free: 25.84 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004246/0.8833, allocations: 4.011 MB / 1.257 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.8834, allocations: 7.531 kB / 1.257 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.8834, allocations: 2.625 kB / 1.257 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.8834, allocations: 0.7969 kB / 1.257 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.8836, allocations: 18.2 kB / 1.257 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.8836, allocations: 2.625 kB / 1.257 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004372/0.8841, allocations: 244.6 kB / 1.257 GB, free: 24.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.8841, allocations: 23.16 kB / 1.257 GB, free: 24.7 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.000267/0.8844, allocations: 241.8 kB / 1.257 GB, free: 24.59 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.8844, allocations: 71.7 kB / 1.257 GB, free: 24.53 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000288/0.8847, allocations: 82.12 kB / 1.258 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.8848, allocations: 3.25 kB / 1.258 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.8848, allocations: 0.75 kB / 1.258 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.8848, allocations: 4.203 kB / 1.258 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000357/0.8851, allocations: 499.6 kB / 1.258 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.8852, allocations: 2.688 kB / 1.258 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.884e-05/0.8852, allocations: 11.19 kB / 1.258 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.8852, allocations: 1.75 kB / 1.258 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.8853, allocations: 4.625 kB / 1.258 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.8853, allocations: 0.75 kB / 1.258 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8853, allocations: 3.844 kB / 1.258 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007706/0.886, allocations: 1.006 MB / 1.259 GB, free: 24.16 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.443e-05/0.8861, allocations: 163.1 kB / 1.259 GB, free: 24.01 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.85e-05/0.8862, allocations: 6.219 kB / 1.259 GB, free: 24.01 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.8863, allocations: 2.781 kB / 1.259 GB, free: 24.01 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.8864, allocations: 9.719 kB / 1.259 GB, free: 24.01 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/0.8864, allocations: 14.64 kB / 1.259 GB, free: 24.01 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005926/0.887, allocations: 0.676 MB / 1.26 GB, free: 23.86 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.887, allocations: 0 / 1.26 GB, free: 23.86 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001265/0.8883, allocations: 0.5844 MB / 1.26 GB, free: 23.79 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.001601/0.8899, allocations: 0.6983 MB / 1.261 GB, free: 23.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002385/0.8923, allocations: 2.556 MB / 1.264 GB, free: 22.57 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.8923, allocations: 0 / 1.264 GB, free: 22.57 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.8927, allocations: 342.5 kB / 1.264 GB, free: 22.57 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.893, allocations: 33.39 kB / 1.264 GB, free: 22.54 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.8956, allocations: 1.774 MB / 1.266 GB, free: 21.96 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.8961, allocations: 0.9679 MB / 1.267 GB, free: 21.27 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001423/0.8962, allocations: 36.56 kB / 1.267 GB, free: 21.26 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.8963, allocations: 26.58 kB / 1.267 GB, free: 21.25 MB / 0.9981 GB Notification: Performance of SimCode: time 4.91e-07/0.8963, allocations: 0 / 1.267 GB, free: 21.25 MB / 0.9981 GB Notification: Performance of Templates: time 0.02479/0.9211, allocations: 13.56 MB / 1.28 GB, free: 20.45 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