Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.212/1.212, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 187.8 kB / 316 MB, free: 3.512 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.05/1.05, allocations: 205.1 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008357/0.0008356, allocations: 90.19 kB / 0.671 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.386e-06/8.396e-06, allocations: 0 / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.146, allocations: 106.3 MB / 0.8846 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5769, allocations: 146.8 MB / 1.028 GB, free: 8.203 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.5771, allocations: 106.7 kB / 1.028 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.0822/0.6594, allocations: 24.96 MB / 1.052 GB, free: 2.609 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 3.659e-05/0.6594, allocations: 20 kB / 1.052 GB, free: 2.59 MB / 0.6667 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.002087/0.6615, allocations: 1.323 MB / 1.054 GB, free: 1.289 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.6616, allocations: 8.031 kB / 1.054 GB, free: 1.281 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.662, allocations: 154 kB / 1.054 GB, free: 1.129 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008746/0.6629, allocations: 0.6296 MB / 1.055 GB, free: 444 kB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.6629, allocations: 4 kB / 1.055 GB, free: 440 kB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.531e-05/0.663, allocations: 24 kB / 1.055 GB, free: 416 kB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003944/0.6634, allocations: 427.5 kB / 1.055 GB, free: 15.99 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.6637, allocations: 381.1 kB / 1.055 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.6637, allocations: 0 / 1.055 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.6637, allocations: 0 / 1.055 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.6637, allocations: 0 / 1.055 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008593/0.6646, allocations: 0.9261 MB / 1.056 GB, free: 14.81 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004302/0.6651, allocations: 0.5577 MB / 1.057 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.6653, allocations: 332.9 kB / 1.057 GB, free: 13.92 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009505/0.6663, allocations: 1.04 MB / 1.058 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000325/0.6666, allocations: 398.2 kB / 1.059 GB, free: 12.26 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.6666, allocations: 4 kB / 1.059 GB, free: 12.26 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0007799/0.6674, allocations: 0.7947 MB / 1.059 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.6674, allocations: 85.09 kB / 1.059 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.6688, allocations: 1.538 MB / 1.061 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/0.6689, allocations: 25.7 kB / 1.061 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.6691, allocations: 328.2 kB / 1.061 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.6692, allocations: 19.12 kB / 1.061 GB, free: 9.789 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.09e-05/0.6692, allocations: 0 / 1.061 GB, free: 9.789 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.6694, allocations: 406.7 kB / 1.062 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.6707, allocations: 1.48 MB / 1.063 GB, free: 8.367 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.6721, allocations: 1.607 MB / 1.065 GB, free: 7.211 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.6738, allocations: 1.862 MB / 1.066 GB, free: 5.754 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6738, allocations: 4 kB / 1.066 GB, free: 5.75 MB / 0.6823 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.006099/0.6799, allocations: 7.717 MB / 1.074 GB, free: 14.86 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.6799, allocations: 4 kB / 1.074 GB, free: 14.85 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.374e-05/0.68, allocations: 20 kB / 1.074 GB, free: 14.83 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.68, allocations: 4 kB / 1.074 GB, free: 14.83 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.6807, allocations: 150.7 kB / 1.074 GB, free: 14.69 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.6807, allocations: 4 kB / 1.074 GB, free: 14.68 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006509/0.6814, allocations: 232.3 kB / 1.074 GB, free: 14.45 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.6815, allocations: 90.17 kB / 1.074 GB, free: 14.38 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0001176/0.6816, allocations: 112.4 kB / 1.075 GB, free: 14.26 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.255e-05/0.6817, allocations: 122 kB / 1.075 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008791/0.6826, allocations: 0.7934 MB / 1.075 GB, free: 13.36 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-06/0.6826, allocations: 7.906 kB / 1.075 GB, free: 13.36 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.6826, allocations: 0 / 1.075 GB, free: 13.36 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.6826, allocations: 3.938 kB / 1.075 GB, free: 13.35 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005217/0.6832, allocations: 0.6513 MB / 1.076 GB, free: 12.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.6832, allocations: 3.984 kB / 1.076 GB, free: 12.78 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.454e-05/0.6833, allocations: 7.984 kB / 1.076 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.6833, allocations: 0 / 1.076 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.6833, allocations: 7.906 kB / 1.076 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.6833, allocations: 0 / 1.076 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6833, allocations: 4.031 kB / 1.076 GB, free: 12.76 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006449/0.684, allocations: 0.8447 MB / 1.077 GB, free: 11.89 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001523/0.6841, allocations: 199.1 kB / 1.077 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.6842, allocations: 0 / 1.077 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.6845, allocations: 15.3 kB / 1.077 GB, free: 11.67 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.6845, allocations: 15.89 kB / 1.077 GB, free: 11.65 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.6845, allocations: 7.984 kB / 1.077 GB, free: 11.64 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0009697/0.6855, allocations: 1.011 MB / 1.078 GB, free: 10.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001401/0.6869, allocations: 0.5077 MB / 1.079 GB, free: 10.3 MB / 0.698 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.001476/0.6884, allocations: 0.5982 MB / 1.079 GB, free: 9.707 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001873/0.6903, allocations: 2.493 MB / 1.082 GB, free: 7.984 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6903, allocations: 0 / 1.082 GB, free: 7.984 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.6906, allocations: 338.6 kB / 1.082 GB, free: 7.66 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.6908, allocations: 45.92 kB / 1.082 GB, free: 7.645 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.6932, allocations: 2.121 MB / 1.084 GB, free: 5.52 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007322/0.694, allocations: 1.235 MB / 1.085 GB, free: 4.262 MB / 0.698 GB Notification: Performance of SimCode: time 2.255e-06/0.694, allocations: 0 / 1.085 GB, free: 4.262 MB / 0.698 GB Notification: Performance of Templates: time 0.01718/0.7112, allocations: 10.08 MB / 1.095 GB, free: 10.25 MB / 0.7136 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches