Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 183.3 kB / 16.66 MB, free: 6.602 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.801/2.801, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 63.89 kB / 1.083 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3314, allocations: 162.2 MB / 1.242 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002691/0.3341, allocations: 1.433 MB / 1.243 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.006876/0.341, allocations: 4.204 MB / 1.247 GB, free: 4.496 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.398e-05/0.3411, allocations: 3.938 kB / 1.247 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.3412, allocations: 15.86 kB / 1.247 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.3415, allocations: 27.84 kB / 1.247 GB, free: 4.449 MB / 0.9981 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/Buildings 12.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.003991/0.3455, allocations: 1.492 MB / 1.249 GB, free: 2.953 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.3457, allocations: 99.66 kB / 1.249 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.3457, allocations: 7.984 kB / 1.249 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.325e-05/0.3458, allocations: 47.83 kB / 1.249 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.3461, allocations: 165.6 kB / 1.249 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.3461, allocations: 12 kB / 1.249 GB, free: 2.625 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003359/0.3495, allocations: 2.211 MB / 1.251 GB, free: 420 kB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.6715/1.021, allocations: 0.744 MB / 1.252 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004629/1.021, allocations: 0.5001 MB / 1.252 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005074/1.027, allocations: 2.565 MB / 1.255 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/1.027, allocations: 1.375 kB / 1.255 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.535e-06/1.027, allocations: 0 / 1.255 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.986e-05/1.027, allocations: 0.5312 kB / 1.255 GB, free: 7.781 MB / 0.9981 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.01187/1.038, allocations: 2.04 MB / 1.257 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/1.039, allocations: 10.95 kB / 1.257 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.842e-05/1.039, allocations: 36.02 kB / 1.257 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004671/1.039, allocations: 174.3 kB / 1.257 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005771/1.04, allocations: 0.5711 MB / 1.257 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/1.04, allocations: 3.594 kB / 1.257 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/1.04, allocations: 13.8 kB / 1.258 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/1.04, allocations: 394.5 kB / 1.258 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/1.04, allocations: 0.6562 kB / 1.258 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/1.04, allocations: 2.016 kB / 1.258 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/1.04, allocations: 5.062 kB / 1.258 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005815/1.041, allocations: 435.5 kB / 1.258 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008822/1.042, allocations: 0.9339 MB / 1.259 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000648/1.042, allocations: 0.5636 MB / 1.26 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004271/1.043, allocations: 338.9 kB / 1.26 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008379/1.044, allocations: 1.026 MB / 1.261 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003974/1.044, allocations: 405 kB / 1.261 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/1.044, allocations: 2.969 kB / 1.261 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001371/1.046, allocations: 1.377 MB / 1.263 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/1.046, allocations: 82.09 kB / 1.263 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/1.048, allocations: 2.23 MB / 1.265 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/1.048, allocations: 27.48 kB / 1.265 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003861/1.048, allocations: 0.5314 MB / 1.266 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.081e-05/1.048, allocations: 24.55 kB / 1.266 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004201/1.049, allocations: 455.8 kB / 1.266 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.693e-05/1.049, allocations: 302.3 kB / 1.266 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001603/1.05, allocations: 2.059 MB / 1.268 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002255/1.053, allocations: 2.233 MB / 1.271 GB, free: 2.129 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007476/1.06, allocations: 4.685 MB / 1.275 GB, free: 15.73 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.06, allocations: 1.531 kB / 1.275 GB, free: 15.73 MB / 1.014 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.007379/1.068, allocations: 6.247 MB / 1.281 GB, free: 12.63 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/1.068, allocations: 5.281 kB / 1.281 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/1.068, allocations: 3.359 kB / 1.281 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/1.068, allocations: 1.188 kB / 1.281 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/1.068, allocations: 15.27 kB / 1.281 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/1.068, allocations: 0.9062 kB / 1.281 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/1.069, allocations: 319.5 kB / 1.282 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-05/1.069, allocations: 22.72 kB / 1.282 GB, free: 12.37 MB / 1.014 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.0009797/1.07, allocations: 471.9 kB / 1.282 GB, free: 12.24 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/1.07, allocations: 153.2 kB / 1.282 GB, free: 12.13 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003689/1.07, allocations: 153.3 kB / 1.282 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/1.07, allocations: 2.156 kB / 1.282 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/1.07, allocations: 0 / 1.282 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/1.07, allocations: 1.859 kB / 1.282 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009867/1.071, allocations: 0.771 MB / 1.283 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/1.071, allocations: 0 / 1.283 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.359e-05/1.072, allocations: 12.23 kB / 1.283 GB, free: 11.67 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/1.072, allocations: 1.125 kB / 1.283 GB, free: 11.67 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/1.072, allocations: 10.47 kB / 1.283 GB, free: 11.67 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/1.072, allocations: 0 / 1.283 GB, free: 11.67 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/1.072, allocations: 1.781 kB / 1.283 GB, free: 11.67 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/1.073, allocations: 1.087 MB / 1.284 GB, free: 11.46 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/1.073, allocations: 232.7 kB / 1.284 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/1.073, allocations: 10.78 kB / 1.284 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/1.074, allocations: 9.469 kB / 1.284 GB, free: 11.24 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.376e-05/1.074, allocations: 5.562 kB / 1.284 GB, free: 11.24 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.468e-05/1.074, allocations: 15.66 kB / 1.284 GB, free: 11.24 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002814/1.077, allocations: 1.301 MB / 1.286 GB, free: 10.87 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.91e-07/1.077, allocations: 0 / 1.286 GB, free: 10.87 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004662/1.081, allocations: 0.634 MB / 1.286 GB, free: 10.76 MB / 1.014 GB 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.005838/1.087, allocations: 2.239 MB / 1.289 GB, free: 9.91 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.004541/1.092, allocations: 3.558 MB / 1.292 GB, free: 8.566 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/1.092, allocations: 0 / 1.292 GB, free: 8.566 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003796/1.092, allocations: 336.4 kB / 1.292 GB, free: 8.562 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/1.093, allocations: 58.98 kB / 1.292 GB, free: 8.508 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4684/1.561, allocations: 50.1 MB / 1.341 GB, free: 10.62 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/1.563, allocations: 1.238 MB / 1.343 GB, free: 9.586 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002846/1.563, allocations: 34.11 kB / 1.343 GB, free: 9.559 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009197/1.564, allocations: 0.5237 MB / 1.343 GB, free: 9.086 MB / 1.045 GB Notification: Performance of SimCode: time 8.02e-07/1.564, allocations: 0 / 1.343 GB, free: 9.086 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/1.694, allocations: 79.2 MB / 1.42 GB, free: 15.15 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/14.14, allocations: 24.38 kB / 1.42 GB, free: 15.13 MB / 1.123 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes_res.csv --start-time 0 --stop-time 3.7e+11 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.48e+08 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)