Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.643/1.643, allocations: 288.4 MB / 303.7 MB, free: 8.051 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009949/0.000995, allocations: 179.3 kB / 372.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.4 MB / 0.631 GB, free: 9.887 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007906/0.0007906, allocations: 94.28 kB / 0.7444 GB, free: 5.805 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.000367, allocations: 17.66 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1801, allocations: 115.3 MB / 0.9801 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0005785/0.1807, allocations: 315.8 kB / 0.9804 GB, free: 27.04 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002099/0.181, allocations: 47.89 kB / 0.9805 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.201e-05/0.181, allocations: 0 / 0.9805 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.181, allocations: 3.938 kB / 0.9805 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.835e-06/0.181, allocations: 0 / 0.9805 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001737/0.1812, allocations: 4 kB / 0.9805 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 3.751e-05/0.1813, allocations: 12 kB / 0.9805 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.1813, allocations: 0 / 0.9805 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.373e-05/0.1813, allocations: 4 kB / 0.9805 GB, free: 26.97 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.333e-05/0.1814, allocations: 0 / 0.9805 GB, free: 26.97 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.065e-06/0.1814, allocations: 4 kB / 0.9805 GB, free: 26.97 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.201e-05/0.1814, allocations: 7.984 kB / 0.9805 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1814, allocations: 3.984 kB / 0.9805 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.011e-05/0.1815, allocations: 29.7 kB / 0.9806 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 5.11e-05/0.1815, allocations: 11.88 kB / 0.9806 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1815, allocations: 0 / 0.9806 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.365e-06/0.1815, allocations: 3.984 kB / 0.9806 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.417e-06/0.1816, allocations: 0 / 0.9806 GB, free: 26.91 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001676/0.1817, allocations: 311.6 kB / 0.9809 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.1818, allocations: 8.031 kB / 0.9809 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.367e-05/0.1818, allocations: 0.9375 kB / 0.9809 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.152e-05/0.1819, allocations: 164.4 kB / 0.981 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.1819, allocations: 384 / 0.981 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.1819, allocations: 8.312 kB / 0.981 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.398e-05/0.182, allocations: 34.25 kB / 0.9811 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.182, allocations: 192 / 0.9811 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.182, allocations: 3.938 kB / 0.9811 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-06/0.182, allocations: 8 kB / 0.9811 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.964e-05/0.1821, allocations: 0 / 0.9811 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.964e-05/0.1821, allocations: 157.6 kB / 0.9812 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 3.712e-05/0.1822, allocations: 18.61 kB / 0.9813 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.1822, allocations: 8.922 kB / 0.9813 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.1823, allocations: 85.09 kB / 0.9813 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.229e-05/0.1824, allocations: 38.56 kB / 0.9814 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1824, allocations: 0 / 0.9814 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001144/0.1825, allocations: 41.58 kB / 0.9814 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.249e-05/0.1825, allocations: 51.41 kB / 0.9815 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.049e-05/0.1825, allocations: 97.84 kB / 0.9816 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.002e-06/0.1826, allocations: 25.7 kB / 0.9816 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.038e-05/0.1826, allocations: 80.14 kB / 0.9817 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.1826, allocations: 7.906 kB / 0.9817 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.1826, allocations: 0 / 0.9817 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.959e-05/0.1827, allocations: 319 kB / 0.982 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-06/0.1827, allocations: 0 / 0.982 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.084e-06/0.1827, allocations: 4 kB / 0.982 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.611e-05/0.1827, allocations: 12.86 kB / 0.982 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1827, allocations: 0 / 0.982 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.139e-05/0.1828, allocations: 45.62 kB / 0.982 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.1828, allocations: 4 kB / 0.982 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.1828, allocations: 0 / 0.982 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1828, allocations: 12.03 kB / 0.982 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.004e-05/0.1829, allocations: 0 / 0.982 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1829, allocations: 0 / 0.982 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.546e-05/0.1829, allocations: 4.281 kB / 0.9821 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-06/0.1829, allocations: 0 / 0.9821 GB, free: 25.15 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac,n) * 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 4.031e-05/0.183, allocations: 113.8 kB / 0.9822 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.151e-06/0.183, allocations: 3.938 kB / 0.9822 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.005e-05/0.1831, allocations: 48.77 kB / 0.9822 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1831, allocations: 7.969 kB / 0.9822 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1831, allocations: 7.922 kB / 0.9822 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1831, allocations: 0 / 0.9822 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.021e-05/0.1831, allocations: 145.7 kB / 0.9824 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1832, allocations: 0 / 0.9824 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.1832, allocations: 4 kB / 0.9824 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1832, allocations: 0 / 0.9824 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.1832, allocations: 11.92 kB / 0.9824 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1832, allocations: 0 / 0.9824 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1832, allocations: 0 / 0.9824 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.379e-05/0.1833, allocations: 65.14 kB / 0.9824 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.477e-05/0.1833, allocations: 81.09 kB / 0.9825 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.1833, allocations: 3.938 kB / 0.9825 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.169e-05/0.1833, allocations: 0 / 0.9825 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.545e-05/0.1834, allocations: 0 / 0.9825 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.1834, allocations: 4 kB / 0.9825 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.055e-05/0.1834, allocations: 75.28 kB / 0.9826 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9e-08/0.1834, allocations: 3.938 kB / 0.9826 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002086/0.1836, allocations: 8.031 kB / 0.9826 GB, free: 24.48 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac,n) * 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.0001157/0.1837, allocations: 99.25 kB / 0.9827 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 5.535e-05/0.1838, allocations: 15.98 kB / 0.9827 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.1838, allocations: 0 / 0.9827 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.276e-05/0.1838, allocations: 4 kB / 0.9827 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.1839, allocations: 0 / 0.9827 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001383/0.1841, allocations: 94.72 kB / 0.9828 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.958e-05/0.1842, allocations: 0.6692 MB / 0.9835 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.417e-05/0.1842, allocations: 4 kB / 0.9835 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.049e-05/0.1842, allocations: 11.38 kB / 0.9835 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of SimCode: time 3.5e-07/0.1842, allocations: 0 / 0.9835 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of Templates: time 0.001797/0.186, allocations: 312.7 kB / 0.9838 GB, free: 23.22 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)