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.001317/0.001316, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001152/0.001153, allocations: 192.5 kB / 16.14 MB, free: 6.656 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.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.669/2.669, allocations: 472.6 MB / 0.7447 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 66.17 kB / 0.9114 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2752, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002597/0.2778, allocations: 1.491 MB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006607/0.2845, allocations: 4.496 MB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.149e-05/0.2845, allocations: 0 / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.2847, allocations: 11.92 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001892/0.2849, allocations: 27.84 kB / 1.073 GB, free: 4.871 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002991/0.2879, allocations: 1.189 MB / 1.075 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001304/0.288, allocations: 115.7 kB / 1.075 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.449e-05/0.2881, allocations: 11.97 kB / 1.075 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.2882, allocations: 47.8 kB / 1.075 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00029/0.2885, allocations: 224.9 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.2885, allocations: 16 kB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.2916, allocations: 2.184 MB / 1.077 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000655/0.2923, allocations: 0.742 MB / 1.078 GB, free: 348 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004053/0.2927, allocations: 0.508 MB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002972/0.2957, allocations: 2.582 MB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2957, allocations: 0 / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.52e-07/0.2957, allocations: 0 / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.2957, allocations: 0 / 1.081 GB, free: 13.24 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.008774/0.3045, allocations: 1.966 MB / 1.083 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.3046, allocations: 12.03 kB / 1.083 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004647/0.305, allocations: 158.6 kB / 1.083 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005545/0.3056, allocations: 0.5735 MB / 1.084 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.3056, allocations: 384 / 1.084 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.364e-05/0.3057, allocations: 12.36 kB / 1.084 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004255/0.3061, allocations: 399.5 kB / 1.084 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3061, allocations: 0 / 1.084 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.3061, allocations: 0 / 1.084 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.3062, allocations: 4 kB / 1.084 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004325/0.3066, allocations: 435.7 kB / 1.084 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008135/0.3074, allocations: 0.9258 MB / 1.085 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005108/0.3079, allocations: 0.5633 MB / 1.086 GB, free: 8 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.3083, allocations: 337.7 kB / 1.086 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00105/0.3093, allocations: 1.032 MB / 1.087 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004132/0.3098, allocations: 404.8 kB / 1.087 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.3098, allocations: 0 / 1.087 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001411/0.3112, allocations: 1.374 MB / 1.089 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.3112, allocations: 85.05 kB / 1.089 GB, free: 4.512 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.3134, allocations: 2.22 MB / 1.091 GB, free: 2.262 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/0.3134, allocations: 37.69 kB / 1.091 GB, free: 2.219 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.3139, allocations: 0.5173 MB / 1.092 GB, free: 1.695 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.3139, allocations: 23.73 kB / 1.092 GB, free: 1.672 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004132/0.3143, allocations: 463.5 kB / 1.092 GB, free: 1.211 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.274e-05/0.3144, allocations: 301.1 kB / 1.092 GB, free: 0.9141 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.3161, allocations: 2.057 MB / 1.094 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001895/0.318, allocations: 2.236 MB / 1.097 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008/0.326, allocations: 4.682 MB / 1.101 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.3261, allocations: 4 kB / 1.101 GB, free: 7.797 MB / 0.8575 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.006224/0.3323, allocations: 6.239 MB / 1.107 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3324, allocations: 4 kB / 1.107 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.3324, allocations: 0 / 1.107 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3324, allocations: 4 kB / 1.107 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.3326, allocations: 15.98 kB / 1.107 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3326, allocations: 4.031 kB / 1.107 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006015/0.3332, allocations: 299.2 kB / 1.108 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.431e-05/0.3333, allocations: 23.98 kB / 1.108 GB, free: 1.102 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.0005729/0.3338, allocations: 466.7 kB / 1.108 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.334, allocations: 149.6 kB / 1.108 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003691/0.3343, allocations: 144 kB / 1.108 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3344, allocations: 4 kB / 1.108 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.3344, allocations: 3.984 kB / 1.108 GB, free: 336 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3344, allocations: 0 / 1.108 GB, free: 336 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006761/0.3351, allocations: 0.7787 MB / 1.109 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3351, allocations: 0 / 1.109 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.933e-05/0.3351, allocations: 15.86 kB / 1.109 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3352, allocations: 4.031 kB / 1.109 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3352, allocations: 4 kB / 1.109 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3352, allocations: 0 / 1.109 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3352, allocations: 0 / 1.109 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009618/0.3362, allocations: 1.072 MB / 1.11 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.3364, allocations: 222.7 kB / 1.11 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.3365, allocations: 12 kB / 1.11 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.3367, allocations: 3.984 kB / 1.11 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-05/0.3367, allocations: 4 kB / 1.11 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.3368, allocations: 19.91 kB / 1.11 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001476/0.3383, allocations: 1.302 MB / 1.112 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.393e-06/0.3383, allocations: 0 / 1.112 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001543/0.3398, allocations: 0.6364 MB / 1.112 GB, free: 12.15 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.001896/0.3417, allocations: 0.6849 MB / 1.113 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003101/0.3449, allocations: 3.556 MB / 1.116 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3449, allocations: 0 / 1.116 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000332/0.3452, allocations: 343.8 kB / 1.117 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004917/0.3457, allocations: 55.86 kB / 1.117 GB, free: 7.508 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/0.3492, allocations: 3.245 MB / 1.12 GB, free: 4.23 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007333/0.35, allocations: 1.239 MB / 1.121 GB, free: 2.965 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002038/0.3502, allocations: 36.5 kB / 1.121 GB, free: 2.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.3503, allocations: 31.41 kB / 1.121 GB, free: 2.898 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.3503, allocations: 0 / 1.121 GB, free: 2.898 MB / 0.8731 GB Notification: Performance of Templates: time 0.02418/0.3745, allocations: 14.15 MB / 1.135 GB, free: 4.781 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)