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_100boreholes.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_100boreholes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009654/0.0009657, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.68/2.68, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005324/0.0005325, allocations: 16 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6598/0.6604, allocations: 153.7 MB / 1.021 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.001342/0.6617, allocations: 1.125 MB / 1.022 GB, free: 0 / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.005279/0.6671, allocations: 3.853 MB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.09e-05/0.6671, allocations: 0 / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.6672, allocations: 15.86 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.6674, allocations: 31.83 kB / 1.026 GB, free: 12.08 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.002843/0.6703, allocations: 1.071 MB / 1.027 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.6704, allocations: 63.92 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.514e-05/0.6704, allocations: 3.984 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.291e-05/0.6705, allocations: 47.83 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.6707, allocations: 147.7 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.235e-05/0.6708, allocations: 12 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003605/0.6744, allocations: 1.864 MB / 1.029 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0006818/0.6751, allocations: 0.6664 MB / 1.03 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.6753, allocations: 200.8 kB / 1.03 GB, free: 8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003181/0.6785, allocations: 1.682 MB / 1.031 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.6785, allocations: 0 / 1.031 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.455e-06/0.6785, allocations: 0 / 1.031 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.6786, allocations: 0 / 1.031 GB, free: 6.316 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.01094/0.6895, allocations: 1.867 MB / 1.033 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.6895, allocations: 11.98 kB / 1.033 GB, free: 4.379 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004318/0.69, allocations: 169.6 kB / 1.033 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.6906, allocations: 0.5339 MB / 1.034 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.6907, allocations: 8 kB / 1.034 GB, free: 3.605 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.752e-05/0.6907, allocations: 7.984 kB / 1.034 GB, free: 3.598 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004165/0.6911, allocations: 395.1 kB / 1.034 GB, free: 3.199 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.6912, allocations: 4 kB / 1.034 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.6912, allocations: 0 / 1.034 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-06/0.6912, allocations: 4 kB / 1.034 GB, free: 3.191 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004214/0.6916, allocations: 431.7 kB / 1.035 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008289/0.6924, allocations: 0.9298 MB / 1.036 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/0.693, allocations: 0.5633 MB / 1.036 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001012/0.694, allocations: 1.033 MB / 1.037 GB, free: 15.95 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003933/0.6944, allocations: 416.7 kB / 1.038 GB, free: 15.52 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.6944, allocations: 0 / 1.038 GB, free: 15.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001312/0.6957, allocations: 1.358 MB / 1.039 GB, free: 14.15 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.6958, allocations: 85.17 kB / 1.039 GB, free: 14.05 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.6979, allocations: 2.216 MB / 1.041 GB, free: 11.8 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.6979, allocations: 25.7 kB / 1.041 GB, free: 11.77 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.6983, allocations: 0.525 MB / 1.042 GB, free: 11.24 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.124e-05/0.6983, allocations: 15.8 kB / 1.042 GB, free: 11.23 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.6984, allocations: 8 kB / 1.042 GB, free: 11.22 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001902/0.6986, allocations: 444.8 kB / 1.042 GB, free: 10.78 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.7003, allocations: 2.057 MB / 1.044 GB, free: 8.719 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.7021, allocations: 2.23 MB / 1.046 GB, free: 6.48 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/0.7044, allocations: 2.984 MB / 1.049 GB, free: 3.445 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.7044, allocations: 4 kB / 1.049 GB, free: 3.441 MB / 0.795 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.00603/0.7104, allocations: 6.212 MB / 1.055 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.7104, allocations: 8.031 kB / 1.055 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.7105, allocations: 7.953 kB / 1.055 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.7105, allocations: 3.938 kB / 1.055 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.7106, allocations: 15.98 kB / 1.055 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.7106, allocations: 320 / 1.055 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000666/0.7113, allocations: 299.1 kB / 1.056 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.607e-05/0.7114, allocations: 23.98 kB / 1.056 GB, free: 12.76 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 116 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],labels[7],labels[8],labels[9],labels[10],labels[11],labels[12],labels[13],labels[14],labels[15],labels[16],labels[17],labels[18],labels[19],labels[20],labels[21],labels[22],labels[23],labels[24],labels[25],labels[26],labels[27],labels[28],labels[29],labels[30],labels[31],labels[32],labels[33],labels[34],labels[35],labels[36],labels[37],labels[38],labels[39],labels[40],labels[41],labels[42],labels[43],labels[44],labels[45],labels[46],labels[47],labels[48],labels[49],labels[50],labels[51],labels[52],labels[53],labels[54],labels[55],labels[56],labels[57],labels[58],labels[59],labels[60],labels[61],labels[62],labels[63],labels[64],labels[65],labels[66],labels[67],labels[68],labels[69],labels[70],labels[71],labels[72],labels[73],labels[74],labels[75],labels[76],labels[77],labels[78],labels[79],labels[80],labels[81],labels[82],labels[83],labels[84],labels[85],labels[86],labels[87],labels[88],labels[89],labels[90],labels[91],labels[92],labels[93],labels[94],labels[95],labels[96],labels[97],labels[98],labels[99],labels[100],cluSiz[1],cluSiz[2],cluSiz[3],cluSiz[4],cluSiz[5]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005777/0.712, allocations: 474.7 kB / 1.056 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.7121, allocations: 149.6 kB / 1.056 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003409/0.7124, allocations: 148 kB / 1.056 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.7124, allocations: 3.953 kB / 1.056 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7124, allocations: 0 / 1.056 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.7125, allocations: 12.02 kB / 1.056 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006918/0.7132, allocations: 0.7672 MB / 1.057 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.7132, allocations: 0 / 1.057 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.176e-05/0.7132, allocations: 11.98 kB / 1.057 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.7133, allocations: 0 / 1.057 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.7133, allocations: 0 / 1.057 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.7133, allocations: 7.984 kB / 1.057 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.7133, allocations: 3.953 kB / 1.057 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000972/0.7143, allocations: 1.092 MB / 1.058 GB, free: 10 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.7145, allocations: 218.8 kB / 1.058 GB, free: 9.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.7146, allocations: 4 kB / 1.058 GB, free: 9.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.7148, allocations: 11.94 kB / 1.058 GB, free: 9.754 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.7148, allocations: 7.938 kB / 1.058 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.7149, allocations: 15.97 kB / 1.058 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001417/0.7163, allocations: 1.29 MB / 1.06 GB, free: 8.426 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.7163, allocations: 0 / 1.06 GB, free: 8.426 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001495/0.7178, allocations: 0.6286 MB / 1.06 GB, free: 7.797 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001656/0.7195, allocations: 0.6822 MB / 1.061 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003113/0.7226, allocations: 3.552 MB / 1.064 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7226, allocations: 4.062 kB / 1.064 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003321/0.723, allocations: 335.8 kB / 1.065 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.7233, allocations: 55.91 kB / 1.065 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.7267, allocations: 3.076 MB / 1.068 GB, free: 68 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008055/0.7275, allocations: 1.266 MB / 1.069 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001775/0.7277, allocations: 32.55 kB / 1.069 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.471e-05/0.7278, allocations: 27.42 kB / 1.069 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of SimCode: time 7.81e-07/0.7278, allocations: 3.938 kB / 1.069 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of Templates: time 0.02378/0.7516, allocations: 13.84 MB / 1.083 GB, free: 0.9102 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)