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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.322/2.322, allocations: 393.5 MB / 408.4 MB, free: 11 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.002226/0.002226, allocations: 188 kB / 0.4902 GB, free: 2.25 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.583/1.583, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.0009642/0.0009642, allocations: 100.2 kB / 0.9396 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.0003329, allocations: 10.41 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2668, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.227/0.4939, allocations: 173.5 MB / 1.399 GB, free: 12.04 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004386/0.4944, allocations: 119.9 kB / 1.399 GB, free: 11.93 MB / 0.9011 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 - DAE generated: time 0.7047/1.199, allocations: 30.39 MB / 1.429 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.513e-06/1.199, allocations: 0 / 1.429 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.256e-05/1.199, allocations: 15.28 kB / 1.429 GB, free: 178.3 MB / 0.9167 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.002613/1.202, allocations: 1.254 MB / 1.43 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/1.202, allocations: 10.69 kB / 1.43 GB, free: 177.6 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003997/1.202, allocations: 100.5 kB / 1.43 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006534/1.203, allocations: 433.4 kB / 1.43 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/1.203, allocations: 21.97 kB / 1.43 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.441e-05/1.203, allocations: 39.28 kB / 1.43 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/1.203, allocations: 384.3 kB / 1.431 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/1.203, allocations: 0.625 kB / 1.431 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/1.203, allocations: 4.719 kB / 1.431 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/1.204, allocations: 3.438 kB / 1.431 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005338/1.204, allocations: 439 kB / 1.431 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008111/1.205, allocations: 0.7494 MB / 1.432 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/1.206, allocations: 0.5656 MB / 1.432 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008038/1.206, allocations: 1.036 MB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004838/1.207, allocations: 404.2 kB / 1.434 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 2.405e-06/1.207, allocations: 9.781 kB / 1.434 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.001738/1.209, allocations: 1.297 MB / 1.435 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/1.209, allocations: 84.61 kB / 1.435 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/1.21, allocations: 1.075 MB / 1.436 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 8.361e-05/1.21, allocations: 39.98 kB / 1.436 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000219/1.21, allocations: 274.6 kB / 1.437 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/1.21, allocations: 17.19 kB / 1.437 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/1.21, allocations: 16.56 kB / 1.437 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001591/1.211, allocations: 428.9 kB / 1.437 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/1.212, allocations: 1.223 MB / 1.438 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/1.214, allocations: 1.372 MB / 1.439 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/1.216, allocations: 1.626 MB / 1.441 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/1.216, allocations: 0 / 1.441 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004957/1.221, allocations: 3.487 MB / 1.444 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/1.221, allocations: 7.406 kB / 1.444 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.626e-05/1.221, allocations: 4.016 kB / 1.444 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/1.221, allocations: 8.125 kB / 1.444 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/1.222, allocations: 143 kB / 1.445 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/1.222, allocations: 3.922 kB / 1.445 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007709/1.222, allocations: 242.1 kB / 1.445 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/1.222, allocations: 65.58 kB / 1.445 GB, free: 173.4 MB / 0.9167 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 () * Number of clocked 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.0003965/1.223, allocations: 258.9 kB / 1.445 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-05/1.223, allocations: 70.11 kB / 1.445 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/1.224, allocations: 0.943 MB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/1.224, allocations: 1.375 kB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/1.224, allocations: 1.031 kB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/1.224, allocations: 1.953 kB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006091/1.225, allocations: 0.493 MB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/1.225, allocations: 2.469 kB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.489e-05/1.225, allocations: 8.469 kB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/1.225, allocations: 1.344 kB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/1.225, allocations: 4.641 kB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/1.225, allocations: 4.906 kB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.225, allocations: 0.8906 kB / 1.447 GB, free: 173 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/1.227, allocations: 1.012 MB / 1.448 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/1.227, allocations: 154.7 kB / 1.448 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.27e-05/1.227, allocations: 5.688 kB / 1.448 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/1.227, allocations: 5.172 kB / 1.448 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/1.227, allocations: 9.047 kB / 1.448 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.026e-05/1.227, allocations: 17.45 kB / 1.448 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.001151/1.228, allocations: 0.6592 MB / 1.448 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 3.9e-07/1.228, allocations: 3.859 kB / 1.448 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.00302/1.231, allocations: 0.6926 MB / 1.449 GB, free: 172.5 MB / 0.9167 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 (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.002419/1.234, allocations: 0.8067 MB / 1.45 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003356/1.237, allocations: 2.417 MB / 1.452 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/1.237, allocations: 0.5938 kB / 1.452 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006747/1.238, allocations: 340.7 kB / 1.453 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/1.238, allocations: 39.92 kB / 1.453 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/1.241, allocations: 1.843 MB / 1.454 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/1.241, allocations: 0.9897 MB / 1.455 GB, free: 170.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002137/1.242, allocations: 56.12 kB / 1.455 GB, free: 170.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/1.242, allocations: 37.48 kB / 1.456 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of SimCode: time 5.61e-07/1.242, allocations: 0 / 1.456 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of Templates: time 0.01898/1.261, allocations: 13 MB / 1.468 GB, free: 170.2 MB / 0.9167 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