Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.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.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007695/0.0007695, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0008368/0.0008369, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001737/0.001737, allocations: 278 kB / 291.4 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9199/0.9199, allocations: 169.5 MB / 0.5 GB, free: 14.24 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004067/0.0004068, allocations: 13.78 kB / 0.598 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1729, allocations: 88.56 MB / 0.6845 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.001546/0.1745, allocations: 1.231 MB / 0.6857 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003027/0.1748, allocations: 122.5 kB / 0.6858 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.701e-05/0.1748, allocations: 4 kB / 0.6858 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.503e-05/0.1749, allocations: 3.938 kB / 0.6858 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.978e-05/0.1749, allocations: 0 / 0.6858 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.1751, allocations: 32.59 kB / 0.6858 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.733e-05/0.1752, allocations: 31.92 kB / 0.6859 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.797e-05/0.1753, allocations: 9.609 kB / 0.6859 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.353e-05/0.1753, allocations: 11.98 kB / 0.6859 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.469e-05/0.1754, allocations: 13.11 kB / 0.6859 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.1754, allocations: 4 kB / 0.6859 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.515e-05/0.1754, allocations: 19.92 kB / 0.6859 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.212e-05/0.1755, allocations: 9.438 kB / 0.6859 GB, free: 14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.275e-05/0.1755, allocations: 33.64 kB / 0.686 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.305e-05/0.1756, allocations: 28.22 kB / 0.686 GB, free: 13.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1756, allocations: 0 / 0.686 GB, free: 13.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1756, allocations: 1.219 kB / 0.686 GB, free: 13.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.1756, allocations: 0 / 0.686 GB, free: 13.93 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.0003977/0.176, allocations: 357.1 kB / 0.6863 GB, free: 13.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.176, allocations: 8.031 kB / 0.6863 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.1761, allocations: 4 kB / 0.6864 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.1762, allocations: 165.6 kB / 0.6865 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.1762, allocations: 4 kB / 0.6865 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-06/0.1762, allocations: 0 / 0.6865 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.1764, allocations: 73.59 kB / 0.6866 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.8e-06/0.1764, allocations: 0.5 kB / 0.6866 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.1764, allocations: 0.5 kB / 0.6866 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.1764, allocations: 1.031 kB / 0.6866 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.1766, allocations: 53.58 kB / 0.6866 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.1771, allocations: 285.9 kB / 0.6869 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.1774, allocations: 68.78 kB / 0.687 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.54e-05/0.1775, allocations: 39.52 kB / 0.687 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002892/0.1778, allocations: 401.5 kB / 0.6874 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.1779, allocations: 30.56 kB / 0.6874 GB, free: 12.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.123e-06/0.1779, allocations: 1.906 kB / 0.6874 GB, free: 12.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003601/0.1782, allocations: 115.7 kB / 0.6875 GB, free: 12.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.1783, allocations: 51.41 kB / 0.6876 GB, free: 12.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.263e-05/0.1784, allocations: 115.2 kB / 0.6877 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.1784, allocations: 25.7 kB / 0.6877 GB, free: 11.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/0.1784, allocations: 92.64 kB / 0.6878 GB, free: 11.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.1785, allocations: 7.906 kB / 0.6878 GB, free: 11.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.1785, allocations: 4 kB / 0.6878 GB, free: 11.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1786, allocations: 314.8 kB / 0.6881 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.452e-05/0.1787, allocations: 23.98 kB / 0.6881 GB, free: 11.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.262e-05/0.1787, allocations: 23.98 kB / 0.6882 GB, free: 11.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.131e-05/0.1788, allocations: 31.97 kB / 0.6882 GB, free: 11.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1788, allocations: 0 / 0.6882 GB, free: 11.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001983/0.179, allocations: 77.94 kB / 0.6883 GB, free: 11.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1791, allocations: 4 kB / 0.6883 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1791, allocations: 7.938 kB / 0.6883 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1791, allocations: 4 kB / 0.6883 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.545e-05/0.1792, allocations: 19.98 kB / 0.6883 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1792, allocations: 0 / 0.6883 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.409e-05/0.1793, allocations: 15.97 kB / 0.6883 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.1793, allocations: 0 / 0.6883 GB, free: 11.27 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.886e-05/0.1794, allocations: 118.4 kB / 0.6884 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.1794, allocations: 3.906 kB / 0.6884 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.1796, allocations: 93.55 kB / 0.6885 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1796, allocations: 0 / 0.6885 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1797, allocations: 3.953 kB / 0.6885 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1797, allocations: 4 kB / 0.6885 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.1798, allocations: 169.6 kB / 0.6887 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.1799, allocations: 0 / 0.6887 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7e-05/0.1799, allocations: 15.94 kB / 0.6887 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1799, allocations: 0 / 0.6887 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.18, allocations: 3.984 kB / 0.6887 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.18, allocations: 0 / 0.6887 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.18, allocations: 4 kB / 0.6887 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002395/0.1802, allocations: 179.5 kB / 0.6889 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.1803, allocations: 84.95 kB / 0.689 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.1803, allocations: 3.984 kB / 0.689 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.753e-05/0.1804, allocations: 12 kB / 0.689 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.1804, allocations: 11.98 kB / 0.689 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.1804, allocations: 0 / 0.689 GB, free: 10.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.187e-05/0.1805, allocations: 95.52 kB / 0.6891 GB, free: 10.38 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1805, allocations: 0 / 0.6891 GB, free: 10.38 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.1808, allocations: 11.95 kB / 0.6891 GB, free: 10.36 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001414/0.1809, allocations: 103.2 kB / 0.6892 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002166/0.1811, allocations: 59.95 kB / 0.6893 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1811, allocations: 0 / 0.6893 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.057e-05/0.1812, allocations: 31.97 kB / 0.6893 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.1815, allocations: 1.406 kB / 0.6893 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002937/0.1818, allocations: 121.2 kB / 0.6894 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.1821, allocations: 0.6809 MB / 0.6901 GB, free: 9.316 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.383e-05/0.1822, allocations: 12.16 kB / 0.6901 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.788e-05/0.1822, allocations: 15.42 kB / 0.6901 GB, free: 9.289 MB / 494.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1822, allocations: 4 kB / 0.6901 GB, free: 9.285 MB / 494.1 MB Notification: Performance of Templates: time 0.002708/0.1849, allocations: 0.6401 MB / 0.6907 GB, free: 8.648 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)