Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 196.6 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001955/0.001955, allocations: 283.1 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9243/0.9243, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 99.3 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1444, allocations: 86.99 MB / 0.6802 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002734/0.1471, allocations: 1.739 MB / 0.6819 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007143/0.1543, allocations: 5.387 MB / 0.6872 GB, free: 9.508 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1544, allocations: 3.938 kB / 0.6872 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.1555, allocations: 373.3 kB / 0.6875 GB, free: 9.141 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.1557, allocations: 59.72 kB / 0.6876 GB, free: 9.082 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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 NFTyping.typeClassSections: time 0.003324/0.159, allocations: 1.496 MB / 0.6891 GB, free: 7.586 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.1592, allocations: 163.3 kB / 0.6892 GB, free: 7.426 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.649e-05/0.1593, allocations: 13.55 kB / 0.6892 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.055e-05/0.1593, allocations: 63.7 kB / 0.6893 GB, free: 7.352 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.1596, allocations: 163.5 kB / 0.6894 GB, free: 7.191 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.252e-05/0.1596, allocations: 16 kB / 0.6895 GB, free: 7.176 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003204/0.1628, allocations: 2.153 MB / 0.6916 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002321/0.1631, allocations: 279.8 kB / 0.6918 GB, free: 4.746 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002676/0.1633, allocations: 310.1 kB / 0.6921 GB, free: 4.441 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002772/0.1661, allocations: 2.17 MB / 0.6942 GB, free: 2.266 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1661, allocations: 3.984 kB / 0.6942 GB, free: 2.262 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1661, allocations: 0 / 0.6942 GB, free: 2.262 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.1662, allocations: 0 / 0.6942 GB, free: 2.262 MB / 494.1 MB 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.01046/0.1766, allocations: 1.363 MB / 0.6956 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1767, allocations: 8.031 kB / 0.6956 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004134/0.1771, allocations: 95.58 kB / 0.6957 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.1776, allocations: 414.2 kB / 0.6961 GB, free: 300 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.1776, allocations: 384 / 0.6961 GB, free: 300 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.27e-05/0.1777, allocations: 8.375 kB / 0.6961 GB, free: 292 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004242/0.1781, allocations: 403.4 kB / 0.6965 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.1781, allocations: 0 / 0.6965 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.1781, allocations: 4 kB / 0.6965 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.1782, allocations: 0 / 0.6965 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004357/0.1786, allocations: 431.8 kB / 0.6969 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006263/0.1792, allocations: 0.6731 MB / 0.6975 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004754/0.1797, allocations: 0.5633 MB / 0.6981 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.18, allocations: 341.6 kB / 0.6984 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001017/0.181, allocations: 1.025 MB / 0.6994 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003821/0.1814, allocations: 408.8 kB / 0.6998 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.853e-06/0.1814, allocations: 0 / 0.6998 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001291/0.1827, allocations: 1.3 MB / 0.7011 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.1828, allocations: 77.11 kB / 0.7011 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.184, allocations: 1.286 MB / 0.7024 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.1841, allocations: 33.69 kB / 0.7024 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.1843, allocations: 293.3 kB / 0.7027 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.1843, allocations: 19.75 kB / 0.7027 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.1846, allocations: 347.6 kB / 0.7031 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.1848, allocations: 322.1 kB / 0.7034 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.1859, allocations: 1.369 MB / 0.7047 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.1872, allocations: 1.505 MB / 0.7062 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006945/0.1942, allocations: 3.564 MB / 0.7097 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.1942, allocations: 0 / 0.7097 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004191/0.1984, allocations: 4.01 MB / 0.7136 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.1984, allocations: 7.938 kB / 0.7136 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.1984, allocations: 4 kB / 0.7136 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1985, allocations: 0 / 0.7136 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.1986, allocations: 19.92 kB / 0.7136 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1987, allocations: 4 kB / 0.7136 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.1992, allocations: 236.3 kB / 0.7138 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-05/0.1992, allocations: 23.98 kB / 0.7139 GB, free: 13.55 MB / 0.5137 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 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003377/0.1996, allocations: 246.3 kB / 0.7141 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.112e-05/0.1996, allocations: 78.62 kB / 0.7142 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002904/0.1999, allocations: 83.75 kB / 0.7142 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.2, allocations: 0 / 0.7142 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2, allocations: 0 / 0.7142 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2, allocations: 4 kB / 0.7143 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004377/0.2004, allocations: 0.5102 MB / 0.7147 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2004, allocations: 4 kB / 0.7148 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.317e-05/0.2005, allocations: 11.92 kB / 0.7148 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2005, allocations: 0 / 0.7148 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.2005, allocations: 8 kB / 0.7148 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2005, allocations: 320 / 0.7148 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2006, allocations: 4 kB / 0.7148 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008851/0.2014, allocations: 1.013 MB / 0.7158 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.2016, allocations: 159.7 kB / 0.7159 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.133e-05/0.2017, allocations: 4 kB / 0.7159 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.2018, allocations: 7.984 kB / 0.7159 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.476e-05/0.2019, allocations: 15.92 kB / 0.7159 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.2019, allocations: 11.97 kB / 0.716 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007744/0.2027, allocations: 0.7261 MB / 0.7167 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2027, allocations: 0 / 0.7167 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001388/0.2041, allocations: 0.5857 MB / 0.7172 GB, free: 9.977 MB / 0.5137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002026/0.2061, allocations: 0.6862 MB / 0.7179 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002246/0.2084, allocations: 2.556 MB / 0.7204 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2084, allocations: 0 / 0.7204 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003222/0.2087, allocations: 339.8 kB / 0.7207 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/0.2091, allocations: 60.59 kB / 0.7208 GB, free: 6.34 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.2114, allocations: 1.898 MB / 0.7226 GB, free: 4.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.2119, allocations: 0.9879 MB / 0.7236 GB, free: 3.395 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001847/0.2121, allocations: 41.38 kB / 0.7236 GB, free: 3.355 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.951e-05/0.2122, allocations: 31.41 kB / 0.7237 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of SimCode: time 3.2e-07/0.2122, allocations: 0 / 0.7237 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of Templates: time 0.0235/0.2357, allocations: 14.18 MB / 0.7375 GB, free: 5.215 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)