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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00143/0.00143, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 182.2 kB / 16.92 MB, free: 6.914 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.424/1.424, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.792/2.792, allocations: 462.6 MB / 0.737 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003782, allocations: 14.38 kB / 0.9035 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3813, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001674/0.383, allocations: 1.152 MB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.006805/0.3898, allocations: 4.399 MB / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.979e-05/0.3899, allocations: 3.938 kB / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.3901, allocations: 7.922 kB / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002454/0.3903, allocations: 35.83 kB / 1.065 GB, free: 15.31 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.003383/0.3937, allocations: 1.185 MB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.3939, allocations: 123.6 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.698e-05/0.394, allocations: 4 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.411e-05/0.394, allocations: 39.86 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.3943, allocations: 160.9 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.851e-05/0.3943, allocations: 16 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003913/0.3983, allocations: 2.18 MB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.3985, allocations: 271.8 kB / 1.069 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002732/0.3988, allocations: 300 kB / 1.069 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00232/0.4011, allocations: 1.505 MB / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4012, allocations: 0 / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.154e-06/0.4012, allocations: 0 / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.735e-06/0.4012, allocations: 4 kB / 1.07 GB, free: 9.523 MB / 0.8262 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.01067/0.4118, allocations: 1.238 MB / 1.072 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.4119, allocations: 11.97 kB / 1.072 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003998/0.4123, allocations: 91.59 kB / 1.072 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.4128, allocations: 368.9 kB / 1.072 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.4128, allocations: 8.375 kB / 1.072 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.4129, allocations: 8.375 kB / 1.072 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004765/0.4133, allocations: 391.5 kB / 1.073 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.4134, allocations: 0 / 1.073 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.4134, allocations: 0 / 1.073 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.4134, allocations: 0 / 1.073 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004769/0.4139, allocations: 439.7 kB / 1.073 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.4146, allocations: 0.6366 MB / 1.074 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.4151, allocations: 0.5595 MB / 1.074 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.4155, allocations: 333.6 kB / 1.074 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001262/0.4168, allocations: 1.044 MB / 1.075 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004709/0.4173, allocations: 412.8 kB / 1.076 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.934e-06/0.4173, allocations: 0 / 1.076 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001568/0.4189, allocations: 1.289 MB / 1.077 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.4189, allocations: 85.09 kB / 1.077 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.4203, allocations: 1.21 MB / 1.078 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.4203, allocations: 29.7 kB / 1.078 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000222/0.4205, allocations: 265.5 kB / 1.079 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.07e-05/0.4206, allocations: 27.72 kB / 1.079 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.4209, allocations: 287.7 kB / 1.079 GB, free: 368 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.421, allocations: 314 kB / 1.079 GB, free: 48 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.4225, allocations: 1.377 MB / 1.081 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.4242, allocations: 1.505 MB / 1.082 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007322/0.4315, allocations: 3.56 MB / 1.086 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.4316, allocations: 0 / 1.086 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004928/0.4365, allocations: 4.01 MB / 1.089 GB, free: 5.453 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.4366, allocations: 4 kB / 1.089 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.492e-05/0.4366, allocations: 8.031 kB / 1.089 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.4366, allocations: 0 / 1.089 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.4368, allocations: 19.98 kB / 1.089 GB, free: 5.422 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.4368, allocations: 0 / 1.089 GB, free: 5.422 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.4374, allocations: 228.3 kB / 1.09 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.647e-05/0.4375, allocations: 23.98 kB / 1.09 GB, free: 5.172 MB / 0.8419 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.0003667/0.4378, allocations: 245.6 kB / 1.09 GB, free: 4.922 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.4379, allocations: 70.72 kB / 1.09 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003149/0.4382, allocations: 71.08 kB / 1.09 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/0.4383, allocations: 4 kB / 1.09 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4383, allocations: 3.938 kB / 1.09 GB, free: 4.766 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4383, allocations: 3.984 kB / 1.09 GB, free: 4.762 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/0.4388, allocations: 0.4892 MB / 1.091 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4388, allocations: 0 / 1.091 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.924e-05/0.4389, allocations: 7.938 kB / 1.091 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4389, allocations: 4.031 kB / 1.091 GB, free: 4.215 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.4389, allocations: 7.984 kB / 1.091 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.4389, allocations: 0 / 1.091 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4389, allocations: 0 / 1.091 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.44, allocations: 0.9897 MB / 1.092 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.4401, allocations: 159.8 kB / 1.092 GB, free: 3.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.176e-05/0.4402, allocations: 11.98 kB / 1.092 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.4403, allocations: 4 kB / 1.092 GB, free: 3.004 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.4404, allocations: 7.922 kB / 1.092 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.4404, allocations: 11.98 kB / 1.092 GB, free: 2.984 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007522/0.4412, allocations: 0.6728 MB / 1.092 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.655e-06/0.4412, allocations: 0 / 1.092 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001811/0.443, allocations: 0.5857 MB / 1.093 GB, free: 1.719 MB / 0.8419 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.001987/0.445, allocations: 0.6898 MB / 1.094 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002674/0.4477, allocations: 2.552 MB / 1.096 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4477, allocations: 0 / 1.096 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003726/0.4481, allocations: 343.8 kB / 1.096 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.4485, allocations: 41.16 kB / 1.096 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.451, allocations: 1.974 MB / 1.098 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006549/0.4517, allocations: 0.9721 MB / 1.099 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.4518, allocations: 23.42 kB / 1.099 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of SimCode: time 1.252e-06/0.4518, allocations: 0 / 1.099 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of Templates: time 0.02674/0.4786, allocations: 13.79 MB / 1.113 GB, free: 13.27 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/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