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.0007941/0.0007941, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.005081/0.005081, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.3/1.3, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001723/0.001723, allocations: 258.9 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9266/0.9266, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004044, allocations: 12.25 kB / 0.5987 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1381, 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_1borehole_5meters): time 0.001323/0.1394, allocations: 1.141 MB / 0.6863 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00603/0.1455, allocations: 4.39 MB / 0.6906 GB, free: 9.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.822e-05/0.1456, allocations: 3.938 kB / 0.6906 GB, free: 9.477 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.69e-05/0.1457, allocations: 11.44 kB / 0.6906 GB, free: 9.469 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.1459, allocations: 35.83 kB / 0.6906 GB, free: 9.434 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.003034/0.1489, allocations: 1.169 MB / 0.6918 GB, free: 8.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.1491, allocations: 127.6 kB / 0.6919 GB, free: 8.148 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.353e-05/0.1491, allocations: 7.938 kB / 0.6919 GB, free: 8.141 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.108e-05/0.1492, allocations: 51.84 kB / 0.6919 GB, free: 8.09 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1494, allocations: 156.9 kB / 0.6921 GB, free: 7.938 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/0.1495, allocations: 15.98 kB / 0.6921 GB, free: 7.922 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003104/0.1526, allocations: 2.176 MB / 0.6942 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.1528, allocations: 271.8 kB / 0.6945 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.1531, allocations: 304 kB / 0.6948 GB, free: 5.172 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00287/0.1559, allocations: 2.155 MB / 0.6969 GB, free: 3.008 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.156, allocations: 4 kB / 0.6969 GB, free: 3.004 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.156, allocations: 0 / 0.6969 GB, free: 3.004 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.156, allocations: 0 / 0.6969 GB, free: 3.004 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.01064/0.1666, allocations: 1.253 MB / 0.6981 GB, free: 1.699 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1667, allocations: 8.031 kB / 0.6981 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000374/0.1671, allocations: 83.69 kB / 0.6982 GB, free: 1.609 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000401/0.1675, allocations: 361 kB / 0.6985 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.1675, allocations: 8.359 kB / 0.6986 GB, free: 1.199 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.571e-05/0.1676, allocations: 8.375 kB / 0.6986 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004452/0.168, allocations: 399.4 kB / 0.6989 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.168, allocations: 0 / 0.6989 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.1681, allocations: 3.938 kB / 0.6989 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.1681, allocations: 0 / 0.6989 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004476/0.1685, allocations: 435.7 kB / 0.6994 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006187/0.1692, allocations: 0.6327 MB / 0.7 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005038/0.1697, allocations: 0.5633 MB / 0.7005 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003067/0.17, allocations: 333.7 kB / 0.7008 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001069/0.1711, allocations: 1.048 MB / 0.7019 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003811/0.1715, allocations: 404.8 kB / 0.7023 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.1715, allocations: 0 / 0.7023 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.00127/0.1728, allocations: 1.289 MB / 0.7035 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.1728, allocations: 89.09 kB / 0.7036 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.1739, allocations: 1.21 MB / 0.7048 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.174, allocations: 29.7 kB / 0.7048 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.1742, allocations: 265.3 kB / 0.7051 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.1742, allocations: 27.64 kB / 0.7051 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.1745, allocations: 291.8 kB / 0.7054 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.1746, allocations: 314 kB / 0.7057 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.1757, allocations: 1.369 MB / 0.707 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.177, allocations: 1.505 MB / 0.7085 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007/0.184, allocations: 3.56 MB / 0.712 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.184, allocations: 0 / 0.712 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003899/0.188, allocations: 3.999 MB / 0.7159 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.188, allocations: 4 kB / 0.7159 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.188, allocations: 7.938 kB / 0.7159 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.188, allocations: 0 / 0.7159 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.1882, allocations: 19.98 kB / 0.7159 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.1882, allocations: 4.031 kB / 0.7159 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004671/0.1887, allocations: 228.3 kB / 0.7161 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.037e-05/0.1887, allocations: 27.97 kB / 0.7161 GB, free: 14.66 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.0002855/0.189, allocations: 238.3 kB / 0.7164 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.412e-05/0.1891, allocations: 70.72 kB / 0.7164 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.1893, allocations: 71.08 kB / 0.7165 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.1894, allocations: 7.984 kB / 0.7165 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1894, allocations: 0 / 0.7165 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1894, allocations: 0 / 0.7165 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004162/0.1898, allocations: 0.5008 MB / 0.717 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1898, allocations: 0 / 0.717 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.828e-05/0.1899, allocations: 7.938 kB / 0.717 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1899, allocations: 0 / 0.717 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1899, allocations: 7.984 kB / 0.717 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.1899, allocations: 0 / 0.717 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1899, allocations: 7.969 kB / 0.717 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000947/0.1909, allocations: 0.9935 MB / 0.718 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.191, allocations: 159.7 kB / 0.7181 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.945e-05/0.1911, allocations: 7.938 kB / 0.7181 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.1912, allocations: 12 kB / 0.7182 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.309e-05/0.1913, allocations: 3.984 kB / 0.7182 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.1913, allocations: 11.98 kB / 0.7182 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006806/0.192, allocations: 0.6728 MB / 0.7188 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.192, allocations: 0 / 0.7188 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001415/0.1934, allocations: 0.5818 MB / 0.7194 GB, free: 11.2 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.001728/0.1952, allocations: 0.6899 MB / 0.7201 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00218/0.1974, allocations: 2.556 MB / 0.7226 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.1974, allocations: 0 / 0.7226 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003158/0.1977, allocations: 343.7 kB / 0.7229 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.1981, allocations: 36.55 kB / 0.7229 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.2001, allocations: 1.942 MB / 0.7248 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.2006, allocations: 0.9604 MB / 0.7258 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000167/0.2008, allocations: 40.55 kB / 0.7258 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.538e-05/0.2009, allocations: 23.42 kB / 0.7258 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.2009, allocations: 0 / 0.7258 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of Templates: time 0.02032/0.2212, allocations: 13.19 MB / 0.7387 GB, free: 7.41 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)