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.001481/0.001481, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001771/0.001771, allocations: 189.8 kB / 17.2 MB, free: 5.953 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 / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.593/2.593, allocations: 469.4 MB / 0.7427 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.44 kB / 0.9089 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3266, allocations: 159.1 MB / 1.064 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.003033/0.3297, allocations: 1.43 MB / 1.066 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.006494/0.3362, allocations: 4.196 MB / 1.07 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.5e-05/0.3363, allocations: 4 kB / 1.07 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.3365, allocations: 15.86 kB / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.3367, allocations: 31.84 kB / 1.07 GB, free: 9.266 MB / 0.8419 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.004176/0.3409, allocations: 1.502 MB / 1.071 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.3411, allocations: 95.67 kB / 1.071 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.943e-05/0.3411, allocations: 4 kB / 1.071 GB, free: 7.668 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.827e-05/0.3412, allocations: 47.78 kB / 1.071 GB, free: 7.621 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.3414, allocations: 147.6 kB / 1.072 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.786e-05/0.3415, allocations: 16 kB / 1.072 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003335/0.3448, allocations: 2.157 MB / 1.074 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002355/0.3451, allocations: 263.8 kB / 1.074 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002623/0.3454, allocations: 278.3 kB / 1.074 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003497/0.3489, allocations: 2.104 MB / 1.076 GB, free: 2.656 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3489, allocations: 4 kB / 1.076 GB, free: 2.652 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3489, allocations: 3.938 kB / 1.076 GB, free: 2.648 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.474e-05/0.3489, allocations: 0 / 1.076 GB, free: 2.648 MB / 0.8419 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.01051/0.3595, allocations: 1.3 MB / 1.078 GB, free: 1.297 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3595, allocations: 8.625 kB / 1.078 GB, free: 1.289 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004599/0.36, allocations: 83.69 kB / 1.078 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/0.3605, allocations: 365 kB / 1.078 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.3605, allocations: 4.375 kB / 1.078 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.3605, allocations: 8.375 kB / 1.078 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004373/0.361, allocations: 395.5 kB / 1.078 GB, free: 400 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.361, allocations: 3.938 kB / 1.078 GB, free: 396 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.361, allocations: 3.984 kB / 1.078 GB, free: 392 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.361, allocations: 0 / 1.078 GB, free: 392 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5847/0.9458, allocations: 432.5 kB / 1.079 GB, free: 21.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009188/0.9467, allocations: 0.6356 MB / 1.079 GB, free: 21.43 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008036/0.9476, allocations: 0.5668 MB / 1.08 GB, free: 21.38 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004447/0.948, allocations: 334.5 kB / 1.08 GB, free: 21.37 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009485/0.949, allocations: 1.027 MB / 1.081 GB, free: 20.24 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004959/0.9495, allocations: 405.5 kB / 1.082 GB, free: 20.18 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 4.549e-06/0.9495, allocations: 0 / 1.082 GB, free: 20.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.00184/0.9513, allocations: 1.294 MB / 1.083 GB, free: 20.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.9514, allocations: 93.09 kB / 1.083 GB, free: 20 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/0.9529, allocations: 1.213 MB / 1.084 GB, free: 19.77 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.953, allocations: 31.58 kB / 1.084 GB, free: 19.73 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.9531, allocations: 259.6 kB / 1.084 GB, free: 19.56 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.9532, allocations: 21.67 kB / 1.084 GB, free: 19.55 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003842/0.9536, allocations: 355.5 kB / 1.085 GB, free: 19.45 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 5.173e-05/0.9536, allocations: 309.7 kB / 1.085 GB, free: 19.14 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/0.955, allocations: 1.37 MB / 1.086 GB, free: 18.69 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.9567, allocations: 1.506 MB / 1.088 GB, free: 18.17 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007557/0.9643, allocations: 3.561 MB / 1.091 GB, free: 16.32 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.9643, allocations: 3.031 kB / 1.091 GB, free: 16.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00478/0.9691, allocations: 3.998 MB / 1.095 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.9691, allocations: 5.609 kB / 1.095 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/0.9692, allocations: 3.188 kB / 1.095 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.9692, allocations: 5.094 kB / 1.095 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.9694, allocations: 20 kB / 1.095 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.9694, allocations: 2.156 kB / 1.095 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005992/0.97, allocations: 236.4 kB / 1.096 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.97, allocations: 24.69 kB / 1.096 GB, free: 14.16 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.0003367/0.9704, allocations: 237.2 kB / 1.096 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.9705, allocations: 66.73 kB / 1.096 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002869/0.9707, allocations: 83.28 kB / 1.096 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.9708, allocations: 2.203 kB / 1.096 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.9708, allocations: 0 / 1.096 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.9708, allocations: 2.344 kB / 1.096 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005743/0.9714, allocations: 498.2 kB / 1.096 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.9714, allocations: 0 / 1.096 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.329e-05/0.9714, allocations: 18.45 kB / 1.096 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.9715, allocations: 1 kB / 1.096 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.9715, allocations: 8.391 kB / 1.096 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.9715, allocations: 3.844 kB / 1.096 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.9715, allocations: 1.578 kB / 1.096 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.9728, allocations: 1.005 MB / 1.097 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.9729, allocations: 150.5 kB / 1.098 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.745e-05/0.973, allocations: 6.688 kB / 1.098 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.9731, allocations: 4.672 kB / 1.098 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.9732, allocations: 10.03 kB / 1.098 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-05/0.9732, allocations: 13.05 kB / 1.098 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008906/0.9741, allocations: 0.67 MB / 1.098 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9741, allocations: 1.125 kB / 1.098 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001696/0.9758, allocations: 0.573 MB / 1.099 GB, free: 13.08 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.001828/0.9777, allocations: 0.693 MB / 1.1 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00269/0.9804, allocations: 2.558 MB / 1.102 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.9804, allocations: 1.859 kB / 1.102 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004359/0.9808, allocations: 333.8 kB / 1.102 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.9812, allocations: 45.25 kB / 1.102 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.9837, allocations: 1.813 MB / 1.104 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.9842, allocations: 0.9637 MB / 1.105 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.9843, allocations: 26.62 kB / 1.105 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of SimCode: time 2.91e-07/0.9843, allocations: 0 / 1.105 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of Templates: time 0.03307/1.017, allocations: 13.83 MB / 1.119 GB, free: 8.809 MB / 0.8419 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