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.0008986/0.0008987, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007027/0.007027, allocations: 171.7 kB / 16.27 MB, free: 6.652 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.301/1.301, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001664/0.001664, allocations: 267.1 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9312/0.9312, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004097/0.0004101, allocations: 17.05 kB / 0.5987 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1492, allocations: 88.55 MB / 0.6852 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001807/0.151, allocations: 1.458 MB / 0.6866 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00731/0.1583, allocations: 5.54 MB / 0.692 GB, free: 8.012 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1585, allocations: 6.406 kB / 0.692 GB, free: 8.008 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.1596, allocations: 356.5 kB / 0.6924 GB, free: 7.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.1597, allocations: 55.73 kB / 0.6924 GB, free: 7.605 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002993/0.1628, allocations: 1.176 MB / 0.6936 GB, free: 6.438 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002593/0.163, allocations: 203.3 kB / 0.6937 GB, free: 6.238 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.741e-05/0.1631, allocations: 17.56 kB / 0.6938 GB, free: 6.223 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.126e-05/0.1632, allocations: 59.7 kB / 0.6938 GB, free: 6.164 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002208/0.1634, allocations: 180.8 kB / 0.694 GB, free: 5.988 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.671e-05/0.1634, allocations: 16 kB / 0.694 GB, free: 5.973 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002889/0.1663, allocations: 2.18 MB / 0.6961 GB, free: 3.789 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.1665, allocations: 275.8 kB / 0.6964 GB, free: 3.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002603/0.1668, allocations: 335.8 kB / 0.6967 GB, free: 3.184 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002648/0.1695, allocations: 2.225 MB / 0.6989 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1695, allocations: 4 kB / 0.6989 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1695, allocations: 0 / 0.6989 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.1695, allocations: 0 / 0.6989 GB, free: 0.9453 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.01095/0.1805, allocations: 1.304 MB / 0.7002 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1805, allocations: 8.031 kB / 0.7002 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003796/0.1809, allocations: 91.59 kB / 0.7003 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004643/0.1814, allocations: 402.3 kB / 0.7007 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.1814, allocations: 12.31 kB / 0.7007 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.1814, allocations: 4.375 kB / 0.7007 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.1819, allocations: 399.4 kB / 0.701 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-06/0.1819, allocations: 0 / 0.701 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1819, allocations: 0 / 0.701 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1819, allocations: 4 kB / 0.7011 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.1823, allocations: 431.7 kB / 0.7015 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.183, allocations: 0.6732 MB / 0.7021 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005245/0.1835, allocations: 0.5595 MB / 0.7027 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/0.1838, allocations: 337.6 kB / 0.703 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/0.1849, allocations: 1.036 MB / 0.704 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003953/0.1853, allocations: 408.8 kB / 0.7044 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 2.916e-06/0.1853, allocations: 3.984 kB / 0.7044 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001295/0.1866, allocations: 1.304 MB / 0.7057 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.1867, allocations: 81.11 kB / 0.7057 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.1879, allocations: 1.293 MB / 0.707 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/0.188, allocations: 29.7 kB / 0.707 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.1882, allocations: 285.4 kB / 0.7073 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.1882, allocations: 19.88 kB / 0.7073 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.1885, allocations: 291.7 kB / 0.7076 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1886, allocations: 322 kB / 0.7079 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.1898, allocations: 1.369 MB / 0.7093 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.1911, allocations: 1.505 MB / 0.7107 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006927/0.198, allocations: 3.56 MB / 0.7142 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1981, allocations: 0 / 0.7142 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003968/0.202, allocations: 4.014 MB / 0.7181 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.2021, allocations: 4 kB / 0.7181 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.2021, allocations: 4 kB / 0.7181 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2021, allocations: 0 / 0.7181 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.2023, allocations: 27.95 kB / 0.7182 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2023, allocations: 4 kB / 0.7182 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.2028, allocations: 228.3 kB / 0.7184 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.912e-05/0.2028, allocations: 23.98 kB / 0.7184 GB, free: 12.35 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.0003068/0.2032, allocations: 250.2 kB / 0.7186 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.009e-05/0.2032, allocations: 78.62 kB / 0.7187 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.2035, allocations: 83.81 kB / 0.7188 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2035, allocations: 0 / 0.7188 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.2035, allocations: 4 kB / 0.7188 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2035, allocations: 0 / 0.7188 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004339/0.204, allocations: 0.5102 MB / 0.7193 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.204, allocations: 0 / 0.7193 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.122e-05/0.2041, allocations: 11.92 kB / 0.7193 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2041, allocations: 0 / 0.7193 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.2041, allocations: 4 kB / 0.7193 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2041, allocations: 7.969 kB / 0.7193 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.2041, allocations: 4 kB / 0.7193 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008701/0.205, allocations: 1.006 MB / 0.7203 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.2051, allocations: 167.6 kB / 0.7205 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.2052, allocations: 0 / 0.7205 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.2053, allocations: 11.98 kB / 0.7205 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.7e-05/0.2054, allocations: 4 kB / 0.7205 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.2054, allocations: 19.97 kB / 0.7205 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007658/0.2062, allocations: 0.7183 MB / 0.7212 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2062, allocations: 0 / 0.7212 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001466/0.2077, allocations: 0.5974 MB / 0.7218 GB, free: 8.773 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.001777/0.2095, allocations: 0.693 MB / 0.7225 GB, free: 8.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002225/0.2117, allocations: 2.552 MB / 0.7249 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2117, allocations: 0 / 0.7249 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003147/0.2121, allocations: 335.8 kB / 0.7253 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004626/0.2125, allocations: 62.83 kB / 0.7253 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.2147, allocations: 2.086 MB / 0.7274 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.2153, allocations: 0.9959 MB / 0.7283 GB, free: 2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000195/0.2155, allocations: 41.41 kB / 0.7284 GB, free: 1.961 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.2156, allocations: 27.42 kB / 0.7284 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of SimCode: time 4.2e-07/0.2156, allocations: 0 / 0.7284 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of Templates: time 0.02239/0.238, allocations: 13.78 MB / 0.7419 GB, free: 4.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)