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.001164/0.001164, allocations: 104.4 kB / 16.52 MB, free: 6.266 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.001168/0.001168, allocations: 197 kB / 17.44 MB, free: 5.887 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.397/1.397, allocations: 222.9 MB / 241.1 MB, free: 13.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7902/0.7902, allocations: 115.3 MB / 406.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 67.89 kB / 493.6 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4462/0.4478, allocations: 76.17 MB / 0.5564 GB, free: 35.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002891/0.4507, allocations: 1.474 MB / 0.5579 GB, free: 34.57 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006926/0.4577, allocations: 4.482 MB / 0.5622 GB, free: 31.65 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.127e-05/0.4578, allocations: 2.062 kB / 0.5622 GB, free: 31.65 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.458, allocations: 8.188 kB / 0.5622 GB, free: 31.65 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002809/0.4583, allocations: 33.08 kB / 0.5623 GB, free: 31.63 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.004567/0.4629, allocations: 1.174 MB / 0.5634 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.4631, allocations: 119 kB / 0.5635 GB, free: 31.13 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.908e-05/0.4632, allocations: 3.562 kB / 0.5635 GB, free: 31.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.513e-05/0.4633, allocations: 48.06 kB / 0.5636 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003542/0.4637, allocations: 227.4 kB / 0.5638 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.035e-05/0.4637, allocations: 14.41 kB / 0.5638 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005172/0.4689, allocations: 2.188 MB / 0.566 GB, free: 30.42 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001003/0.4699, allocations: 0.7495 MB / 0.5667 GB, free: 30.24 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005127/0.4705, allocations: 0.5027 MB / 0.5672 GB, free: 29.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004578/0.475, allocations: 1.779 MB / 0.5689 GB, free: 29.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.4751, allocations: 0 / 0.5689 GB, free: 29.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4751, allocations: 1.969 kB / 0.5689 GB, free: 29.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.4751, allocations: 0 / 0.5689 GB, free: 29.51 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.01068/0.4858, allocations: 1.964 MB / 0.5708 GB, free: 28.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4859, allocations: 14.25 kB / 0.5708 GB, free: 28.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005365/0.4864, allocations: 161.1 kB / 0.571 GB, free: 28.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006618/0.4871, allocations: 0.5713 MB / 0.5716 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.4871, allocations: 4.625 kB / 0.5716 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.4872, allocations: 14.67 kB / 0.5716 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005207/0.4877, allocations: 398.6 kB / 0.572 GB, free: 27.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.4877, allocations: 0 / 0.572 GB, free: 27.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.4877, allocations: 3.062 kB / 0.572 GB, free: 27.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.4877, allocations: 4.875 kB / 0.572 GB, free: 27.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00054/0.4883, allocations: 439.1 kB / 0.5724 GB, free: 27.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.4894, allocations: 0.9366 MB / 0.5733 GB, free: 27.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006447/0.4901, allocations: 0.5676 MB / 0.5739 GB, free: 26.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.4905, allocations: 336.2 kB / 0.5742 GB, free: 26.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000954/0.4915, allocations: 1.027 MB / 0.5752 GB, free: 25.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004987/0.492, allocations: 402.1 kB / 0.5756 GB, free: 25.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 2.014e-06/0.492, allocations: 0 / 0.5756 GB, free: 25.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001891/0.4939, allocations: 1.366 MB / 0.5769 GB, free: 25.57 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.494, allocations: 85.31 kB / 0.577 GB, free: 25.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003025/0.497, allocations: 2.225 MB / 0.5792 GB, free: 24.69 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.224e-05/0.4971, allocations: 30.05 kB / 0.5792 GB, free: 24.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003804/0.4975, allocations: 0.5245 MB / 0.5797 GB, free: 24.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.4975, allocations: 16.92 kB / 0.5797 GB, free: 24.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005323/0.4981, allocations: 456.5 kB / 0.5801 GB, free: 24.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.803e-05/0.4981, allocations: 304.4 kB / 0.5804 GB, free: 23.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002182/0.5003, allocations: 2.059 MB / 0.5824 GB, free: 23.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002398/0.5027, allocations: 2.233 MB / 0.5846 GB, free: 22.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008013/0.5107, allocations: 4.681 MB / 0.5892 GB, free: 18.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.5108, allocations: 1.25 kB / 0.5892 GB, free: 18.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.00512/0.5159, allocations: 6.24 MB / 0.5953 GB, free: 12.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.516, allocations: 8 kB / 0.5953 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.516, allocations: 1.453 kB / 0.5953 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.516, allocations: 8.547 kB / 0.5953 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.5162, allocations: 20.88 kB / 0.5953 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.5162, allocations: 0 / 0.5953 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.5172, allocations: 300 kB / 0.5956 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.5173, allocations: 19.98 kB / 0.5956 GB, free: 11.75 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.0007773/0.518, allocations: 469.1 kB / 0.5961 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.5182, allocations: 145.6 kB / 0.5962 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.5185, allocations: 149.9 kB / 0.5964 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.5186, allocations: 4 kB / 0.5964 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.5186, allocations: 1.719 kB / 0.5964 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.5186, allocations: 0 / 0.5964 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007614/0.5193, allocations: 0.7788 MB / 0.5971 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5194, allocations: 0 / 0.5971 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.291e-05/0.5194, allocations: 10.66 kB / 0.5971 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.5194, allocations: 0 / 0.5971 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.5195, allocations: 7.984 kB / 0.5971 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.5195, allocations: 0 / 0.5971 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5195, allocations: 0 / 0.5971 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007119/0.5202, allocations: 1.08 MB / 0.5982 GB, free: 9.043 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.5204, allocations: 224.1 kB / 0.5984 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.5205, allocations: 3.984 kB / 0.5984 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.5207, allocations: 11.88 kB / 0.5984 GB, free: 8.789 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.5207, allocations: 11.98 kB / 0.5984 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.5208, allocations: 15.98 kB / 0.5985 GB, free: 8.762 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001267/0.522, allocations: 1.303 MB / 0.5997 GB, free: 7.445 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5221, allocations: 0 / 0.5997 GB, free: 7.445 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002692/0.5248, allocations: 0.6287 MB / 0.6003 GB, free: 6.816 MB / 446.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.002081/0.5268, allocations: 0.6855 MB / 0.601 GB, free: 6.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.5293, allocations: 3.552 MB / 0.6045 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5293, allocations: 4.062 kB / 0.6045 GB, free: 2.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.5296, allocations: 343.7 kB / 0.6048 GB, free: 2.254 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005601/0.5301, allocations: 68.66 kB / 0.6049 GB, free: 2.184 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.5336, allocations: 3.311 MB / 0.6081 GB, free: 14.83 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007972/0.5344, allocations: 1.231 MB / 0.6093 GB, free: 13.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.5346, allocations: 27.42 kB / 0.6093 GB, free: 13.55 MB / 462.1 MB Notification: Performance of SimCode: time 3.71e-07/0.5346, allocations: 0 / 0.6093 GB, free: 13.55 MB / 462.1 MB Notification: Performance of Templates: time 0.03512/0.5697, allocations: 19.81 MB / 0.6287 GB, free: 9.742 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)