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.001389/0.001389, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001705/0.001705, allocations: 195 kB / 16.14 MB, free: 6.707 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.392/1.392, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 291.1 kB / 290.2 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.946/0.946, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 87 kB / 0.5945 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1421, allocations: 86.99 MB / 0.6795 GB, free: 1.133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002342/0.1444, allocations: 1.469 MB / 0.6809 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006051/0.1505, allocations: 4.49 MB / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.98e-05/0.1506, allocations: 0 / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.1507, allocations: 7.922 kB / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.1509, allocations: 32.81 kB / 0.6853 GB, free: 11.12 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.002627/0.1535, allocations: 1.18 MB / 0.6865 GB, free: 9.945 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.1537, allocations: 127.6 kB / 0.6866 GB, free: 9.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.837e-05/0.1537, allocations: 7.938 kB / 0.6866 GB, free: 9.812 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.07e-05/0.1538, allocations: 47.78 kB / 0.6867 GB, free: 9.766 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.154, allocations: 153 kB / 0.6868 GB, free: 9.617 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.364e-05/0.154, allocations: 19.98 kB / 0.6868 GB, free: 9.598 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002772/0.1568, allocations: 2.18 MB / 0.689 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.157, allocations: 271.8 kB / 0.6892 GB, free: 7.148 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002176/0.1573, allocations: 274.3 kB / 0.6895 GB, free: 6.879 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002374/0.1596, allocations: 2.155 MB / 0.6916 GB, free: 4.715 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1597, allocations: 4 kB / 0.6916 GB, free: 4.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1597, allocations: 0 / 0.6916 GB, free: 4.711 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.1597, allocations: 0 / 0.6916 GB, free: 4.711 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.007581/0.1673, allocations: 1.304 MB / 0.6929 GB, free: 3.355 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1673, allocations: 8.031 kB / 0.6929 GB, free: 3.348 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000382/0.1677, allocations: 87.69 kB / 0.693 GB, free: 3.262 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.1681, allocations: 361 kB / 0.6933 GB, free: 2.859 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1681, allocations: 8.312 kB / 0.6933 GB, free: 2.852 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.1681, allocations: 8.375 kB / 0.6933 GB, free: 2.844 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.1685, allocations: 395.5 kB / 0.6937 GB, free: 2.445 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.1686, allocations: 0 / 0.6937 GB, free: 2.445 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1686, allocations: 0 / 0.6937 GB, free: 2.445 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1686, allocations: 4 kB / 0.6937 GB, free: 2.441 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004066/0.169, allocations: 439.7 kB / 0.6941 GB, free: 2.012 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000534/0.1695, allocations: 0.6404 MB / 0.6947 GB, free: 1.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004879/0.17, allocations: 0.5672 MB / 0.6953 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.1703, allocations: 337.7 kB / 0.6956 GB, free: 408 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009809/0.1713, allocations: 1.032 MB / 0.6966 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003825/0.1717, allocations: 404.8 kB / 0.697 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.1717, allocations: 0 / 0.697 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001255/0.173, allocations: 1.281 MB / 0.6983 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.1731, allocations: 93.08 kB / 0.6984 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.1741, allocations: 1.21 MB / 0.6995 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.1742, allocations: 33.81 kB / 0.6996 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.1744, allocations: 261.4 kB / 0.6998 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.1744, allocations: 23.73 kB / 0.6998 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.1747, allocations: 351.6 kB / 0.7002 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.479e-05/0.1748, allocations: 310 kB / 0.7005 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.176, allocations: 1.369 MB / 0.7018 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.1772, allocations: 1.509 MB / 0.7033 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006826/0.1841, allocations: 3.556 MB / 0.7068 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1841, allocations: 3.938 kB / 0.7068 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003947/0.188, allocations: 4.006 MB / 0.7107 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.1881, allocations: 4 kB / 0.7107 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.1881, allocations: 8.031 kB / 0.7107 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.1881, allocations: 0 / 0.7107 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.1882, allocations: 19.98 kB / 0.7107 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.1882, allocations: 8.062 kB / 0.7107 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.1887, allocations: 228.3 kB / 0.7109 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.303e-05/0.1887, allocations: 23.98 kB / 0.711 GB, free: 256 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.0002742/0.189, allocations: 242.2 kB / 0.7112 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.968e-05/0.1891, allocations: 74.77 kB / 0.7113 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.1894, allocations: 74.95 kB / 0.7113 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1894, allocations: 4 kB / 0.7113 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1894, allocations: 0 / 0.7113 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1894, allocations: 0 / 0.7113 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003952/0.1898, allocations: 0.493 MB / 0.7118 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1898, allocations: 0 / 0.7118 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-05/0.1899, allocations: 15.91 kB / 0.7118 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1899, allocations: 3.984 kB / 0.7118 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.1899, allocations: 4 kB / 0.7118 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1899, allocations: 0 / 0.7118 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1899, allocations: 0 / 0.7118 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008925/0.1908, allocations: 0.9975 MB / 0.7128 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.576e-05/0.1909, allocations: 151.8 kB / 0.713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/0.191, allocations: 4 kB / 0.713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.1911, allocations: 4 kB / 0.713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.1912, allocations: 11.97 kB / 0.713 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.43e-05/0.1912, allocations: 15.98 kB / 0.713 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000676/0.1919, allocations: 0.6766 MB / 0.7136 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1919, allocations: 0 / 0.7136 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001437/0.1933, allocations: 0.5818 MB / 0.7142 GB, free: 12.79 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.001746/0.1951, allocations: 0.6898 MB / 0.7149 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002202/0.1973, allocations: 2.553 MB / 0.7174 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1973, allocations: 0 / 0.7174 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.1976, allocations: 335.8 kB / 0.7177 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.198, allocations: 44.66 kB / 0.7177 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.2002, allocations: 1.937 MB / 0.7196 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.2007, allocations: 0.9642 MB / 0.7206 GB, free: 6.219 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001627/0.2009, allocations: 36.55 kB / 0.7206 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.987e-05/0.201, allocations: 23.42 kB / 0.7206 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.201, allocations: 0 / 0.7206 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of Templates: time 0.02028/0.2213, allocations: 13.3 MB / 0.7336 GB, free: 8.902 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)