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.001544/0.001544, allocations: 108.9 kB / 16.41 MB, free: 6.5 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.001686/0.001686, allocations: 183 kB / 17.34 MB, free: 5.762 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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.679/2.679, allocations: 461.9 MB / 0.7355 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 67.89 kB / 1.055 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9083/0.9098, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00259/0.9124, allocations: 1.426 MB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.006455/0.9189, allocations: 4.199 MB / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.2e-05/0.919, allocations: 7.875 kB / 1.214 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.9192, allocations: 15.86 kB / 1.214 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.9194, allocations: 27.83 kB / 1.214 GB, free: 7.895 MB / 0.9356 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.004095/0.9235, allocations: 1.501 MB / 1.215 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.9237, allocations: 95.67 kB / 1.216 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.797e-05/0.9238, allocations: 12 kB / 1.216 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.102e-05/0.9238, allocations: 35.91 kB / 1.216 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.9241, allocations: 151.6 kB / 1.216 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.458e-05/0.9241, allocations: 19.94 kB / 1.216 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003431/0.9276, allocations: 2.2 MB / 1.218 GB, free: 3.887 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002167/0.9278, allocations: 267.8 kB / 1.218 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.9281, allocations: 278.3 kB / 1.218 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002539/0.9306, allocations: 2.11 MB / 1.221 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.9306, allocations: 0 / 1.221 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.322e-06/0.9306, allocations: 0 / 1.221 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.9306, allocations: 4 kB / 1.221 GB, free: 1.23 MB / 0.9356 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.01045/0.9411, allocations: 1.296 MB / 1.222 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.9412, allocations: 12.03 kB / 1.222 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004033/0.9416, allocations: 95.58 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004027/0.942, allocations: 364.9 kB / 1.222 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.942, allocations: 4.375 kB / 1.222 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.942, allocations: 4.375 kB / 1.222 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.9425, allocations: 395.5 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.9425, allocations: 0 / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.9425, allocations: 8 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.9426, allocations: 4 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.943, allocations: 439.7 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.9436, allocations: 0.6327 MB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005253/0.9441, allocations: 0.5634 MB / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/0.9445, allocations: 341.5 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00109/0.9456, allocations: 1.021 MB / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004182/0.946, allocations: 408.8 kB / 1.226 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.946, allocations: 0 / 1.226 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.001342/0.9474, allocations: 1.285 MB / 1.227 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.9474, allocations: 89.22 kB / 1.227 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.9486, allocations: 1.218 MB / 1.228 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.9486, allocations: 25.7 kB / 1.229 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.9489, allocations: 265.4 kB / 1.229 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.9489, allocations: 19.75 kB / 1.229 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003195/0.9492, allocations: 355.6 kB / 1.229 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.9494, allocations: 314 kB / 1.229 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.9506, allocations: 1.373 MB / 1.231 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.952, allocations: 1.517 MB / 1.232 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006979/0.959, allocations: 3.557 MB / 1.236 GB, free: 1.094 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.959, allocations: 0 / 1.236 GB, free: 1.094 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004367/0.9634, allocations: 4.006 MB / 1.24 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.9634, allocations: 4 kB / 1.24 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.9635, allocations: 4 kB / 1.24 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.9635, allocations: 0 / 1.24 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.9636, allocations: 15.98 kB / 1.24 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.9637, allocations: 4 kB / 1.24 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000497/0.9642, allocations: 228.3 kB / 1.24 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/0.9642, allocations: 27.97 kB / 1.24 GB, free: 12.77 MB / 0.9669 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.0003093/0.9645, allocations: 249.6 kB / 1.24 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.108e-05/0.9646, allocations: 66.72 kB / 1.24 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.9649, allocations: 71.08 kB / 1.24 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.9649, allocations: 0 / 1.24 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.9649, allocations: 3.938 kB / 1.24 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.9649, allocations: 0 / 1.24 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000436/0.9654, allocations: 0.4931 MB / 1.241 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.9654, allocations: 0 / 1.241 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.956e-05/0.9655, allocations: 7.938 kB / 1.241 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.9655, allocations: 4 kB / 1.241 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.9655, allocations: 3.984 kB / 1.241 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.9655, allocations: 320 / 1.241 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.9655, allocations: 4 kB / 1.241 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009371/0.9664, allocations: 1.001 MB / 1.242 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.9666, allocations: 163.7 kB / 1.242 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.453e-05/0.9666, allocations: 7.984 kB / 1.242 GB, free: 10.6 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.9668, allocations: 4 kB / 1.242 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.9668, allocations: 11.92 kB / 1.242 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.9669, allocations: 11.98 kB / 1.242 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0007214/0.9676, allocations: 0.6767 MB / 1.243 GB, free: 9.887 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9676, allocations: 3.938 kB / 1.243 GB, free: 9.883 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001514/0.9691, allocations: 0.5701 MB / 1.243 GB, free: 9.312 MB / 0.9669 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.001923/0.9711, allocations: 0.6851 MB / 1.244 GB, free: 8.637 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002717/0.9738, allocations: 2.552 MB / 1.246 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.9738, allocations: 0 / 1.246 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003687/0.9742, allocations: 343.7 kB / 1.247 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.9746, allocations: 36.55 kB / 1.247 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.9769, allocations: 1.781 MB / 1.248 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/0.9775, allocations: 0.9679 MB / 1.249 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.9776, allocations: 27.42 kB / 1.249 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of SimCode: time 4.91e-07/0.9776, allocations: 0 / 1.249 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of Templates: time 0.02117/0.9988, allocations: 13.84 MB / 1.263 GB, free: 5.027 MB / 0.9825 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/jenkins1/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