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.004916/0.004916, allocations: 100.4 kB / 15.73 MB, free: 6.047 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.001158/0.001158, allocations: 186.1 kB / 16.67 MB, free: 5.977 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 461.9 MB / 0.7347 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 1.054 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.296, allocations: 157.4 MB / 1.208 GB, free: 9.586 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002403/0.2985, allocations: 1.424 MB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.006285/0.3048, allocations: 4.199 MB / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.816e-05/0.3048, allocations: 0 / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.305, allocations: 15.86 kB / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002623/0.3053, allocations: 31.84 kB / 1.213 GB, free: 3.883 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.003622/0.3089, allocations: 1.499 MB / 1.215 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.3091, allocations: 99.67 kB / 1.215 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.43e-05/0.3091, allocations: 4 kB / 1.215 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.955e-05/0.3092, allocations: 43.83 kB / 1.215 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.3094, allocations: 155.6 kB / 1.215 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/0.3095, allocations: 12 kB / 1.215 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00283/0.3123, allocations: 2.211 MB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.3125, allocations: 267.8 kB / 1.218 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.3127, allocations: 278.3 kB / 1.218 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002213/0.315, allocations: 2.108 MB / 1.22 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.315, allocations: 4 kB / 1.22 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.643e-06/0.315, allocations: 3.938 kB / 1.22 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.315, allocations: 0 / 1.22 GB, free: 13.2 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.01081/0.3258, allocations: 1.3 MB / 1.221 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/0.3259, allocations: 8.625 kB / 1.221 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003887/0.3263, allocations: 91.67 kB / 1.221 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/0.3267, allocations: 365 kB / 1.222 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.3268, allocations: 4.375 kB / 1.222 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.3268, allocations: 8.375 kB / 1.222 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004171/0.3272, allocations: 391.5 kB / 1.222 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.3272, allocations: 0 / 1.222 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3273, allocations: 0 / 1.222 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.3273, allocations: 4 kB / 1.222 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004099/0.3277, allocations: 435.7 kB / 1.222 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005533/0.3283, allocations: 0.6366 MB / 1.223 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.3287, allocations: 0.571 MB / 1.224 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.329, allocations: 337.7 kB / 1.224 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001033/0.3301, allocations: 1.025 MB / 1.225 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003793/0.3305, allocations: 412.8 kB / 1.225 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 2.836e-06/0.3305, allocations: 0 / 1.225 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.001278/0.3318, allocations: 1.289 MB / 1.227 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.3318, allocations: 85.05 kB / 1.227 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.3329, allocations: 1.214 MB / 1.228 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.333, allocations: 29.83 kB / 1.228 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.3332, allocations: 265.4 kB / 1.228 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.3332, allocations: 23.66 kB / 1.228 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.3336, allocations: 355.6 kB / 1.228 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.089e-05/0.3336, allocations: 314 kB / 1.229 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.3349, allocations: 1.365 MB / 1.23 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.3362, allocations: 1.509 MB / 1.232 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007287/0.3435, allocations: 3.557 MB / 1.235 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3435, allocations: 0 / 1.235 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004168/0.3477, allocations: 4.003 MB / 1.239 GB, free: 9.031 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.3477, allocations: 4 kB / 1.239 GB, free: 9.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.3478, allocations: 8.031 kB / 1.239 GB, free: 9.02 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3478, allocations: 0 / 1.239 GB, free: 9.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3479, allocations: 19.92 kB / 1.239 GB, free: 9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3479, allocations: 4 kB / 1.239 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/0.3484, allocations: 232.2 kB / 1.239 GB, free: 8.766 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.983e-05/0.3484, allocations: 23.98 kB / 1.239 GB, free: 8.742 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.000278/0.3487, allocations: 234.9 kB / 1.239 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.585e-05/0.3488, allocations: 78.7 kB / 1.239 GB, free: 8.426 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002714/0.3491, allocations: 78.95 kB / 1.24 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3491, allocations: 0 / 1.24 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3491, allocations: 0 / 1.24 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3491, allocations: 0 / 1.24 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003858/0.3495, allocations: 0.493 MB / 1.24 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3495, allocations: 0 / 1.24 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.041e-05/0.3496, allocations: 11.97 kB / 1.24 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3496, allocations: 0 / 1.24 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.3496, allocations: 15.98 kB / 1.24 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3496, allocations: 3.938 kB / 1.24 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3496, allocations: 0 / 1.24 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008568/0.3505, allocations: 0.9973 MB / 1.241 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.713e-05/0.3506, allocations: 155.8 kB / 1.241 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.314e-05/0.3507, allocations: 7.984 kB / 1.241 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.3508, allocations: 4 kB / 1.241 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.3508, allocations: 7.984 kB / 1.241 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.3509, allocations: 11.98 kB / 1.241 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006522/0.3515, allocations: 0.6728 MB / 1.242 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3515, allocations: 0 / 1.242 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001339/0.3529, allocations: 0.574 MB / 1.242 GB, free: 5.297 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.00163/0.3545, allocations: 0.6899 MB / 1.243 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00214/0.3567, allocations: 2.544 MB / 1.246 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3567, allocations: 4 kB / 1.246 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003195/0.357, allocations: 352.2 kB / 1.246 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.3573, allocations: 36.7 kB / 1.246 GB, free: 1.676 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5524/0.9097, 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.0004799/0.9102, allocations: 0.9649 MB / 1.249 GB, free: 38.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001868/0.9104, allocations: 32.42 kB / 1.249 GB, free: 38.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.9105, allocations: 28.23 kB / 1.249 GB, free: 38.69 MB / 0.9981 GB Notification: Performance of SimCode: time 4.31e-07/0.9105, allocations: 0 / 1.249 GB, free: 38.69 MB / 0.9981 GB Notification: Performance of Templates: time 0.02431/0.9348, allocations: 13.65 MB / 1.262 GB, free: 37.99 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