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.00187/0.001871, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002124/0.002124, allocations: 195.6 kB / 16.14 MB, free: 6.637 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.455/1.455, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 282.4 kB / 290.2 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.073/1.073, allocations: 178.6 MB / 0.5068 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00286/0.00286, allocations: 100.6 kB / 0.6058 GB, free: 25.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1494, allocations: 89.15 MB / 0.6928 GB, free: 4.801 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002543/0.152, allocations: 1.483 MB / 0.6943 GB, free: 3.312 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006854/0.1589, allocations: 4.488 MB / 0.6987 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.101e-05/0.1589, allocations: 4 kB / 0.6987 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.1591, allocations: 11.92 kB / 0.6987 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.1593, allocations: 27.84 kB / 0.6987 GB, free: 14.77 MB / 0.4981 GB [/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.00303/0.1623, allocations: 1.195 MB / 0.6999 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000146/0.1625, allocations: 119.7 kB / 0.7 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.1625, allocations: 11.97 kB / 0.7 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.631e-05/0.1626, allocations: 35.86 kB / 0.7 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.1629, allocations: 168.9 kB / 0.7002 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.331e-05/0.1629, allocations: 16 kB / 0.7002 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003232/0.1662, allocations: 2.172 MB / 0.7023 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002397/0.1664, allocations: 271.8 kB / 0.7026 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002732/0.1667, allocations: 282.3 kB / 0.7029 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002935/0.1696, allocations: 2.159 MB / 0.705 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1697, allocations: 0 / 0.705 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1697, allocations: 0 / 0.705 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.1697, allocations: 0 / 0.705 GB, free: 8.344 MB / 0.4981 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.008163/0.1778, allocations: 1.296 MB / 0.7062 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1779, allocations: 12.03 kB / 0.7062 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004024/0.1783, allocations: 95.59 kB / 0.7063 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.1787, allocations: 361 kB / 0.7067 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.1788, allocations: 16.31 kB / 0.7067 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.76e-05/0.1788, allocations: 4.375 kB / 0.7067 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.1793, allocations: 391.5 kB / 0.7071 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1793, allocations: 0 / 0.7071 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.1793, allocations: 3.984 kB / 0.7071 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1794, allocations: 4 kB / 0.7071 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.1798, allocations: 427.8 kB / 0.7075 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006384/0.1805, allocations: 0.6366 MB / 0.7081 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005799/0.1811, allocations: 0.5633 MB / 0.7087 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.1814, allocations: 337.7 kB / 0.709 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001136/0.1826, allocations: 1.025 MB / 0.71 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004588/0.183, allocations: 412.8 kB / 0.7104 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.1831, allocations: 0 / 0.7104 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001445/0.1845, allocations: 1.297 MB / 0.7116 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.1846, allocations: 81.11 kB / 0.7117 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.1858, allocations: 1.214 MB / 0.7129 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.1859, allocations: 33.64 kB / 0.7129 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/0.1861, allocations: 261.4 kB / 0.7132 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.1861, allocations: 23.73 kB / 0.7132 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000365/0.1865, allocations: 351.6 kB / 0.7135 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1867, allocations: 314 kB / 0.7138 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.1881, allocations: 1.377 MB / 0.7152 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.1896, allocations: 1.509 MB / 0.7167 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00756/0.1971, allocations: 3.556 MB / 0.7201 GB, free: 8.211 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1972, allocations: 4 kB / 0.7201 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004648/0.2018, allocations: 4.006 MB / 0.7241 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.2018, allocations: 4 kB / 0.7241 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.2019, allocations: 4 kB / 0.7241 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2019, allocations: 0 / 0.7241 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.202, allocations: 15.98 kB / 0.7241 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.202, allocations: 4 kB / 0.7241 GB, free: 4.137 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004731/0.2025, allocations: 228.3 kB / 0.7243 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/0.2026, allocations: 27.98 kB / 0.7243 GB, free: 3.883 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.0003168/0.2029, allocations: 238.3 kB / 0.7245 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.596e-05/0.203, allocations: 70.72 kB / 0.7246 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002903/0.2033, allocations: 71.06 kB / 0.7247 GB, free: 3.492 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.2033, allocations: 4 kB / 0.7247 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2033, allocations: 4.031 kB / 0.7247 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2033, allocations: 0 / 0.7247 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004822/0.2038, allocations: 0.4892 MB / 0.7252 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2038, allocations: 0 / 0.7252 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.207e-05/0.2039, allocations: 11.92 kB / 0.7252 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2039, allocations: 3.938 kB / 0.7252 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.2039, allocations: 4 kB / 0.7252 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2039, allocations: 4 kB / 0.7252 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.204, allocations: 3.984 kB / 0.7252 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.205, allocations: 0.9975 MB / 0.7262 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.2051, allocations: 163.7 kB / 0.7263 GB, free: 1.723 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.703e-05/0.2052, allocations: 7.984 kB / 0.7263 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.2054, allocations: 4 kB / 0.7263 GB, free: 1.711 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.057e-05/0.2054, allocations: 3.984 kB / 0.7263 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-05/0.2054, allocations: 15.98 kB / 0.7264 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007769/0.2062, allocations: 0.6727 MB / 0.727 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2062, allocations: 0 / 0.727 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001506/0.2077, allocations: 0.5857 MB / 0.7276 GB, free: 436 kB / 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.001913/0.2097, allocations: 0.6816 MB / 0.7283 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002652/0.2123, allocations: 2.558 MB / 0.7307 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2123, allocations: 0 / 0.7307 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004045/0.2128, allocations: 339.8 kB / 0.7311 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.2132, allocations: 36.53 kB / 0.7311 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.2155, allocations: 1.934 MB / 0.733 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006007/0.2162, allocations: 0.9643 MB / 0.7339 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001855/0.2164, allocations: 36.86 kB / 0.734 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.2165, allocations: 31.36 kB / 0.734 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of SimCode: time 4.41e-07/0.2165, allocations: 0 / 0.734 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of Templates: time 0.02341/0.2399, allocations: 13.3 MB / 0.747 GB, free: 12.53 MB / 0.545 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)