Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001158/0.001158, allocations: 116.2 kB / 16.42 MB, free: 6.492 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.001112/0.001112, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.295/1.295, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 284.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9479/0.9479, allocations: 169.3 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 91.86 kB / 0.6822 GB, free: 6.875 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3949, allocations: 86.99 MB / 0.7671 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002429/0.3974, allocations: 1.413 MB / 0.7685 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.006018/0.4034, allocations: 4.201 MB / 0.7726 GB, free: 14.24 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.103e-05/0.4035, allocations: 0 / 0.7726 GB, free: 14.24 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.4036, allocations: 15.86 kB / 0.7726 GB, free: 14.23 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.4039, allocations: 31.84 kB / 0.7727 GB, free: 14.2 MB / 0.545 GB [/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/BuildingSystems 2.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.003653/0.4075, allocations: 1.5 MB / 0.7741 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.4077, allocations: 91.73 kB / 0.7742 GB, free: 12.6 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.4077, allocations: 4 kB / 0.7742 GB, free: 12.6 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.596e-05/0.4078, allocations: 55.77 kB / 0.7743 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.408, allocations: 157.6 kB / 0.7744 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.774e-05/0.4081, allocations: 12 kB / 0.7744 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003201/0.4113, allocations: 2.211 MB / 0.7766 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0007196/0.412, allocations: 0.7535 MB / 0.7773 GB, free: 9.406 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004189/0.4125, allocations: 0.4964 MB / 0.7778 GB, free: 8.906 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003095/0.4156, allocations: 2.55 MB / 0.7803 GB, free: 6.352 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.4156, allocations: 3.938 kB / 0.7803 GB, free: 6.348 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.884e-06/0.4156, allocations: 0 / 0.7803 GB, free: 6.348 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.574e-05/0.4156, allocations: 0 / 0.7803 GB, free: 6.348 MB / 0.545 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.01135/0.427, allocations: 1.964 MB / 0.7822 GB, free: 4.324 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.427, allocations: 12.03 kB / 0.7822 GB, free: 4.312 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004602/0.4275, allocations: 174.4 kB / 0.7824 GB, free: 4.141 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.4281, allocations: 0.5734 MB / 0.783 GB, free: 3.504 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.4281, allocations: 8.359 kB / 0.783 GB, free: 3.496 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.4282, allocations: 8.375 kB / 0.783 GB, free: 3.488 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.4286, allocations: 391.4 kB / 0.7834 GB, free: 3.094 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.4286, allocations: 0 / 0.7834 GB, free: 3.094 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.4286, allocations: 7.984 kB / 0.7834 GB, free: 3.086 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.4287, allocations: 0 / 0.7834 GB, free: 3.086 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.4291, allocations: 435.8 kB / 0.7838 GB, free: 2.66 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008115/0.4299, allocations: 0.922 MB / 0.7847 GB, free: 1.68 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004965/0.4304, allocations: 0.5672 MB / 0.7852 GB, free: 1.094 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002947/0.4307, allocations: 337.7 kB / 0.7856 GB, free: 0.7578 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001032/0.4318, allocations: 1.025 MB / 0.7866 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004165/0.4322, allocations: 416.8 kB / 0.7869 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/0.4322, allocations: 0 / 0.7869 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001325/0.4335, allocations: 1.358 MB / 0.7883 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.4336, allocations: 89.23 kB / 0.7884 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.4357, allocations: 2.216 MB / 0.7905 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.4358, allocations: 33.7 kB / 0.7906 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003926/0.4362, allocations: 0.5212 MB / 0.7911 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.4362, allocations: 31.62 kB / 0.7911 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003841/0.4366, allocations: 447.4 kB / 0.7915 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.367e-05/0.4367, allocations: 309.1 kB / 0.7918 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001643/0.4384, allocations: 2.057 MB / 0.7938 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.4402, allocations: 2.23 MB / 0.796 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007739/0.4479, allocations: 4.681 MB / 0.8006 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.448, allocations: 4 kB / 0.8006 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.006102/0.4541, allocations: 6.231 MB / 0.8067 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.4541, allocations: 11.94 kB / 0.8067 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.4541, allocations: 3.984 kB / 0.8067 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.4542, allocations: 4 kB / 0.8067 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.4543, allocations: 15.94 kB / 0.8067 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.4543, allocations: 0 / 0.8067 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006227/0.4549, allocations: 299.1 kB / 0.807 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/0.455, allocations: 23.98 kB / 0.807 GB, free: 10.21 MB / 0.5762 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.0005545/0.4556, allocations: 470.7 kB / 0.8075 GB, free: 9.738 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.4557, allocations: 149.5 kB / 0.8076 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003486/0.456, allocations: 151.9 kB / 0.8077 GB, free: 9.43 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.4561, allocations: 4.031 kB / 0.8077 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4561, allocations: 4 kB / 0.8078 GB, free: 9.422 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.4563, allocations: 218.8 kB / 0.808 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.4564, allocations: 4 kB / 0.808 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.4566, allocations: 4 kB / 0.808 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.4567, allocations: 11.92 kB / 0.808 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009265/0.4576, allocations: 1.07 MB / 0.809 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009736/0.4586, allocations: 1.279 MB / 0.8103 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003033/0.4589, allocations: 347.7 kB / 0.8106 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001455/0.4604, allocations: 1.305 MB / 0.8119 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of Backend: time 3.21e-07/0.4604, allocations: 0 / 0.8119 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00509/0.4655, allocations: 3.898 MB / 0.8157 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of SimCode: time 0.002931/0.4684, allocations: 2.894 MB / 0.8185 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of Templates: time 0.02446/0.4929, allocations: 14.81 MB / 0.833 GB, free: 15.52 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)