Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.585/1.585, allocations: 252 MB / 267.6 MB, free: 10.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009535/0.0009536, allocations: 180.5 kB / 327.3 MB, free: 2.195 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.4 MB / 0.5783 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007171/0.0007171, allocations: 90.3 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.000309, allocations: 8.594 kB / 0.797 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.1877, allocations: 106.3 MB / 0.9008 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001544/0.1893, allocations: 1.18 MB / 0.902 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000843/0.1902, allocations: 0.5629 MB / 0.9025 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.103e-05/0.1902, allocations: 0 / 0.9025 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.73e-05/0.1903, allocations: 0 / 0.9025 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.471e-05/0.1903, allocations: 15.92 kB / 0.9025 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.1906, allocations: 35.91 kB / 0.9026 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.816e-05/0.1907, allocations: 27.91 kB / 0.9026 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.613e-05/0.1908, allocations: 7.938 kB / 0.9026 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.822e-05/0.1909, allocations: 7.938 kB / 0.9026 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.916e-05/0.1909, allocations: 15.92 kB / 0.9026 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.191, allocations: 0 / 0.9026 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.1911, allocations: 51.95 kB / 0.9027 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.057e-06/0.1911, allocations: 7.984 kB / 0.9027 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.117e-05/0.1911, allocations: 25.7 kB / 0.9027 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.1912, allocations: 39.94 kB / 0.9028 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1912, allocations: 0 / 0.9028 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.615e-06/0.1912, allocations: 0 / 0.9028 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.1913, allocations: 4 kB / 0.9028 GB, free: 61.87 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003961/0.1917, allocations: 351.4 kB / 0.9031 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1917, allocations: 8.031 kB / 0.9031 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.449e-05/0.1917, allocations: 4 kB / 0.9031 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.1919, allocations: 175 kB / 0.9033 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1919, allocations: 0 / 0.9033 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.1919, allocations: 4 kB / 0.9033 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.192, allocations: 41.69 kB / 0.9033 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1921, allocations: 0 / 0.9033 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.1921, allocations: 0 / 0.9033 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1921, allocations: 7.938 kB / 0.9033 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.518e-05/0.1922, allocations: 23.98 kB / 0.9033 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003071/0.1925, allocations: 260.9 kB / 0.9036 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 8.337e-05/0.1926, allocations: 30.58 kB / 0.9036 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.887e-05/0.1926, allocations: 20.91 kB / 0.9036 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008044/0.1935, allocations: 0.4897 MB / 0.9041 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.1935, allocations: 30.56 kB / 0.9042 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 2.074e-06/0.1935, allocations: 0 / 0.9042 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0002498/0.1938, allocations: 81.58 kB / 0.9042 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.1938, allocations: 59.36 kB / 0.9043 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.476e-05/0.1939, allocations: 113.8 kB / 0.9044 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.858e-06/0.1939, allocations: 25.7 kB / 0.9044 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.933e-05/0.1939, allocations: 84.14 kB / 0.9045 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.1939, allocations: 7.844 kB / 0.9045 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.1939, allocations: 4 kB / 0.9045 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.298e-05/0.194, allocations: 314.8 kB / 0.9048 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.431e-05/0.1941, allocations: 15.98 kB / 0.9048 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.399e-05/0.1941, allocations: 12 kB / 0.9048 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.23e-05/0.1941, allocations: 11.98 kB / 0.9049 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1942, allocations: 0 / 0.9049 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001084/0.1943, allocations: 57.62 kB / 0.9049 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1943, allocations: 8.094 kB / 0.9049 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1943, allocations: 0 / 0.9049 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1943, allocations: 0 / 0.9049 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.747e-05/0.1944, allocations: 11.98 kB / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.1944, allocations: 4 kB / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.503e-05/0.1945, allocations: 7.953 kB / 0.9049 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-06/0.1945, allocations: 0 / 0.9049 GB, free: 59.33 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.552e-05/0.1945, allocations: 109.8 kB / 0.905 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.1946, allocations: 15.89 kB / 0.9051 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.1947, allocations: 61.22 kB / 0.9051 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.1947, allocations: 0 / 0.9051 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1948, allocations: 3.938 kB / 0.9051 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1948, allocations: 3.984 kB / 0.9051 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.1949, allocations: 161.6 kB / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1949, allocations: 3.984 kB / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-05/0.1949, allocations: 12.02 kB / 0.9053 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.195, allocations: 0 / 0.9053 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.195, allocations: 0 / 0.9053 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.195, allocations: 0 / 0.9053 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.195, allocations: 4 kB / 0.9053 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.1951, allocations: 151.5 kB / 0.9054 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.856e-05/0.1951, allocations: 92.97 kB / 0.9055 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.1952, allocations: 0 / 0.9055 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.967e-05/0.1952, allocations: 7.938 kB / 0.9055 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.1953, allocations: 0 / 0.9055 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.1953, allocations: 4 kB / 0.9055 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.791e-05/0.1953, allocations: 87.27 kB / 0.9056 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.51e-07/0.1953, allocations: 0 / 0.9056 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002184/0.1955, allocations: 19.94 kB / 0.9056 GB, free: 58.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000156/0.1957, allocations: 115.2 kB / 0.9058 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.1958, allocations: 27.98 kB / 0.9058 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1959, allocations: 0 / 0.9058 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 4.329e-05/0.1959, allocations: 15.98 kB / 0.9058 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.1961, allocations: 7.953 kB / 0.9058 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002614/0.1964, allocations: 162.4 kB / 0.906 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.1965, allocations: 0.677 MB / 0.9066 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.031e-05/0.1965, allocations: 15.44 kB / 0.9066 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of SimCode: time 2.6e-07/0.1965, allocations: 0 / 0.9066 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of Templates: time 0.002054/0.1986, allocations: 0.7984 MB / 0.9074 GB, free: 56.63 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)