Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001035/0.001035, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.291/1.291, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002031/0.002031, allocations: 286.9 kB / 290.4 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9342/0.9342, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001622, allocations: 92.27 kB / 0.5947 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1476, allocations: 86.99 MB / 0.6797 GB, free: 1.008 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002292/0.1499, allocations: 1.477 MB / 0.6811 GB, free: 15.52 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005732/0.1557, allocations: 4.224 MB / 0.6852 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.297e-05/0.1558, allocations: 3.938 kB / 0.6852 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.991e-05/0.1559, allocations: 3.938 kB / 0.6852 GB, free: 11.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1561, allocations: 31.89 kB / 0.6853 GB, free: 11.24 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.003315/0.1595, allocations: 1.349 MB / 0.6866 GB, free: 9.895 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00012/0.1596, allocations: 91.67 kB / 0.6867 GB, free: 9.805 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.928e-05/0.1596, allocations: 4 kB / 0.6867 GB, free: 9.801 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.572e-05/0.1597, allocations: 51.83 kB / 0.6867 GB, free: 9.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.1599, allocations: 160.9 kB / 0.6869 GB, free: 9.594 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.16, allocations: 20 kB / 0.6869 GB, free: 9.574 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002632/0.1626, allocations: 2.196 MB / 0.689 GB, free: 7.375 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.1628, allocations: 267.8 kB / 0.6893 GB, free: 7.113 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.1631, allocations: 278.3 kB / 0.6896 GB, free: 6.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00222/0.1653, allocations: 2.12 MB / 0.6916 GB, free: 4.711 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1653, allocations: 0 / 0.6916 GB, free: 4.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1653, allocations: 4 kB / 0.6916 GB, free: 4.707 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.1653, allocations: 0 / 0.6916 GB, free: 4.707 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.008946/0.1743, allocations: 1.296 MB / 0.6929 GB, free: 3.359 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1743, allocations: 8.031 kB / 0.6929 GB, free: 3.352 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003775/0.1747, allocations: 83.69 kB / 0.693 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.1751, allocations: 365 kB / 0.6933 GB, free: 2.863 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.1751, allocations: 8.359 kB / 0.6934 GB, free: 2.855 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.1751, allocations: 8.375 kB / 0.6934 GB, free: 2.848 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004699/0.1756, allocations: 395.4 kB / 0.6937 GB, free: 2.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.1756, allocations: 0 / 0.6937 GB, free: 2.449 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.1757, allocations: 0 / 0.6937 GB, free: 2.449 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1757, allocations: 0 / 0.6937 GB, free: 2.449 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.1761, allocations: 439.7 kB / 0.6942 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005119/0.1766, allocations: 0.6404 MB / 0.6948 GB, free: 1.328 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004525/0.177, allocations: 0.5595 MB / 0.6953 GB, free: 0.75 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002839/0.1773, allocations: 333.6 kB / 0.6956 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009689/0.1783, allocations: 1.028 MB / 0.6967 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003761/0.1787, allocations: 412.8 kB / 0.697 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.1787, allocations: 4 kB / 0.697 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001235/0.18, allocations: 1.289 MB / 0.6983 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.18, allocations: 81.09 kB / 0.6984 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.1811, allocations: 1.222 MB / 0.6996 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.1811, allocations: 29.7 kB / 0.6996 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.1813, allocations: 269.5 kB / 0.6999 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.1813, allocations: 11.81 kB / 0.6999 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002949/0.1816, allocations: 351.6 kB / 0.7002 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1817, allocations: 314 kB / 0.7005 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.1829, allocations: 1.369 MB / 0.7018 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.1842, allocations: 1.497 MB / 0.7033 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006857/0.191, allocations: 3.568 MB / 0.7068 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.191, allocations: 0 / 0.7068 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004025/0.1951, allocations: 3.999 MB / 0.7107 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1951, allocations: 11.98 kB / 0.7107 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.1951, allocations: 0 / 0.7107 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.1952, allocations: 8.031 kB / 0.7107 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.1953, allocations: 15.94 kB / 0.7107 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1953, allocations: 3.984 kB / 0.7107 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004584/0.1958, allocations: 244.1 kB / 0.711 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.1959, allocations: 19.98 kB / 0.711 GB, free: 264 kB / 0.4981 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.0002778/0.1961, allocations: 238.3 kB / 0.7112 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.182e-05/0.1962, allocations: 66.89 kB / 0.7113 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.1965, allocations: 83 kB / 0.7114 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1965, allocations: 0 / 0.7114 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.1965, allocations: 0 / 0.7114 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.195e-06/0.1965, allocations: 4 kB / 0.7114 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.1969, allocations: 492.9 kB / 0.7118 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1969, allocations: 0 / 0.7118 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.197, allocations: 15.92 kB / 0.7118 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.197, allocations: 4.031 kB / 0.7119 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.197, allocations: 0 / 0.7119 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.197, allocations: 4 kB / 0.7119 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.197, allocations: 0 / 0.7119 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000867/0.1979, allocations: 1.009 MB / 0.7128 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.198, allocations: 159.8 kB / 0.713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/0.1981, allocations: 0 / 0.713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.1982, allocations: 7.984 kB / 0.713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.1983, allocations: 4 kB / 0.713 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/0.1983, allocations: 19.97 kB / 0.713 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006636/0.199, allocations: 0.6689 MB / 0.7137 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.199, allocations: 0 / 0.7137 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001331/0.2003, allocations: 0.5739 MB / 0.7142 GB, free: 12.81 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.001773/0.2021, allocations: 0.7005 MB / 0.7149 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002229/0.2044, allocations: 2.552 MB / 0.7174 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.2044, allocations: 0 / 0.7174 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003358/0.2047, allocations: 339.8 kB / 0.7177 GB, free: 9.227 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2051, allocations: 41.66 kB / 0.7178 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.2073, allocations: 1.936 MB / 0.7197 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.2079, allocations: 0.9679 MB / 0.7206 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001847/0.2081, allocations: 28.56 kB / 0.7206 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.2083, allocations: 31.41 kB / 0.7207 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of SimCode: time 4.51e-07/0.2083, allocations: 0 / 0.7207 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of Templates: time 0.02043/0.2287, allocations: 13.54 MB / 0.7339 GB, free: 8.668 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)