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.001433/0.001433, allocations: 101.4 kB / 16.4 MB, free: 6.512 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.001559/0.001559, allocations: 192 kB / 17.34 MB, free: 5.738 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7688/0.7688, allocations: 122.9 MB / 414.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 60.72 kB / 0.5685 GB, free: 28.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.141, allocations: 77.93 MB / 0.6446 GB, free: 8.977 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002799/0.1438, allocations: 1.418 MB / 0.646 GB, free: 7.547 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00724/0.1511, allocations: 4.204 MB / 0.6501 GB, free: 3.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.053e-05/0.1512, allocations: 4 kB / 0.6501 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.1514, allocations: 15.86 kB / 0.6501 GB, free: 3.301 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.1516, allocations: 35.78 kB / 0.6502 GB, free: 3.266 MB / 494.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.003831/0.1555, allocations: 1.495 MB / 0.6516 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001395/0.1556, allocations: 87.73 kB / 0.6517 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.514e-05/0.1557, allocations: 11.98 kB / 0.6517 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.253e-05/0.1558, allocations: 51.83 kB / 0.6518 GB, free: 1.621 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.156, allocations: 157.6 kB / 0.6519 GB, free: 1.465 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.207e-05/0.156, allocations: 12 kB / 0.6519 GB, free: 1.453 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003141/0.1592, allocations: 2.204 MB / 0.6541 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006365/0.1598, allocations: 0.7575 MB / 0.6548 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003783/0.1602, allocations: 0.5002 MB / 0.6553 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003098/0.1633, allocations: 2.561 MB / 0.6578 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1634, allocations: 0 / 0.6578 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.1634, allocations: 4 kB / 0.6578 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.194e-05/0.1634, allocations: 3.938 kB / 0.6578 GB, free: 11.4 MB / 0.4981 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.01025/0.1736, allocations: 2.042 MB / 0.6598 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1737, allocations: 8.625 kB / 0.6598 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000424/0.1741, allocations: 175.6 kB / 0.66 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005333/0.1747, allocations: 0.5742 MB / 0.6606 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.1747, allocations: 8.375 kB / 0.6606 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.1747, allocations: 8.375 kB / 0.6606 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004024/0.1751, allocations: 395.4 kB / 0.661 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.1751, allocations: 0 / 0.661 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.1752, allocations: 0 / 0.661 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1752, allocations: 0 / 0.661 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004095/0.1756, allocations: 439.7 kB / 0.6614 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007808/0.1764, allocations: 0.9382 MB / 0.6623 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/0.1769, allocations: 0.5673 MB / 0.6628 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.1772, allocations: 333.6 kB / 0.6632 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009438/0.1781, allocations: 1.028 MB / 0.6642 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003823/0.1785, allocations: 404.8 kB / 0.6646 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.1785, allocations: 4 kB / 0.6646 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001327/0.1799, allocations: 1.371 MB / 0.6659 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.1799, allocations: 89.08 kB / 0.666 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/0.182, allocations: 2.229 MB / 0.6682 GB, free: 320 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.182, allocations: 29.7 kB / 0.6682 GB, free: 284 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003811/0.1824, allocations: 0.522 MB / 0.6687 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.1825, allocations: 27.84 kB / 0.6687 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003893/0.1829, allocations: 455.4 kB / 0.6692 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.73e-05/0.183, allocations: 301.1 kB / 0.6694 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001626/0.1846, allocations: 2.061 MB / 0.6715 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.1864, allocations: 2.226 MB / 0.6736 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007564/0.1939, allocations: 4.689 MB / 0.6782 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.194, allocations: 3.984 kB / 0.6782 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.006049/0.2, allocations: 6.244 MB / 0.6843 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.2001, allocations: 5.562 kB / 0.6843 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.2001, allocations: 7.938 kB / 0.6843 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.2002, allocations: 4.031 kB / 0.6843 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2003, allocations: 15.98 kB / 0.6843 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2003, allocations: 4.062 kB / 0.6843 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006689/0.201, allocations: 316.6 kB / 0.6846 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.06e-05/0.2011, allocations: 23.98 kB / 0.6847 GB, free: 15.13 MB / 0.5294 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.0005988/0.2017, allocations: 487.4 kB / 0.6851 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.2018, allocations: 150.7 kB / 0.6853 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003685/0.2022, allocations: 148 kB / 0.6854 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2022, allocations: 0 / 0.6854 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2022, allocations: 3.938 kB / 0.6854 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2022, allocations: 0 / 0.6854 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006499/0.2028, allocations: 0.7672 MB / 0.6862 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2029, allocations: 0 / 0.6862 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.305e-05/0.2029, allocations: 15.95 kB / 0.6862 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.203, allocations: 4 kB / 0.6862 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.203, allocations: 0 / 0.6862 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.203, allocations: 3.938 kB / 0.6862 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.203, allocations: 4 kB / 0.6862 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009468/0.2039, allocations: 1.093 MB / 0.6873 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.2041, allocations: 227.8 kB / 0.6875 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.751e-05/0.2042, allocations: 4 kB / 0.6875 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.2044, allocations: 7.984 kB / 0.6875 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.566e-05/0.2045, allocations: 0 / 0.6875 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-05/0.2045, allocations: 15.97 kB / 0.6875 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001411/0.2059, allocations: 1.305 MB / 0.6888 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.2059, allocations: 0 / 0.6888 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00156/0.2075, allocations: 0.6352 MB / 0.6894 GB, free: 10.15 MB / 0.5294 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.001787/0.2093, allocations: 0.706 MB / 0.6901 GB, free: 9.453 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003012/0.2123, allocations: 3.544 MB / 0.6936 GB, free: 5.895 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.2124, allocations: 4 kB / 0.6936 GB, free: 5.891 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.2127, allocations: 343.9 kB / 0.6939 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.2132, allocations: 55.86 kB / 0.6939 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.2165, allocations: 2.95 MB / 0.6968 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007628/0.2172, allocations: 1.235 MB / 0.698 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001666/0.2174, allocations: 32.78 kB / 0.6981 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.2175, allocations: 35.36 kB / 0.6981 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of SimCode: time 7.91e-07/0.2175, allocations: 0 / 0.6981 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of Templates: time 0.02448/0.242, allocations: 14.43 MB / 0.7122 GB, free: 2.785 MB / 0.545 GB 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)