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_1borehole_5meters.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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [: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 1.951/1.951, allocations: 390.4 MB / 397.6 MB, free: 11.24 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.001177/0.001177, allocations: 199.9 kB / 490.8 MB, free: 1.906 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.39/1.39, allocations: 221.4 MB / 0.7863 GB, free: 13.63 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.001146/0.001146, allocations: 95.33 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.576e-06/8.596e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.287, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7549/1.042, allocations: 172.7 MB / 1.38 GB, free: 15.39 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/1.042, allocations: 113.4 kB / 1.38 GB, free: 15.37 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.105/1.147, allocations: 30.18 MB / 1.41 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.019e-05/1.148, allocations: 16 kB / 1.41 GB, free: 15.05 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.003401/1.151, allocations: 1.099 MB / 1.411 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/1.151, allocations: 15.97 kB / 1.411 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004985/1.151, allocations: 94.73 kB / 1.411 GB, free: 13.85 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007801/1.152, allocations: 435.5 kB / 1.411 GB, free: 13.4 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/1.152, allocations: 7.906 kB / 1.411 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.659e-05/1.152, allocations: 20 kB / 1.411 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004188/1.153, allocations: 426.8 kB / 1.412 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003775/1.153, allocations: 377.3 kB / 1.412 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/1.153, allocations: 0 / 1.412 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/1.153, allocations: 4 kB / 1.412 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/1.153, allocations: 3.984 kB / 1.412 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000886/1.154, allocations: 0.703 MB / 1.413 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005611/1.155, allocations: 0.5545 MB / 1.413 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/1.155, allocations: 341.2 kB / 1.414 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/1.156, allocations: 1.04 MB / 1.415 GB, free: 9.793 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003803/1.157, allocations: 395.9 kB / 1.415 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/1.157, allocations: 0 / 1.415 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0008896/1.157, allocations: 0.7448 MB / 1.416 GB, free: 8.656 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/1.157, allocations: 81.05 kB / 1.416 GB, free: 8.559 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/1.159, allocations: 1.032 MB / 1.417 GB, free: 7.727 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.369e-05/1.159, allocations: 29.7 kB / 1.417 GB, free: 7.691 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002955/1.159, allocations: 258.7 kB / 1.417 GB, free: 7.492 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/1.159, allocations: 23.42 kB / 1.417 GB, free: 7.473 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/1.159, allocations: 0 / 1.417 GB, free: 7.473 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002086/1.159, allocations: 421.1 kB / 1.418 GB, free: 7.094 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/1.161, allocations: 1.222 MB / 1.419 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/1.162, allocations: 1.362 MB / 1.42 GB, free: 5.391 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001747/1.164, allocations: 1.628 MB / 1.422 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/1.164, allocations: 0 / 1.422 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.006411/1.17, allocations: 7.198 MB / 1.429 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/1.17, allocations: 4 kB / 1.429 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/1.17, allocations: 4 kB / 1.429 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/1.17, allocations: 4 kB / 1.429 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006885/1.171, allocations: 154.6 kB / 1.429 GB, free: 13.64 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/1.171, allocations: 7.906 kB / 1.429 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00059/1.172, allocations: 224.3 kB / 1.429 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/1.172, allocations: 55.67 kB / 1.429 GB, free: 13.36 MB / 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: 13 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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.0001582/1.172, allocations: 121.5 kB / 1.429 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.87e-05/1.172, allocations: 62.78 kB / 1.429 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009002/1.173, allocations: 0.7224 MB / 1.43 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/1.173, allocations: 0 / 1.43 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/1.173, allocations: 7.906 kB / 1.43 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/1.173, allocations: 0 / 1.43 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004242/1.173, allocations: 477.4 kB / 1.431 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/1.173, allocations: 3.938 kB / 1.431 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.657e-05/1.174, allocations: 7.984 kB / 1.431 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/1.174, allocations: 4 kB / 1.431 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/1.174, allocations: 0 / 1.431 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/1.174, allocations: 7.906 kB / 1.431 GB, free: 12.01 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.174, allocations: 4.031 kB / 1.431 GB, free: 12.01 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000645/1.174, allocations: 0.7832 MB / 1.431 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/1.174, allocations: 155.8 kB / 1.432 GB, free: 11.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.098e-05/1.174, allocations: 3.984 kB / 1.432 GB, free: 11.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/1.175, allocations: 7.062 kB / 1.432 GB, free: 11.04 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/1.175, allocations: 15.97 kB / 1.432 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/1.175, allocations: 11.98 kB / 1.432 GB, free: 11.01 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0006313/1.175, allocations: 0.6149 MB / 1.432 GB, free: 10.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002412/1.178, allocations: 0.683 MB / 1.433 GB, free: 9.84 MB / 0.8542 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.002352/1.18, allocations: 0.8239 MB / 1.434 GB, free: 9.078 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002063/1.182, allocations: 2.407 MB / 1.436 GB, free: 7.445 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.182, allocations: 0 / 1.436 GB, free: 7.445 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002738/1.182, allocations: 342.2 kB / 1.436 GB, free: 7.117 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/1.183, allocations: 30.73 kB / 1.436 GB, free: 7.105 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/1.185, allocations: 1.471 MB / 1.438 GB, free: 5.637 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006839/1.185, allocations: 1.035 MB / 1.439 GB, free: 4.578 MB / 0.8542 GB Notification: Performance of SimCode: time 5.11e-07/1.185, allocations: 0 / 1.439 GB, free: 4.578 MB / 0.8542 GB Notification: Performance of Templates: time 0.0224/1.208, allocations: 13.58 MB / 1.452 GB, free: 7.078 MB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches