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.001282/0.001282, allocations: 104.3 kB / 16.41 MB, free: 6.457 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.001259/0.001259, allocations: 189.2 kB / 17.34 MB, free: 5.734 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.447/1.447, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.822/2.822, allocations: 474.5 MB / 0.7477 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 67.91 kB / 1.073 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.727/0.729, allocations: 160.3 MB / 1.229 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002728/0.7318, allocations: 1.431 MB / 1.231 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.006657/0.7385, allocations: 4.208 MB / 1.235 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.347e-05/0.7386, allocations: 3.938 kB / 1.235 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.7387, allocations: 7.922 kB / 1.235 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.739, allocations: 31.78 kB / 1.235 GB, free: 5.246 MB / 0.9512 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.003901/0.7429, allocations: 1.503 MB / 1.236 GB, free: 3.738 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000167/0.743, allocations: 95.67 kB / 1.236 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.851e-05/0.7431, allocations: 4 kB / 1.236 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.59e-05/0.7432, allocations: 47.88 kB / 1.236 GB, free: 3.594 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.7434, allocations: 151.6 kB / 1.237 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.201e-05/0.7435, allocations: 12 kB / 1.237 GB, free: 3.434 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003488/0.7469, allocations: 2.204 MB / 1.239 GB, free: 1.227 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002428/0.7472, allocations: 263.9 kB / 1.239 GB, free: 0.9648 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002678/0.7475, allocations: 282.3 kB / 1.239 GB, free: 0.6875 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003095/0.7506, allocations: 2.131 MB / 1.241 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.7506, allocations: 0 / 1.241 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7506, allocations: 0 / 1.241 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.7506, allocations: 0 / 1.241 GB, free: 14.56 MB / 0.9669 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.01054/0.7612, allocations: 1.347 MB / 1.243 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.7612, allocations: 12.03 kB / 1.243 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003827/0.7616, allocations: 92.25 kB / 1.243 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.7621, allocations: 361 kB / 1.243 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.7621, allocations: 4.375 kB / 1.243 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.7621, allocations: 8.375 kB / 1.243 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004733/0.7626, allocations: 399.5 kB / 1.243 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.7626, allocations: 0 / 1.243 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.7626, allocations: 4 kB / 1.243 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.7627, allocations: 4 kB / 1.243 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.7631, allocations: 435.7 kB / 1.244 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.7638, allocations: 0.641 MB / 1.244 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005833/0.7644, allocations: 0.5672 MB / 1.245 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003417/0.7648, allocations: 333.7 kB / 1.245 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001147/0.7659, allocations: 1.028 MB / 1.246 GB, free: 8.945 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004451/0.7664, allocations: 408.8 kB / 1.247 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.7664, allocations: 0 / 1.247 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.001495/0.7679, allocations: 1.293 MB / 1.248 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.768, allocations: 89.09 kB / 1.248 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.7693, allocations: 1.219 MB / 1.249 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.7693, allocations: 29.7 kB / 1.249 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.7695, allocations: 265.9 kB / 1.25 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.7696, allocations: 27.78 kB / 1.25 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003682/0.77, allocations: 351.6 kB / 1.25 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.7701, allocations: 314 kB / 1.25 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.7715, allocations: 1.373 MB / 1.252 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.773, allocations: 1.509 MB / 1.253 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007442/0.7805, allocations: 3.553 MB / 1.257 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.7805, allocations: 4 kB / 1.257 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004769/0.7853, allocations: 4.007 MB / 1.26 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.7853, allocations: 5.875 kB / 1.26 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.7854, allocations: 4 kB / 1.26 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.7854, allocations: 0 / 1.26 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.7855, allocations: 19.98 kB / 1.26 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.7855, allocations: 0 / 1.26 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004956/0.786, allocations: 245.3 kB / 1.261 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.107e-05/0.7861, allocations: 23.98 kB / 1.261 GB, free: 10.02 MB / 0.9825 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.0003153/0.7864, allocations: 247.8 kB / 1.261 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.7865, allocations: 83.17 kB / 1.261 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002702/0.7868, allocations: 67.08 kB / 1.261 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.7868, allocations: 4 kB / 1.261 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.7868, allocations: 8.016 kB / 1.261 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.7868, allocations: 0 / 1.261 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000486/0.7873, allocations: 0.4892 MB / 1.262 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.7873, allocations: 0 / 1.262 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.968e-05/0.7874, allocations: 11.88 kB / 1.262 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.7874, allocations: 0 / 1.262 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.7874, allocations: 7.984 kB / 1.262 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.7874, allocations: 3.938 kB / 1.262 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7874, allocations: 0 / 1.262 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.7885, allocations: 1.006 MB / 1.263 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.7886, allocations: 168.3 kB / 1.263 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/0.7887, allocations: 8 kB / 1.263 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.7888, allocations: 4 kB / 1.263 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.7888, allocations: 7.984 kB / 1.263 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.204e-05/0.7889, allocations: 19.92 kB / 1.263 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0007759/0.7897, allocations: 0.6728 MB / 1.263 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7897, allocations: 0 / 1.263 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001397/0.7911, allocations: 0.5845 MB / 1.264 GB, free: 6.531 MB / 0.9825 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.001716/0.7928, allocations: 0.6894 MB / 1.265 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002591/0.7954, allocations: 2.553 MB / 1.267 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7954, allocations: 0 / 1.267 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.7958, allocations: 339.8 kB / 1.268 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.7961, allocations: 37.25 kB / 1.268 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.7984, allocations: 1.786 MB / 1.269 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006158/0.799, allocations: 0.964 MB / 1.27 GB, free: 100 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001371/0.7991, allocations: 32.55 kB / 1.27 GB, free: 64 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-05/0.7992, allocations: 31.42 kB / 1.27 GB, free: 32 kB / 0.9825 GB Notification: Performance of SimCode: time 5.41e-07/0.7993, allocations: 0 / 1.27 GB, free: 32 kB / 0.9825 GB Notification: Performance of Templates: time 0.02378/0.823, allocations: 13.57 MB / 1.284 GB, free: 2.504 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 -s gbode -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