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.001173/0.001173, allocations: 109.5 kB / 17.02 MB, free: 6.121 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.001196/0.001196, allocations: 194.9 kB / 17.97 MB, free: 5.211 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.225/1.225, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6563/0.6563, allocations: 115.1 MB / 406.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 494.8 MB, free: 15.8 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2996, allocations: 76.14 MB / 0.5576 GB, free: 36.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002057/0.3017, allocations: 1.413 MB / 0.559 GB, free: 35.6 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004824/0.3065, allocations: 4.195 MB / 0.5631 GB, free: 32.8 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.515e-05/0.3066, allocations: 5.25 kB / 0.5631 GB, free: 32.8 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.218e-05/0.3067, allocations: 12.66 kB / 0.5631 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.3069, allocations: 30.31 kB / 0.5631 GB, free: 32.78 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.003446/0.3104, allocations: 1.5 MB / 0.5646 GB, free: 32.22 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000131/0.3105, allocations: 95.47 kB / 0.5647 GB, free: 32.19 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.809e-05/0.3105, allocations: 4.344 kB / 0.5647 GB, free: 32.19 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.219e-05/0.3106, allocations: 52 kB / 0.5647 GB, free: 32.17 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.3108, allocations: 161.2 kB / 0.5649 GB, free: 32.13 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.3109, allocations: 15.34 kB / 0.5649 GB, free: 32.13 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.3139, allocations: 2.205 MB / 0.5671 GB, free: 31.47 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000719/0.3146, allocations: 0.7551 MB / 0.5678 GB, free: 31.3 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003571/0.315, allocations: 0.4981 MB / 0.5683 GB, free: 30.97 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003687/0.3187, allocations: 2.549 MB / 0.5708 GB, free: 30.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3187, allocations: 3.938 kB / 0.5708 GB, free: 30.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3187, allocations: 0 / 0.5708 GB, free: 30.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.3187, allocations: 1.625 kB / 0.5708 GB, free: 30.16 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.008588/0.3273, allocations: 1.964 MB / 0.5727 GB, free: 28.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.3274, allocations: 9.594 kB / 0.5727 GB, free: 28.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004111/0.3278, allocations: 161.4 kB / 0.5729 GB, free: 28.72 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.3284, allocations: 0.5681 MB / 0.5734 GB, free: 28.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.3284, allocations: 12.47 kB / 0.5734 GB, free: 28.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.251e-05/0.3284, allocations: 7.016 kB / 0.5734 GB, free: 28.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.3288, allocations: 389.2 kB / 0.5738 GB, free: 28.21 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.3288, allocations: 2.234 kB / 0.5738 GB, free: 28.21 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3289, allocations: 4.547 kB / 0.5738 GB, free: 28.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.3289, allocations: 5.625 kB / 0.5738 GB, free: 28.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000422/0.3293, allocations: 434.4 kB / 0.5742 GB, free: 28.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008317/0.3301, allocations: 0.9287 MB / 0.5751 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/0.3306, allocations: 0.5653 MB / 0.5757 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002984/0.3309, allocations: 334.4 kB / 0.576 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007885/0.3317, allocations: 1.029 MB / 0.577 GB, free: 26.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.3321, allocations: 402.5 kB / 0.5774 GB, free: 26.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.3321, allocations: 3.938 kB / 0.5774 GB, free: 26.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.00137/0.3335, allocations: 1.361 MB / 0.5787 GB, free: 26.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.3335, allocations: 89.22 kB / 0.5788 GB, free: 26.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/0.3358, allocations: 2.223 MB / 0.581 GB, free: 25.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.3359, allocations: 28 kB / 0.581 GB, free: 25.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/0.3362, allocations: 0.5243 MB / 0.5815 GB, free: 24.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.963e-05/0.3362, allocations: 21.78 kB / 0.5815 GB, free: 24.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003501/0.3366, allocations: 463.5 kB / 0.582 GB, free: 24.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.51e-05/0.3366, allocations: 302.4 kB / 0.5823 GB, free: 24.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/0.3382, allocations: 2.065 MB / 0.5843 GB, free: 23.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.3397, allocations: 2.228 MB / 0.5865 GB, free: 22.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006264/0.346, allocations: 4.68 MB / 0.591 GB, free: 17.63 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.346, allocations: 0 / 0.591 GB, free: 17.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.004187/0.3502, allocations: 6.24 MB / 0.5971 GB, free: 11.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3503, allocations: 8 kB / 0.5971 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.3503, allocations: 0 / 0.5971 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3503, allocations: 4 kB / 0.5971 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.3504, allocations: 24.55 kB / 0.5972 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.3504, allocations: 0.6875 kB / 0.5972 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006973/0.3511, allocations: 297.7 kB / 0.5975 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.3512, allocations: 19.98 kB / 0.5975 GB, free: 10.93 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.000559/0.3518, allocations: 472.3 kB / 0.5979 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.3518, allocations: 145.6 kB / 0.5981 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.3521, allocations: 148.5 kB / 0.5982 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3521, allocations: 4.5 kB / 0.5982 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3522, allocations: 4.375 kB / 0.5982 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3522, allocations: 0 / 0.5982 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005766/0.3527, allocations: 0.7793 MB / 0.599 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3528, allocations: 4.594 kB / 0.599 GB, free: 9.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.296e-05/0.3528, allocations: 11.92 kB / 0.599 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3528, allocations: 1.812 kB / 0.599 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.3528, allocations: 4 kB / 0.599 GB, free: 9.324 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.3529, allocations: 0 / 0.599 GB, free: 9.324 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3529, allocations: 0 / 0.599 GB, free: 9.324 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000605/0.3535, allocations: 1.088 MB / 0.6001 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.3536, allocations: 218.7 kB / 0.6003 GB, free: 7.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.324e-05/0.3537, allocations: 3.938 kB / 0.6003 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.3539, allocations: 8.734 kB / 0.6003 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.354, allocations: 4 kB / 0.6003 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/0.354, allocations: 23.19 kB / 0.6003 GB, free: 7.945 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.355, allocations: 1.298 MB / 0.6016 GB, free: 6.633 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.355, allocations: 0 / 0.6016 GB, free: 6.633 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001884/0.3569, allocations: 0.6247 MB / 0.6022 GB, free: 6.008 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.001572/0.3585, allocations: 0.6853 MB / 0.6028 GB, free: 5.348 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.3605, allocations: 3.548 MB / 0.6063 GB, free: 1.785 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3605, allocations: 4 kB / 0.6063 GB, free: 1.781 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.3607, allocations: 351.8 kB / 0.6067 GB, free: 1.438 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.3612, allocations: 64.45 kB / 0.6067 GB, free: 1.371 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.364, allocations: 2.905 MB / 0.6096 GB, free: 14.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007285/0.3648, allocations: 1.235 MB / 0.6108 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.3649, allocations: 40.55 kB / 0.6108 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.123e-05/0.365, allocations: 23.42 kB / 0.6108 GB, free: 13.11 MB / 462.1 MB Notification: Performance of SimCode: time 4.4e-07/0.365, allocations: 4 kB / 0.6108 GB, free: 13.11 MB / 462.1 MB Notification: Performance of Templates: time 0.02264/0.3876, allocations: 14.42 MB / 0.6249 GB, free: 14.73 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 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)