Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001568/0.001568, allocations: 105.8 kB / 15.98 MB, free: 6.355 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.001748/0.001748, allocations: 191.3 kB / 16.91 MB, free: 6.195 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.347/1.347, allocations: 222.9 MB / 240.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7536/0.7536, allocations: 122.9 MB / 413.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.91 kB / 0.4907 GB, free: 7.66 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3359, allocations: 77.92 MB / 0.5668 GB, free: 32.69 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002216/0.3381, allocations: 1.482 MB / 0.5682 GB, free: 31.66 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00528/0.3434, allocations: 4.226 MB / 0.5723 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.274e-05/0.3435, allocations: 0 / 0.5723 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.3437, allocations: 9.516 kB / 0.5724 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.3439, allocations: 28.06 kB / 0.5724 GB, free: 28.8 MB / 446.1 MB [/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/IBPSA 4.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.003885/0.3478, allocations: 1.339 MB / 0.5737 GB, free: 28.33 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.348, allocations: 94 kB / 0.5738 GB, free: 28.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.805e-05/0.348, allocations: 9.75 kB / 0.5738 GB, free: 28.3 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.986e-05/0.3481, allocations: 53.31 kB / 0.5738 GB, free: 28.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002967/0.3484, allocations: 229.4 kB / 0.5741 GB, free: 28.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.835e-05/0.3484, allocations: 13.09 kB / 0.5741 GB, free: 28.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003417/0.3519, allocations: 2.199 MB / 0.5762 GB, free: 27.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007051/0.3526, allocations: 0.7543 MB / 0.577 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00035/0.353, allocations: 0.4983 MB / 0.5774 GB, free: 27.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004518/0.3575, allocations: 2.544 MB / 0.5799 GB, free: 25.65 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3575, allocations: 1.719 kB / 0.5799 GB, free: 25.65 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3575, allocations: 0 / 0.5799 GB, free: 25.65 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.897e-05/0.3576, allocations: 0 / 0.5799 GB, free: 25.65 MB / 446.1 MB 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.01077/0.3684, allocations: 1.971 MB / 0.5818 GB, free: 24.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3684, allocations: 14.11 kB / 0.5819 GB, free: 24.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004458/0.3689, allocations: 166.4 kB / 0.582 GB, free: 24.03 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004819/0.3694, allocations: 0.5604 MB / 0.5826 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.3694, allocations: 10.86 kB / 0.5826 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.3694, allocations: 8.031 kB / 0.5826 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.3698, allocations: 394.2 kB / 0.583 GB, free: 23.42 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3699, allocations: 2.281 kB / 0.583 GB, free: 23.42 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.3699, allocations: 0 / 0.583 GB, free: 23.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3699, allocations: 2.125 kB / 0.583 GB, free: 23.42 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004078/0.3703, allocations: 434.1 kB / 0.5834 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008594/0.3712, allocations: 0.9306 MB / 0.5843 GB, free: 22.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004887/0.3717, allocations: 0.5636 MB / 0.5848 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.372, allocations: 333.6 kB / 0.5852 GB, free: 22.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007885/0.3728, allocations: 1.03 MB / 0.5862 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.3732, allocations: 409.1 kB / 0.5866 GB, free: 21.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 2.134e-06/0.3732, allocations: 3.984 kB / 0.5866 GB, free: 21.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001374/0.3746, allocations: 1.364 MB / 0.5879 GB, free: 20.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.3746, allocations: 87.53 kB / 0.588 GB, free: 20.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/0.3765, allocations: 2.223 MB / 0.5901 GB, free: 18.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.572e-05/0.3765, allocations: 29.7 kB / 0.5902 GB, free: 18.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.3768, allocations: 0.5212 MB / 0.5907 GB, free: 17.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.3769, allocations: 23.66 kB / 0.5907 GB, free: 17.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.3772, allocations: 455.4 kB / 0.5911 GB, free: 17.44 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.768e-05/0.3772, allocations: 309.1 kB / 0.5914 GB, free: 17.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.3784, allocations: 2.055 MB / 0.5934 GB, free: 15.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/0.3796, allocations: 2.235 MB / 0.5956 GB, free: 12.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006733/0.3864, allocations: 4.684 MB / 0.6002 GB, free: 8.031 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3864, allocations: 0 / 0.6002 GB, free: 8.031 MB / 446.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.004812/0.3912, allocations: 6.24 MB / 0.6063 GB, free: 1.684 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3913, allocations: 4.938 kB / 0.6063 GB, free: 1.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.3913, allocations: 7.938 kB / 0.6063 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3913, allocations: 0 / 0.6063 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.3914, allocations: 17.23 kB / 0.6063 GB, free: 1.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.3915, allocations: 4 kB / 0.6063 GB, free: 1.652 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007154/0.3922, allocations: 296.5 kB / 0.6066 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.096e-05/0.3922, allocations: 27.98 kB / 0.6066 GB, free: 1.332 MB / 446.1 MB 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.000606/0.3929, allocations: 472.3 kB / 0.6071 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.393, allocations: 147.4 kB / 0.6072 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003915/0.3934, allocations: 149.2 kB / 0.6074 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3934, allocations: 0 / 0.6074 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3934, allocations: 0 / 0.6074 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3934, allocations: 4 kB / 0.6074 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007703/0.3942, allocations: 0.7711 MB / 0.6081 GB, free: 15.74 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3942, allocations: 3.25 kB / 0.6081 GB, free: 15.74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.121e-05/0.3943, allocations: 11.94 kB / 0.6081 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3943, allocations: 0 / 0.6081 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.3943, allocations: 11.98 kB / 0.6081 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3944, allocations: 0 / 0.6081 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3944, allocations: 3.938 kB / 0.6082 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009405/0.3953, allocations: 1.076 MB / 0.6092 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.3956, allocations: 222.7 kB / 0.6094 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.3957, allocations: 3.984 kB / 0.6094 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.3959, allocations: 4 kB / 0.6094 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.396, allocations: 12.7 kB / 0.6094 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.396, allocations: 7.984 kB / 0.6094 GB, free: 14.35 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001569/0.3976, allocations: 1.31 MB / 0.6107 GB, free: 13.03 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3976, allocations: 0 / 0.6107 GB, free: 13.03 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001908/0.3995, allocations: 0.6247 MB / 0.6113 GB, free: 12.4 MB / 462.1 MB 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.002458/0.402, allocations: 0.6856 MB / 0.612 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003066/0.4051, allocations: 3.556 MB / 0.6155 GB, free: 8.156 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4051, allocations: 0 / 0.6155 GB, free: 8.156 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.4054, allocations: 339.9 kB / 0.6158 GB, free: 7.824 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.406, allocations: 63.78 kB / 0.6159 GB, free: 7.758 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003956/0.41, allocations: 3.253 MB / 0.619 GB, free: 4.473 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008259/0.4108, allocations: 1.235 MB / 0.6202 GB, free: 3.215 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.411, allocations: 32.56 kB / 0.6203 GB, free: 3.184 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.4111, allocations: 23.42 kB / 0.6203 GB, free: 3.164 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4111, allocations: 0 / 0.6203 GB, free: 3.164 MB / 462.1 MB Notification: Performance of Templates: time 0.0264/0.4375, allocations: 14.42 MB / 0.6344 GB, free: 4.789 MB / 478.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)