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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.235/2.235, allocations: 390.4 MB / 397.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001244, allocations: 190.3 kB / 490.8 MB, free: 1.945 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 221.4 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009513/0.000951, allocations: 95.55 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7856/0.7866, allocations: 149.2 MB / 1.072 GB, free: 182.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/1.119, allocations: 143 MB / 1.212 GB, free: 39.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9039/2.023, allocations: 172.7 MB / 1.38 GB, free: 15.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/2.023, allocations: 111.2 kB / 1.38 GB, free: 15.39 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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: 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.1324/2.156, allocations: 36.13 MB / 1.416 GB, free: 9.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/2.156, allocations: 8 kB / 1.416 GB, free: 9.812 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008422/2.157, allocations: 173.6 kB / 1.416 GB, free: 9.641 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/2.159, allocations: 0.763 MB / 1.417 GB, free: 8.863 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/2.159, allocations: 3.906 kB / 1.417 GB, free: 8.859 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/2.159, allocations: 20.84 kB / 1.417 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000462/2.159, allocations: 423.6 kB / 1.417 GB, free: 8.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/2.16, allocations: 386.4 kB / 1.417 GB, free: 8.051 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/2.16, allocations: 0 / 1.417 GB, free: 8.051 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/2.16, allocations: 4 kB / 1.417 GB, free: 8.047 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/2.16, allocations: 0 / 1.417 GB, free: 8.047 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/2.162, allocations: 1.119 MB / 1.419 GB, free: 7.098 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005683/2.163, allocations: 0.5656 MB / 1.419 GB, free: 6.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/2.163, allocations: 328.9 kB / 1.419 GB, free: 6.199 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001336/2.165, allocations: 1.04 MB / 1.42 GB, free: 4.938 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00042/2.165, allocations: 399.8 kB / 1.421 GB, free: 4.539 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 3.356e-06/2.165, allocations: 0 / 1.421 GB, free: 4.539 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.001372/2.166, allocations: 0.8245 MB / 1.422 GB, free: 3.723 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.262e-05/2.166, allocations: 85.09 kB / 1.422 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002375/2.169, allocations: 1.839 MB / 1.424 GB, free: 2.121 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0002039/2.169, allocations: 37.05 kB / 1.424 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004571/2.17, allocations: 389.1 kB / 1.424 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/2.17, allocations: 22.92 kB / 1.424 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/2.17, allocations: 0 / 1.424 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002293/2.17, allocations: 448.2 kB / 1.424 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002295/2.172, allocations: 2.087 MB / 1.426 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002649/2.175, allocations: 2.272 MB / 1.429 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/2.178, allocations: 2.886 MB / 1.431 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/2.178, allocations: 0 / 1.431 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01262/2.191, allocations: 12.27 MB / 1.443 GB, free: 0.6211 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/2.191, allocations: 11.98 kB / 1.443 GB, free: 0.6094 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002254/2.191, allocations: 56 kB / 1.443 GB, free: 0.5547 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/2.191, allocations: 4 kB / 1.443 GB, free: 0.5508 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007502/2.192, allocations: 143 kB / 1.444 GB, free: 424 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/2.192, allocations: 4 kB / 1.444 GB, free: 420 kB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/2.193, allocations: 295.2 kB / 1.444 GB, free: 120 kB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/2.194, allocations: 148 kB / 1.444 GB, free: 15.99 MB / 0.8698 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],labels[7],labels[8],labels[9],labels[10],labels[11],labels[12],labels[13],labels[14],labels[15],labels[16],labels[17],labels[18],labels[19],labels[20],labels[21],labels[22],labels[23],labels[24],labels[25],labels[26],labels[27],labels[28],labels[29],labels[30],labels[31],labels[32],labels[33],labels[34],labels[35],labels[36],labels[37],labels[38],labels[39],labels[40],labels[41],labels[42],labels[43],labels[44],labels[45],labels[46],labels[47],labels[48],labels[49],labels[50],labels[51],labels[52],labels[53],labels[54],labels[55],labels[56],labels[57],labels[58],labels[59],labels[60],labels[61],labels[62],labels[63],labels[64],labels[65],labels[66],labels[67],labels[68],labels[69],labels[70],labels[71],labels[72],labels[73],labels[74],labels[75],labels[76],labels[77],labels[78],labels[79],labels[80],labels[81],labels[82],labels[83],labels[84],labels[85],labels[86],labels[87],labels[88],labels[89],labels[90],labels[91],labels[92],labels[93],labels[94],labels[95],labels[96],labels[97],labels[98],labels[99],labels[100],cluSiz[1],cluSiz[2],cluSiz[3],cluSiz[4],cluSiz[5]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003118/2.194, allocations: 168.8 kB / 1.444 GB, free: 15.82 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/2.194, allocations: 137.7 kB / 1.444 GB, free: 15.69 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/2.195, allocations: 0.7941 MB / 1.445 GB, free: 14.91 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/2.195, allocations: 0 / 1.445 GB, free: 14.91 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/2.195, allocations: 8.031 kB / 1.445 GB, free: 14.91 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/2.195, allocations: 0 / 1.445 GB, free: 14.91 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009414/2.196, allocations: 0.7386 MB / 1.446 GB, free: 14.28 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/2.196, allocations: 0 / 1.446 GB, free: 14.28 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.948e-05/2.196, allocations: 11.98 kB / 1.446 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/2.196, allocations: 3.938 kB / 1.446 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/2.196, allocations: 3.312 kB / 1.446 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/2.196, allocations: 8.156 kB / 1.446 GB, free: 14.26 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/2.196, allocations: 0 / 1.446 GB, free: 14.26 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007733/2.197, allocations: 0.878 MB / 1.447 GB, free: 13.36 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001041/2.198, allocations: 1.289 MB / 1.448 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/2.198, allocations: 218.7 kB / 1.448 GB, free: 11.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/2.199, allocations: 7.984 kB / 1.448 GB, free: 11.83 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/2.199, allocations: 4 kB / 1.448 GB, free: 11.82 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/2.199, allocations: 11.52 kB / 1.448 GB, free: 11.82 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.051e-05/2.199, allocations: 11.98 kB / 1.448 GB, free: 11.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001579/2.201, allocations: 1.195 MB / 1.449 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004511/2.205, allocations: 0.7654 MB / 1.45 GB, free: 10.12 MB / 0.8698 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00362/2.209, allocations: 0.8327 MB / 1.451 GB, free: 9.344 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.003475/2.212, allocations: 3.413 MB / 1.454 GB, free: 7.02 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/2.212, allocations: 0 / 1.454 GB, free: 7.02 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003193/2.213, allocations: 334 kB / 1.455 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/2.213, allocations: 56.16 kB / 1.455 GB, free: 6.68 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003852/2.217, allocations: 2.387 MB / 1.457 GB, free: 4.301 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/2.218, allocations: 1.316 MB / 1.458 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of SimCode: time 9.12e-07/2.218, allocations: 4 kB / 1.458 GB, free: 2.961 MB / 0.8698 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes_fmu --startTime=0 --stopTime=3.7e+11 --timeout=50 --tolerance=1e-06 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)