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.001118/0.001118, allocations: 109.1 kB / 15.99 MB, free: 6.344 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.001036/0.001036, allocations: 195.8 kB / 16.91 MB, free: 6.188 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.323/1.323, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7789/0.7789, allocations: 126.1 MB / 416.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 0.4945 GB, free: 3.824 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3534, allocations: 78.7 MB / 0.5714 GB, free: 31.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002236/0.3556, allocations: 1.476 MB / 0.5728 GB, free: 30.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005305/0.361, allocations: 4.219 MB / 0.5769 GB, free: 27.44 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.727e-05/0.3611, allocations: 5.25 kB / 0.5769 GB, free: 27.43 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.3613, allocations: 8.469 kB / 0.5769 GB, free: 27.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002893/0.3616, allocations: 29.34 kB / 0.577 GB, free: 27.41 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.004164/0.3657, allocations: 1.353 MB / 0.5783 GB, free: 26.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.3659, allocations: 90.48 kB / 0.5784 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.416e-05/0.3659, allocations: 4.688 kB / 0.5784 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.33e-05/0.366, allocations: 52.31 kB / 0.5784 GB, free: 26.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.3663, allocations: 231.3 kB / 0.5786 GB, free: 26.63 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.3664, allocations: 13.16 kB / 0.5787 GB, free: 26.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.3693, allocations: 2.196 MB / 0.5808 GB, free: 25.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006262/0.37, allocations: 0.7489 MB / 0.5815 GB, free: 25.08 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000359/0.3704, allocations: 0.5074 MB / 0.582 GB, free: 24.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003026/0.3734, allocations: 2.548 MB / 0.5845 GB, free: 23.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3734, allocations: 0.5938 kB / 0.5845 GB, free: 23.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3734, allocations: 1.656 kB / 0.5845 GB, free: 23.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.3734, allocations: 0.875 kB / 0.5845 GB, free: 23.27 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.009515/0.383, allocations: 1.972 MB / 0.5864 GB, free: 21.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.383, allocations: 9.406 kB / 0.5865 GB, free: 21.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004633/0.3835, allocations: 160 kB / 0.5866 GB, free: 21.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005468/0.384, allocations: 0.5649 MB / 0.5872 GB, free: 21.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.3841, allocations: 10.84 kB / 0.5872 GB, free: 21.17 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.3841, allocations: 9.938 kB / 0.5872 GB, free: 21.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005201/0.3846, allocations: 399.5 kB / 0.5876 GB, free: 21.04 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.3847, allocations: 0.9688 kB / 0.5876 GB, free: 21.04 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.3847, allocations: 5.156 kB / 0.5876 GB, free: 21.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.3847, allocations: 2.281 kB / 0.5876 GB, free: 21.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.3852, allocations: 434.5 kB / 0.588 GB, free: 20.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007391/0.3859, allocations: 0.9177 MB / 0.5889 GB, free: 20.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004598/0.3864, allocations: 0.5691 MB / 0.5894 GB, free: 20.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.3866, allocations: 337.7 kB / 0.5898 GB, free: 19.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007634/0.3874, allocations: 1.03 MB / 0.5908 GB, free: 18.53 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.3877, allocations: 403.5 kB / 0.5912 GB, free: 18.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.763e-06/0.3877, allocations: 0 / 0.5912 GB, free: 18.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001028/0.3888, allocations: 1.368 MB / 0.5925 GB, free: 16.74 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.3888, allocations: 85.09 kB / 0.5926 GB, free: 16.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.3904, allocations: 2.217 MB / 0.5947 GB, free: 14.39 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.3905, allocations: 33.7 kB / 0.5948 GB, free: 14.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.3907, allocations: 0.5189 MB / 0.5953 GB, free: 13.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.3908, allocations: 27.64 kB / 0.5953 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002815/0.3911, allocations: 459.4 kB / 0.5957 GB, free: 13.35 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.439e-05/0.3911, allocations: 305.8 kB / 0.596 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.3923, allocations: 2.058 MB / 0.598 GB, free: 10.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.3936, allocations: 2.231 MB / 0.6002 GB, free: 8.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006744/0.4003, allocations: 4.688 MB / 0.6048 GB, free: 3.938 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4003, allocations: 0 / 0.6048 GB, free: 3.938 MB / 446.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.005229/0.4056, allocations: 6.233 MB / 0.6109 GB, free: 13.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4056, allocations: 4 kB / 0.6109 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.4056, allocations: 7.938 kB / 0.6109 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4056, allocations: 4.719 kB / 0.6109 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.4058, allocations: 17.14 kB / 0.6109 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.4058, allocations: 0 / 0.6109 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007412/0.4065, allocations: 295.2 kB / 0.6112 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.4066, allocations: 28.52 kB / 0.6112 GB, free: 13.24 MB / 462.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.0006481/0.4073, allocations: 476.4 kB / 0.6117 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.4074, allocations: 142.2 kB / 0.6118 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003518/0.4077, allocations: 149.5 kB / 0.612 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.4078, allocations: 7.219 kB / 0.612 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.4078, allocations: 0 / 0.612 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.4078, allocations: 3.938 kB / 0.612 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000726/0.4085, allocations: 0.771 MB / 0.6127 GB, free: 11.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4085, allocations: 0 / 0.6127 GB, free: 11.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.431e-05/0.4086, allocations: 11.98 kB / 0.6127 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.4086, allocations: 4 kB / 0.6127 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.4086, allocations: 0 / 0.6127 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4086, allocations: 4.5 kB / 0.6127 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4087, allocations: 4 kB / 0.6127 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009079/0.4096, allocations: 1.084 MB / 0.6138 GB, free: 10.52 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.4097, allocations: 214.8 kB / 0.614 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.4099, allocations: 4 kB / 0.614 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.4101, allocations: 7.984 kB / 0.614 GB, free: 10.28 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.4101, allocations: 8 kB / 0.614 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.502e-05/0.4102, allocations: 15.97 kB / 0.614 GB, free: 10.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001378/0.4115, allocations: 1.302 MB / 0.6153 GB, free: 8.941 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4116, allocations: 0 / 0.6153 GB, free: 8.941 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00187/0.4134, allocations: 0.6247 MB / 0.6159 GB, free: 8.316 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.0018/0.4152, allocations: 0.6974 MB / 0.6166 GB, free: 7.633 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.4181, allocations: 3.555 MB / 0.6201 GB, free: 4.066 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4182, allocations: 0 / 0.6201 GB, free: 4.066 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003102/0.4185, allocations: 343.8 kB / 0.6204 GB, free: 3.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004872/0.419, allocations: 60.67 kB / 0.6205 GB, free: 3.668 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003505/0.4225, allocations: 3.257 MB / 0.6236 GB, free: 388 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007186/0.4232, allocations: 1.235 MB / 0.6248 GB, free: 15.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.4234, allocations: 36.55 kB / 0.6249 GB, free: 15.08 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.4235, allocations: 31.42 kB / 0.6249 GB, free: 15.05 MB / 478.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4235, allocations: 0 / 0.6249 GB, free: 15.05 MB / 478.1 MB Notification: Performance of Templates: time 0.0246/0.4481, allocations: 14.4 MB / 0.639 GB, free: 0.6953 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)