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.001132/0.001132, allocations: 108.3 kB / 16.64 MB, free: 6.371 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.001095/0.001095, allocations: 197.3 kB / 17.56 MB, free: 5.797 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.359/1.359, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7581/0.7581, allocations: 122.9 MB / 414.2 MB, free: 64 kB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.91 kB / 0.4913 GB, free: 7.766 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4243/0.4256, allocations: 77.92 MB / 0.5674 GB, free: 32.72 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.003385/0.429, allocations: 1.481 MB / 0.5688 GB, free: 31.69 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007398/0.4364, allocations: 4.222 MB / 0.5729 GB, free: 28.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.4366, allocations: 3.938 kB / 0.5729 GB, free: 28.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.4368, allocations: 11.52 kB / 0.573 GB, free: 28.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.4371, allocations: 21.55 kB / 0.573 GB, free: 28.83 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.006634/0.4438, allocations: 1.342 MB / 0.5743 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003038/0.4441, allocations: 96.3 kB / 0.5744 GB, free: 28.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.383e-05/0.4442, allocations: 4.484 kB / 0.5744 GB, free: 28.32 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.4443, allocations: 50.42 kB / 0.5744 GB, free: 28.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005489/0.4449, allocations: 234.8 kB / 0.5746 GB, free: 28.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.272e-05/0.445, allocations: 13.66 kB / 0.5747 GB, free: 28.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007177/0.4521, allocations: 2.193 MB / 0.5768 GB, free: 27.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001403/0.4536, allocations: 0.7622 MB / 0.5775 GB, free: 27.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006798/0.4543, allocations: 0.495 MB / 0.578 GB, free: 27.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005305/0.4596, allocations: 1.754 MB / 0.5797 GB, free: 26.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4596, allocations: 1.5 kB / 0.5797 GB, free: 26.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4597, allocations: 0.9062 kB / 0.5797 GB, free: 26.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.4597, allocations: 0 / 0.5797 GB, free: 26.25 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.01026/0.4699, allocations: 1.967 MB / 0.5817 GB, free: 24.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.47, allocations: 12 kB / 0.5817 GB, free: 24.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004685/0.4705, allocations: 161.6 kB / 0.5818 GB, free: 24.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005532/0.4711, allocations: 0.5747 MB / 0.5824 GB, free: 24.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.4711, allocations: 4.688 kB / 0.5824 GB, free: 24.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.4711, allocations: 5.812 kB / 0.5824 GB, free: 24.16 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.4716, allocations: 396.2 kB / 0.5828 GB, free: 24.03 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.4716, allocations: 0 / 0.5828 GB, free: 24.03 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.4717, allocations: 0.8125 kB / 0.5828 GB, free: 24.03 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.4717, allocations: 1.094 kB / 0.5828 GB, free: 24.03 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004593/0.4721, allocations: 441.5 kB / 0.5832 GB, free: 23.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009642/0.4731, allocations: 0.9162 MB / 0.5841 GB, free: 23.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/0.4737, allocations: 0.5643 MB / 0.5847 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003617/0.4741, allocations: 334.6 kB / 0.585 GB, free: 23.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009447/0.4751, allocations: 1.037 MB / 0.586 GB, free: 21.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000433/0.4755, allocations: 407.3 kB / 0.5864 GB, free: 21.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.4755, allocations: 2.188 kB / 0.5864 GB, free: 21.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001784/0.4773, allocations: 1.362 MB / 0.5877 GB, free: 21.44 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.4774, allocations: 86.16 kB / 0.5878 GB, free: 21.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.4794, allocations: 2.22 MB / 0.59 GB, free: 19.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.398e-05/0.4794, allocations: 29.7 kB / 0.59 GB, free: 19.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.4797, allocations: 0.5173 MB / 0.5905 GB, free: 18.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.4798, allocations: 31.62 kB / 0.5905 GB, free: 18.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002797/0.48, allocations: 464.9 kB / 0.591 GB, free: 18.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.4801, allocations: 301.1 kB / 0.5912 GB, free: 17.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.4813, allocations: 2.058 MB / 0.5933 GB, free: 15.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.4825, allocations: 2.232 MB / 0.5954 GB, free: 13.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006505/0.489, allocations: 4.683 MB / 0.6 GB, free: 8.887 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.4891, allocations: 0 / 0.6 GB, free: 8.887 MB / 446.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.004898/0.494, allocations: 6.237 MB / 0.6061 GB, free: 2.543 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.494, allocations: 5.875 kB / 0.6061 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.4941, allocations: 4.562 kB / 0.6061 GB, free: 2.535 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.4941, allocations: 3.984 kB / 0.6061 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.4942, allocations: 20.98 kB / 0.6061 GB, free: 2.512 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.4942, allocations: 4.312 kB / 0.6061 GB, free: 2.508 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008124/0.4951, allocations: 296.2 kB / 0.6064 GB, free: 2.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.4951, allocations: 23.98 kB / 0.6064 GB, free: 2.191 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.0006726/0.4958, allocations: 473.5 kB / 0.6069 GB, free: 1.727 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.4959, allocations: 149.5 kB / 0.607 GB, free: 1.578 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003505/0.4963, allocations: 151.4 kB / 0.6072 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.4963, allocations: 0 / 0.6072 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4963, allocations: 0 / 0.6072 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.4963, allocations: 4 kB / 0.6072 GB, free: 1.422 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006099/0.4969, allocations: 0.7711 MB / 0.6079 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4969, allocations: 0 / 0.6079 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.137e-05/0.497, allocations: 23.86 kB / 0.608 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.497, allocations: 3.156 kB / 0.608 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.497, allocations: 4 kB / 0.608 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4971, allocations: 3.984 kB / 0.608 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4971, allocations: 0 / 0.608 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008123/0.4979, allocations: 1.073 MB / 0.609 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.4981, allocations: 218.7 kB / 0.6092 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.896e-05/0.4982, allocations: 192 / 0.6092 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.4984, allocations: 15.98 kB / 0.6092 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.4984, allocations: 4 kB / 0.6092 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.326e-05/0.4985, allocations: 19.91 kB / 0.6093 GB, free: 15.19 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001449/0.5, allocations: 1.298 MB / 0.6105 GB, free: 13.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.5, allocations: 0 / 0.6105 GB, free: 13.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002204/0.5022, allocations: 0.6286 MB / 0.6111 GB, free: 13.25 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.002113/0.5043, allocations: 0.6852 MB / 0.6118 GB, free: 12.58 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003162/0.5075, allocations: 3.556 MB / 0.6153 GB, free: 9.008 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5075, allocations: 0 / 0.6153 GB, free: 9.008 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.5078, allocations: 339.8 kB / 0.6156 GB, free: 8.676 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006201/0.5085, allocations: 64.39 kB / 0.6157 GB, free: 8.609 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/0.5124, allocations: 3.318 MB / 0.6189 GB, free: 5.254 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007356/0.5132, allocations: 1.235 MB / 0.6201 GB, free: 3.988 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.5134, allocations: 27.41 kB / 0.6201 GB, free: 3.965 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5134, allocations: 0 / 0.6201 GB, free: 3.965 MB / 462.1 MB Notification: Performance of Templates: time 0.03373/0.5471, allocations: 19.82 MB / 0.6395 GB, free: 148 kB / 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)