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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") [: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.005/2.005, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001346/0.001346, allocations: 185.3 kB / 490.8 MB, free: 1.934 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.407/1.407, allocations: 221.3 MB / 0.7863 GB, free: 13.68 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.001083/0.001083, allocations: 85.44 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.566e-06, allocations: 8 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.293, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.734/1.027, allocations: 172.7 MB / 1.38 GB, free: 15.39 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/1.027, allocations: 115.2 kB / 1.38 GB, free: 15.36 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: Performance of FrontEnd: time 0.1155/1.143, allocations: 34.53 MB / 1.414 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.724e-05/1.143, allocations: 28 kB / 1.414 GB, free: 11.4 MB / 0.8386 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.004468/1.147, allocations: 1.555 MB / 1.416 GB, free: 9.887 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 7.231e-05/1.148, allocations: 12.03 kB / 1.416 GB, free: 9.875 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006698/1.148, allocations: 173.6 kB / 1.416 GB, free: 9.703 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/1.15, allocations: 0.7575 MB / 1.417 GB, free: 8.938 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/1.15, allocations: 7.906 kB / 1.417 GB, free: 8.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/1.15, allocations: 20.75 kB / 1.417 GB, free: 8.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004135/1.15, allocations: 427.4 kB / 1.417 GB, free: 8.496 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/1.151, allocations: 385.6 kB / 1.417 GB, free: 8.113 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/1.151, allocations: 0 / 1.417 GB, free: 8.113 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/1.151, allocations: 7.984 kB / 1.417 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/1.151, allocations: 0 / 1.417 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/1.153, allocations: 1.12 MB / 1.418 GB, free: 7.156 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004639/1.153, allocations: 0.5504 MB / 1.419 GB, free: 6.594 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/1.153, allocations: 340.5 kB / 1.419 GB, free: 6.262 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001023/1.154, allocations: 1.039 MB / 1.42 GB, free: 5.004 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003454/1.155, allocations: 394.5 kB / 1.421 GB, free: 4.609 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/1.155, allocations: 0 / 1.421 GB, free: 4.609 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0009346/1.156, allocations: 0.829 MB / 1.422 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/1.156, allocations: 85.05 kB / 1.422 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/1.158, allocations: 1.841 MB / 1.423 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0001184/1.158, allocations: 29.7 kB / 1.423 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003718/1.159, allocations: 393.3 kB / 1.424 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/1.159, allocations: 21.81 kB / 1.424 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.493e-05/1.159, allocations: 0 / 1.424 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001973/1.159, allocations: 443.7 kB / 1.424 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002078/1.161, allocations: 2.089 MB / 1.426 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/1.163, allocations: 2.274 MB / 1.429 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002837/1.166, allocations: 2.88 MB / 1.431 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/1.166, allocations: 0 / 1.431 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01078/1.177, allocations: 12.29 MB / 1.443 GB, free: 0.6797 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/1.177, allocations: 8 kB / 1.443 GB, free: 0.6719 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/1.177, allocations: 56 kB / 1.443 GB, free: 0.6172 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/1.177, allocations: 4 kB / 1.443 GB, free: 0.6133 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006929/1.178, allocations: 145.8 kB / 1.444 GB, free: 488 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/1.178, allocations: 4 kB / 1.444 GB, free: 484 kB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008341/1.179, allocations: 295.2 kB / 1.444 GB, free: 184 kB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/1.179, allocations: 137.4 kB / 1.444 GB, free: 64 kB / 0.8542 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.0002552/1.179, allocations: 176.3 kB / 1.444 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/1.179, allocations: 137.7 kB / 1.444 GB, free: 15.75 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009954/1.18, allocations: 0.7876 MB / 1.445 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/1.18, allocations: 0 / 1.445 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/1.18, allocations: 0 / 1.445 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/1.18, allocations: 7.984 kB / 1.445 GB, free: 14.97 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007663/1.181, allocations: 0.7464 MB / 1.446 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/1.181, allocations: 0 / 1.446 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.072e-05/1.181, allocations: 15.88 kB / 1.446 GB, free: 14.33 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/1.181, allocations: 0 / 1.446 GB, free: 14.33 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/1.181, allocations: 7.859 kB / 1.446 GB, free: 14.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/1.181, allocations: 4 kB / 1.446 GB, free: 14.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.181, allocations: 3.984 kB / 1.446 GB, free: 14.32 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007181/1.182, allocations: 0.8642 MB / 1.447 GB, free: 13.43 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/1.182, allocations: 222.7 kB / 1.447 GB, free: 13.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/1.182, allocations: 0 / 1.447 GB, free: 13.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/1.183, allocations: 11.89 kB / 1.447 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/1.183, allocations: 4 kB / 1.447 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/1.183, allocations: 7.984 kB / 1.447 GB, free: 13.17 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001414/1.184, allocations: 1.206 MB / 1.448 GB, free: 12.18 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002548/1.187, allocations: 0.729 MB / 1.449 GB, free: 11.47 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.003423/1.19, allocations: 0.8404 MB / 1.45 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002801/1.193, allocations: 3.402 MB / 1.453 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.193, allocations: 0 / 1.453 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002935/1.193, allocations: 334.5 kB / 1.453 GB, free: 8.062 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/1.193, allocations: 58.38 kB / 1.453 GB, free: 8.043 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/1.197, allocations: 2.385 MB / 1.456 GB, free: 5.664 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/1.198, allocations: 1.316 MB / 1.457 GB, free: 4.324 MB / 0.8698 GB Notification: Performance of SimCode: time 3.6e-07/1.198, allocations: 0 / 1.457 GB, free: 4.324 MB / 0.8698 GB Notification: Performance of Templates: time 0.02642/1.224, allocations: 14.39 MB / 1.471 GB, free: 6.02 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (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 & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches