Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001361/0.001361, allocations: 108 kB / 15.61 MB, free: 148 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.001409/0.001409, allocations: 196 kB / 16.53 MB, free: 6.664 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.473/1.473, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.784/2.784, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 71.89 kB / 0.8693 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6104/0.6125, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002853/0.6154, allocations: 1.417 MB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.006855/0.6223, allocations: 4.215 MB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.733e-05/0.6223, allocations: 0 / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.6225, allocations: 11.86 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.6227, allocations: 31.78 kB / 1.023 GB, free: 12.74 MB / 0.7794 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 10.1.1-maint.10.0.x/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.00397/0.6267, allocations: 1.504 MB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.6269, allocations: 91.73 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.577e-05/0.6269, allocations: 7.984 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.264e-05/0.627, allocations: 47.78 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/0.6273, allocations: 147.6 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.6273, allocations: 16 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003619/0.6309, allocations: 2.153 MB / 1.027 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002513/0.6312, allocations: 275.8 kB / 1.027 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002813/0.6315, allocations: 270.3 kB / 1.027 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00334/0.6348, allocations: 2.104 MB / 1.029 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.6349, allocations: 0 / 1.029 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6349, allocations: 0 / 1.029 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.241e-05/0.6349, allocations: 0 / 1.029 GB, free: 6.133 MB / 0.7794 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.01092/0.6458, allocations: 1.304 MB / 1.031 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.6459, allocations: 11.97 kB / 1.031 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004514/0.6463, allocations: 87.69 kB / 1.031 GB, free: 4.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.6468, allocations: 365 kB / 1.031 GB, free: 4.273 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.6468, allocations: 4.375 kB / 1.031 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.6469, allocations: 8.375 kB / 1.031 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004927/0.6474, allocations: 399.4 kB / 1.031 GB, free: 3.859 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.6474, allocations: 0 / 1.031 GB, free: 3.859 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.6474, allocations: 3.984 kB / 1.031 GB, free: 3.855 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.6474, allocations: 4 kB / 1.031 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004905/0.6479, allocations: 427.8 kB / 1.032 GB, free: 3.434 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007122/0.6487, allocations: 0.6404 MB / 1.032 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000587/0.6493, allocations: 0.5634 MB / 1.033 GB, free: 2.16 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003488/0.6496, allocations: 333.6 kB / 1.033 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001184/0.6508, allocations: 1.028 MB / 1.034 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004616/0.6513, allocations: 408.8 kB / 1.035 GB, free: 164 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.6513, allocations: 0 / 1.035 GB, free: 164 kB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001543/0.6528, allocations: 1.297 MB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.6529, allocations: 85.05 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.6543, allocations: 1.214 MB / 1.037 GB, free: 13.52 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/0.6543, allocations: 25.7 kB / 1.037 GB, free: 13.49 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.6545, allocations: 269.3 kB / 1.038 GB, free: 13.22 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.6546, allocations: 23.73 kB / 1.038 GB, free: 13.2 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003785/0.655, allocations: 355.8 kB / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.6551, allocations: 310 kB / 1.038 GB, free: 12.54 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.6565, allocations: 1.369 MB / 1.04 GB, free: 11.17 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.6581, allocations: 1.501 MB / 1.041 GB, free: 9.656 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007597/0.6657, allocations: 3.568 MB / 1.045 GB, free: 5.996 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.6657, allocations: 0 / 1.045 GB, free: 5.996 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004827/0.6706, allocations: 3.995 MB / 1.048 GB, free: 1.965 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.6706, allocations: 11.92 kB / 1.048 GB, free: 1.953 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.6706, allocations: 4 kB / 1.048 GB, free: 1.949 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.6706, allocations: 0 / 1.048 GB, free: 1.949 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.6708, allocations: 20.02 kB / 1.048 GB, free: 1.93 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.6708, allocations: 0 / 1.048 GB, free: 1.93 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004933/0.6713, allocations: 232.3 kB / 1.049 GB, free: 1.699 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.6714, allocations: 23.98 kB / 1.049 GB, free: 1.676 MB / 0.795 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.000319/0.6717, allocations: 241.4 kB / 1.049 GB, free: 1.434 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.482e-05/0.6718, allocations: 70.72 kB / 1.049 GB, free: 1.363 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003197/0.6721, allocations: 75.06 kB / 1.049 GB, free: 1.281 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.6721, allocations: 7.984 kB / 1.049 GB, free: 1.273 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.6721, allocations: 0 / 1.049 GB, free: 1.273 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.6721, allocations: 3.938 kB / 1.049 GB, free: 1.27 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004912/0.6726, allocations: 0.493 MB / 1.05 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.6726, allocations: 0 / 1.05 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.673e-05/0.6727, allocations: 11.92 kB / 1.05 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.6727, allocations: 0 / 1.05 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.6728, allocations: 7.938 kB / 1.05 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.6728, allocations: 4.031 kB / 1.05 GB, free: 0.707 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.6728, allocations: 4 kB / 1.05 GB, free: 0.7031 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.6738, allocations: 1.001 MB / 1.051 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.674, allocations: 155.8 kB / 1.051 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.305e-05/0.674, allocations: 4 kB / 1.051 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.6742, allocations: 7.984 kB / 1.051 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.157e-05/0.6742, allocations: 8 kB / 1.051 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-05/0.6743, allocations: 15.97 kB / 1.051 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000786/0.675, allocations: 0.6689 MB / 1.051 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6751, allocations: 0 / 1.051 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001507/0.6766, allocations: 0.574 MB / 1.052 GB, free: 14.22 MB / 0.8106 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.002101/0.6787, allocations: 0.686 MB / 1.053 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002628/0.6813, allocations: 2.56 MB / 1.055 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6813, allocations: 0 / 1.055 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003668/0.6817, allocations: 331.8 kB / 1.055 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.682, allocations: 46.8 kB / 1.055 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.6843, allocations: 1.764 MB / 1.057 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006252/0.685, allocations: 0.9679 MB / 1.058 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001761/0.6852, allocations: 36.55 kB / 1.058 GB, free: 7.773 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.7e-05/0.6853, allocations: 23.42 kB / 1.058 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of SimCode: time 7.72e-07/0.6853, allocations: 0 / 1.058 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of Templates: time 0.02538/0.7106, allocations: 13.56 MB / 1.071 GB, free: 10.23 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches