Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 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_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001434/0.001434, allocations: 108 kB / 15.61 MB, free: 152 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.001689/0.001689, allocations: 194 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.731/2.731, allocations: 472.6 MB / 0.7451 GB, free: 4.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001385, allocations: 59.66 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2947, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.003031/0.2978, allocations: 1.429 MB / 1.07 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006855/0.3046, allocations: 4.204 MB / 1.074 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.06e-05/0.3048, allocations: 0 / 1.074 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.3049, allocations: 7.875 kB / 1.074 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.3052, allocations: 35.83 kB / 1.074 GB, free: 4.75 MB / 0.8262 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.00419/0.3094, allocations: 1.504 MB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.3096, allocations: 95.66 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.994e-05/0.3096, allocations: 11.98 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.916e-05/0.3097, allocations: 43.84 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.31, allocations: 169.5 kB / 1.076 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.31, allocations: 12 kB / 1.076 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.3136, allocations: 2.157 MB / 1.078 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0007207/0.3143, allocations: 0.7498 MB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0005002/0.3148, allocations: 0.5002 MB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00387/0.3187, allocations: 2.536 MB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3187, allocations: 4 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3187, allocations: 0 / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.721e-05/0.3188, allocations: 0 / 1.081 GB, free: 12.95 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.01166/0.3304, allocations: 1.96 MB / 1.083 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3305, allocations: 12.03 kB / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005079/0.331, allocations: 162.6 kB / 1.083 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006606/0.3317, allocations: 0.5772 MB / 1.084 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.3317, allocations: 4.375 kB / 1.084 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/0.3318, allocations: 8.375 kB / 1.084 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004615/0.3322, allocations: 391.5 kB / 1.084 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3322, allocations: 0 / 1.084 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.3323, allocations: 0 / 1.084 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3323, allocations: 4 kB / 1.084 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.3327, allocations: 439.7 kB / 1.085 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009608/0.3337, allocations: 0.9258 MB / 1.086 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005274/0.3342, allocations: 0.5633 MB / 1.086 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.3346, allocations: 345.6 kB / 1.087 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001142/0.3357, allocations: 1.032 MB / 1.088 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004222/0.3362, allocations: 404.8 kB / 1.088 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.954e-06/0.3362, allocations: 0 / 1.088 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001416/0.3376, allocations: 1.358 MB / 1.089 GB, free: 4.332 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.3377, allocations: 85.09 kB / 1.089 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002304/0.34, allocations: 2.224 MB / 1.092 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.881e-05/0.34, allocations: 33.7 kB / 1.092 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003924/0.3404, allocations: 0.5212 MB / 1.092 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.3405, allocations: 23.7 kB / 1.092 GB, free: 1.387 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004008/0.3409, allocations: 455.4 kB / 1.093 GB, free: 0.9336 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.341, allocations: 305.1 kB / 1.093 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.3427, allocations: 2.057 MB / 1.095 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.3446, allocations: 2.236 MB / 1.097 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008017/0.3526, allocations: 4.681 MB / 1.102 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3527, allocations: 0 / 1.102 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.006203/0.3589, allocations: 6.243 MB / 1.108 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3589, allocations: 4 kB / 1.108 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.359, allocations: 4 kB / 1.108 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.359, allocations: 0 / 1.108 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.3591, allocations: 15.98 kB / 1.108 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.3591, allocations: 0 / 1.108 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007124/0.3599, allocations: 295.2 kB / 1.108 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.3599, allocations: 31.92 kB / 1.108 GB, free: 0.8242 MB / 0.8575 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 (cluSiz[5],cluSiz[4],cluSiz[3],cluSiz[2],cluSiz[1],labels[100],labels[99],labels[98],labels[97],labels[96],labels[95],labels[94],labels[93],labels[92],labels[91],labels[90],labels[89],labels[88],labels[87],labels[86],labels[85],labels[84],labels[83],labels[82],labels[81],labels[80],labels[79],labels[78],labels[77],labels[76],labels[75],labels[74],labels[73],labels[72],labels[71],labels[70],labels[69],labels[68],labels[67],labels[66],labels[65],labels[64],labels[63],labels[62],labels[61],labels[60],labels[59],labels[58],labels[57],labels[56],labels[55],labels[54],labels[53],labels[52],labels[51],labels[50],labels[49],labels[48],labels[47],labels[46],labels[45],labels[44],labels[43],labels[42],labels[41],labels[40],labels[39],labels[38],labels[37],labels[36],labels[35],labels[34],labels[33],labels[32],labels[31],labels[30],labels[29],labels[28],labels[27],labels[26],labels[25],labels[24],labels[23],labels[22],labels[21],labels[20],labels[19],labels[18],labels[17],labels[16],labels[15],labels[14],labels[13],labels[12],labels[11],labels[10],labels[9],labels[8],labels[7],labels[6],labels[5],labels[4],labels[3],labels[2],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.0006249/0.3605, allocations: 470.7 kB / 1.108 GB, free: 364 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.3607, allocations: 141.6 kB / 1.109 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003704/0.361, allocations: 144 kB / 1.109 GB, free: 68 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3611, allocations: 7.938 kB / 1.109 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3611, allocations: 0 / 1.109 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3611, allocations: 4.031 kB / 1.109 GB, free: 56 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006757/0.3618, allocations: 0.7749 MB / 1.11 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3618, allocations: 3.938 kB / 1.11 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.422e-05/0.3619, allocations: 11.92 kB / 1.11 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3619, allocations: 4 kB / 1.11 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.3619, allocations: 4 kB / 1.11 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3619, allocations: 0 / 1.11 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3619, allocations: 0 / 1.11 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009447/0.3629, allocations: 1.08 MB / 1.111 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.363, allocations: 218.7 kB / 1.111 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.3632, allocations: 4 kB / 1.111 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3634, allocations: 7.984 kB / 1.111 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.3634, allocations: 15.92 kB / 1.111 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.289e-05/0.3635, allocations: 19.97 kB / 1.111 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001439/0.3649, allocations: 1.305 MB / 1.112 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3649, allocations: 0 / 1.112 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00165/0.3666, allocations: 0.6247 MB / 1.113 GB, free: 11.87 MB / 0.8731 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.001732/0.3683, allocations: 0.6873 MB / 1.113 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00299/0.3713, allocations: 3.556 MB / 1.117 GB, free: 7.625 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3713, allocations: 4.062 kB / 1.117 GB, free: 7.621 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003162/0.3717, allocations: 343.7 kB / 1.117 GB, free: 7.285 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.3721, allocations: 61.52 kB / 1.117 GB, free: 7.223 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003177/0.3753, allocations: 2.937 MB / 1.12 GB, free: 4.254 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007444/0.3761, allocations: 1.235 MB / 1.121 GB, free: 2.996 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001841/0.3763, allocations: 32.55 kB / 1.121 GB, free: 2.965 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.783e-05/0.3764, allocations: 23.42 kB / 1.121 GB, free: 2.941 MB / 0.8731 GB Notification: Performance of SimCode: time 7.71e-07/0.3764, allocations: 4 kB / 1.121 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of Templates: time 0.02398/0.4004, allocations: 14.44 MB / 1.136 GB, free: 4.543 MB / 0.8887 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)