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.001348/0.001348, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001426/0.001426, allocations: 196.4 kB / 16.14 MB, free: 6.711 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.47/1.47, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.781/2.781, allocations: 437 MB / 0.71 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 63.91 kB / 0.8686 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6374/0.6394, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002718/0.6421, allocations: 1.489 MB / 1.018 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.007307/0.6494, allocations: 4.501 MB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.6495, allocations: 3.938 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.6497, allocations: 7.938 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.6499, allocations: 27.89 kB / 1.023 GB, free: 12.72 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.003454/0.6534, allocations: 1.177 MB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.6535, allocations: 127.6 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.07e-05/0.6536, allocations: 7.984 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.924e-05/0.6537, allocations: 51.77 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.654, allocations: 157 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.356e-05/0.654, allocations: 12 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003692/0.6577, allocations: 2.184 MB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.658, allocations: 263.8 kB / 1.026 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002793/0.6583, allocations: 278.3 kB / 1.027 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003828/0.6621, allocations: 2.165 MB / 1.029 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.6621, allocations: 0 / 1.029 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.81e-07/0.6621, allocations: 0 / 1.029 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.6622, allocations: 3.938 kB / 1.029 GB, free: 6.305 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.00865/0.6708, allocations: 1.3 MB / 1.03 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.6709, allocations: 12.02 kB / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004223/0.6713, allocations: 87.69 kB / 1.03 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.6718, allocations: 365 kB / 1.031 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.6718, allocations: 384 / 1.031 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.6718, allocations: 8.375 kB / 1.031 GB, free: 4.441 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005106/0.6724, allocations: 395.4 kB / 1.031 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.6724, allocations: 0 / 1.031 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.6724, allocations: 4 kB / 1.031 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.6724, allocations: 4 kB / 1.031 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005301/0.6729, allocations: 435.7 kB / 1.031 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000691/0.6736, allocations: 0.6326 MB / 1.032 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.6743, allocations: 0.5672 MB / 1.033 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.6747, allocations: 337.7 kB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001214/0.6759, allocations: 1.025 MB / 1.034 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004869/0.6764, allocations: 416.8 kB / 1.034 GB, free: 340 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.6764, allocations: 0 / 1.034 GB, free: 340 kB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001617/0.678, allocations: 1.285 MB / 1.035 GB, free: 15.04 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.6781, allocations: 85.08 kB / 1.036 GB, free: 14.94 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.6794, allocations: 1.214 MB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.301e-05/0.6795, allocations: 33.69 kB / 1.037 GB, free: 13.67 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.6798, allocations: 265.3 kB / 1.037 GB, free: 13.4 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.668e-05/0.6798, allocations: 15.8 kB / 1.037 GB, free: 13.39 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003781/0.6802, allocations: 351.6 kB / 1.037 GB, free: 13.04 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.6804, allocations: 310 kB / 1.038 GB, free: 12.73 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.6819, allocations: 1.369 MB / 1.039 GB, free: 11.36 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.6834, allocations: 1.507 MB / 1.04 GB, free: 9.844 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007882/0.6913, allocations: 3.56 MB / 1.044 GB, free: 6.191 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.6914, allocations: 4 kB / 1.044 GB, free: 6.188 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005052/0.6964, allocations: 3.999 MB / 1.048 GB, free: 2.152 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.6965, allocations: 8 kB / 1.048 GB, free: 2.145 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.6965, allocations: 0 / 1.048 GB, free: 2.145 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.78e-05/0.6966, allocations: 8 kB / 1.048 GB, free: 2.137 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.6967, allocations: 19.92 kB / 1.048 GB, free: 2.117 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.6967, allocations: 0 / 1.048 GB, free: 2.117 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.6972, allocations: 236.2 kB / 1.048 GB, free: 1.883 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.073e-05/0.6973, allocations: 27.95 kB / 1.048 GB, free: 1.855 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.0004301/0.6977, allocations: 241.7 kB / 1.048 GB, free: 1.609 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.208e-05/0.6978, allocations: 66.72 kB / 1.048 GB, free: 1.543 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003073/0.6981, allocations: 75.02 kB / 1.049 GB, free: 1.461 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.6982, allocations: 7.922 kB / 1.049 GB, free: 1.453 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.6982, allocations: 7.984 kB / 1.049 GB, free: 1.445 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.6982, allocations: 0 / 1.049 GB, free: 1.445 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000576/0.6988, allocations: 0.489 MB / 1.049 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6988, allocations: 4.031 kB / 1.049 GB, free: 0.9062 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/0.6988, allocations: 11.94 kB / 1.049 GB, free: 0.8945 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.6989, allocations: 0 / 1.049 GB, free: 0.8945 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.6989, allocations: 3.984 kB / 1.049 GB, free: 0.8906 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.6989, allocations: 4 kB / 1.049 GB, free: 0.8867 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6989, allocations: 0 / 1.049 GB, free: 0.8867 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.7, allocations: 1.009 MB / 1.05 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.7001, allocations: 155.8 kB / 1.05 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.971e-05/0.7002, allocations: 0 / 1.05 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.7004, allocations: 4 kB / 1.05 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.7004, allocations: 7.984 kB / 1.05 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.568e-05/0.7004, allocations: 11.98 kB / 1.05 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008426/0.7013, allocations: 0.6767 MB / 1.051 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.9e-07/0.7013, allocations: 4 kB / 1.051 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001654/0.703, allocations: 0.5818 MB / 1.051 GB, free: 14.39 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.002029/0.705, allocations: 0.6942 MB / 1.052 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002801/0.7078, allocations: 2.544 MB / 1.055 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7078, allocations: 0 / 1.055 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003827/0.7082, allocations: 347.8 kB / 1.055 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.7086, allocations: 40.55 kB / 1.055 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.7112, allocations: 1.928 MB / 1.057 GB, free: 8.812 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006377/0.7118, allocations: 0.9604 MB / 1.058 GB, free: 7.824 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001892/0.712, allocations: 36.55 kB / 1.058 GB, free: 7.789 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.7121, allocations: 23.42 kB / 1.058 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of SimCode: time 4.3e-07/0.7121, allocations: 3.938 kB / 1.058 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of Templates: time 0.02368/0.7358, allocations: 13.28 MB / 1.071 GB, free: 10.51 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