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.001011/0.001011, allocations: 103.9 kB / 16.27 MB, free: 5.957 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.001014/0.001014, allocations: 186.8 kB / 17.19 MB, free: 5.594 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.331/1.331, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7692/0.7692, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.91 kB / 0.4911 GB, free: 7.387 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3437, allocations: 77.92 MB / 0.5672 GB, free: 32.95 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.003039/0.3468, allocations: 1.412 MB / 0.5686 GB, free: 31.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006429/0.3533, allocations: 4.192 MB / 0.5727 GB, free: 29.17 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.072e-05/0.3534, allocations: 5.812 kB / 0.5727 GB, free: 29.17 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.3536, allocations: 10.17 kB / 0.5727 GB, free: 29.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002733/0.3538, allocations: 31.86 kB / 0.5728 GB, free: 29.14 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.004973/0.3588, allocations: 1.501 MB / 0.5742 GB, free: 28.59 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.359, allocations: 90.78 kB / 0.5743 GB, free: 28.56 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.895e-05/0.3591, allocations: 5.609 kB / 0.5743 GB, free: 28.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.3592, allocations: 49.83 kB / 0.5744 GB, free: 28.54 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.3595, allocations: 161.6 kB / 0.5745 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.3596, allocations: 14.47 kB / 0.5745 GB, free: 28.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004244/0.3638, allocations: 2.16 MB / 0.5766 GB, free: 27.85 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008824/0.3647, allocations: 0.7621 MB / 0.5774 GB, free: 27.63 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000813/0.3656, allocations: 0.4919 MB / 0.5779 GB, free: 27.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004378/0.3699, allocations: 2.532 MB / 0.5803 GB, free: 25.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.37, allocations: 0 / 0.5803 GB, free: 25.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.37, allocations: 1.281 kB / 0.5803 GB, free: 25.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.825e-05/0.37, allocations: 0 / 0.5803 GB, free: 25.84 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.01154/0.3816, allocations: 1.967 MB / 0.5823 GB, free: 24.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3816, allocations: 10.75 kB / 0.5823 GB, free: 24.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005639/0.3822, allocations: 161.6 kB / 0.5824 GB, free: 24.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006703/0.3829, allocations: 0.5759 MB / 0.583 GB, free: 23.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3829, allocations: 3.406 kB / 0.583 GB, free: 23.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.383, allocations: 11.91 kB / 0.583 GB, free: 23.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000462/0.3834, allocations: 398.8 kB / 0.5834 GB, free: 23.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.3835, allocations: 1.344 kB / 0.5834 GB, free: 23.61 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.3835, allocations: 0 / 0.5834 GB, free: 23.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.3835, allocations: 1.25 kB / 0.5834 GB, free: 23.61 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004775/0.384, allocations: 436.8 kB / 0.5838 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.3851, allocations: 0.9249 MB / 0.5847 GB, free: 22.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005717/0.3857, allocations: 0.5603 MB / 0.5853 GB, free: 22.74 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003462/0.3861, allocations: 337 kB / 0.5856 GB, free: 22.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008498/0.3869, allocations: 1.025 MB / 0.5866 GB, free: 21.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004234/0.3874, allocations: 413.5 kB / 0.587 GB, free: 21.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 2.034e-06/0.3874, allocations: 0.5625 kB / 0.587 GB, free: 21.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001631/0.389, allocations: 1.366 MB / 0.5883 GB, free: 20.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.3891, allocations: 77.11 kB / 0.5884 GB, free: 20.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/0.3913, allocations: 2.224 MB / 0.5905 GB, free: 18.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.863e-05/0.3914, allocations: 27.64 kB / 0.5906 GB, free: 18.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000341/0.3917, allocations: 0.5212 MB / 0.5911 GB, free: 18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.3918, allocations: 31.62 kB / 0.5911 GB, free: 17.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/0.3921, allocations: 459.4 kB / 0.5916 GB, free: 17.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.817e-05/0.3921, allocations: 302.4 kB / 0.5918 GB, free: 17.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.3934, allocations: 2.058 MB / 0.5938 GB, free: 15.15 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/0.3948, allocations: 2.233 MB / 0.596 GB, free: 12.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006886/0.4017, allocations: 4.679 MB / 0.6006 GB, free: 8.109 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.4017, allocations: 0 / 0.6006 GB, free: 8.109 MB / 446.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.004834/0.4066, allocations: 6.241 MB / 0.6067 GB, free: 1.762 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4066, allocations: 9.031 kB / 0.6067 GB, free: 1.754 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/0.4067, allocations: 0 / 0.6067 GB, free: 1.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.4067, allocations: 7.984 kB / 0.6067 GB, free: 1.746 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.4068, allocations: 18.17 kB / 0.6067 GB, free: 1.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.4068, allocations: 320 / 0.6067 GB, free: 1.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007417/0.4076, allocations: 303.2 kB / 0.607 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.4076, allocations: 19.98 kB / 0.607 GB, free: 1.41 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.0005959/0.4082, allocations: 473.5 kB / 0.6075 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/0.4083, allocations: 150 kB / 0.6076 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003154/0.4087, allocations: 147.9 kB / 0.6078 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.4087, allocations: 0 / 0.6078 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.4087, allocations: 4 kB / 0.6078 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4087, allocations: 3.984 kB / 0.6078 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006017/0.4093, allocations: 0.7711 MB / 0.6085 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4093, allocations: 4 kB / 0.6085 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.4094, allocations: 11.88 kB / 0.6085 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4094, allocations: 3.984 kB / 0.6086 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.4094, allocations: 7.625 kB / 0.6086 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.4094, allocations: 7.922 kB / 0.6086 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4094, allocations: 0 / 0.6086 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008841/0.4103, allocations: 1.08 MB / 0.6096 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.4105, allocations: 219.4 kB / 0.6098 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.4106, allocations: 3.219 kB / 0.6098 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.4108, allocations: 4 kB / 0.6098 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.4109, allocations: 7.984 kB / 0.6098 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.4109, allocations: 15.92 kB / 0.6099 GB, free: 14.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00145/0.4124, allocations: 1.305 MB / 0.6111 GB, free: 13.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4124, allocations: 0 / 0.6111 GB, free: 13.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00193/0.4143, allocations: 0.6247 MB / 0.6117 GB, free: 12.47 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.001811/0.4161, allocations: 0.6887 MB / 0.6124 GB, free: 11.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002891/0.419, allocations: 3.556 MB / 0.6159 GB, free: 8.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.4191, allocations: 4 kB / 0.6159 GB, free: 8.227 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000341/0.4194, allocations: 343.7 kB / 0.6162 GB, free: 7.891 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.42, allocations: 57.3 kB / 0.6163 GB, free: 7.832 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.4234, allocations: 2.958 MB / 0.6192 GB, free: 4.844 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.4241, allocations: 1.235 MB / 0.6204 GB, free: 3.578 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001834/0.4243, allocations: 32.56 kB / 0.6204 GB, free: 3.547 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.4244, allocations: 27.41 kB / 0.6204 GB, free: 3.523 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4244, allocations: 0 / 0.6204 GB, free: 3.523 MB / 462.1 MB Notification: Performance of Templates: time 0.02376/0.4482, allocations: 14.42 MB / 0.6345 GB, free: 5.141 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)