Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007369/0.0007368, allocations: 91.3 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.004631/0.004631, allocations: 172.8 kB / 16.26 MB, free: 6.676 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.327/1.327, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001782/0.001782, allocations: 270.3 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9473/0.9473, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006713/0.0006715, allocations: 17.55 kB / 0.5987 GB, free: 28.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1732, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.000624/0.1738, allocations: 311.3 kB / 0.6854 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002553/0.1741, allocations: 52.48 kB / 0.6855 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.165e-05/0.1741, allocations: 0 / 0.6855 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.313e-05/0.1741, allocations: 4.5 kB / 0.6855 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.568e-06/0.1742, allocations: 1.062 kB / 0.6855 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.1744, allocations: 19.91 kB / 0.6855 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.968e-05/0.1744, allocations: 31.92 kB / 0.6855 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.738e-05/0.1745, allocations: 1.469 kB / 0.6855 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.029e-05/0.1745, allocations: 15.98 kB / 0.6856 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.448e-05/0.1745, allocations: 7.984 kB / 0.6856 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.028e-05/0.1746, allocations: 0 / 0.6856 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.533e-05/0.1746, allocations: 22.52 kB / 0.6856 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.542e-05/0.1747, allocations: 11.98 kB / 0.6856 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.941e-05/0.1747, allocations: 45.56 kB / 0.6856 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.691e-05/0.1748, allocations: 27.89 kB / 0.6857 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1748, allocations: 4 kB / 0.6857 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1748, allocations: 0 / 0.6857 GB, free: 14.54 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.1748, allocations: 0 / 0.6857 GB, free: 14.54 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002632/0.1751, allocations: 329 kB / 0.686 GB, free: 14.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.1751, allocations: 8.031 kB / 0.686 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.1752, allocations: 10.03 kB / 0.686 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.074e-05/0.1752, allocations: 172.3 kB / 0.6862 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.1753, allocations: 8.375 kB / 0.6862 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.1753, allocations: 4.922 kB / 0.6862 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.1754, allocations: 63.27 kB / 0.6862 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.1754, allocations: 192 / 0.6862 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.1754, allocations: 7.938 kB / 0.6862 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1755, allocations: 1.594 kB / 0.6862 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.1756, allocations: 103.9 kB / 0.6863 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.1757, allocations: 161.7 kB / 0.6865 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.1759, allocations: 83.48 kB / 0.6866 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.432e-05/0.1759, allocations: 36.31 kB / 0.6866 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002893/0.1762, allocations: 401.5 kB / 0.687 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.1762, allocations: 30.56 kB / 0.687 GB, free: 12.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.1762, allocations: 0 / 0.687 GB, free: 12.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002137/0.1765, allocations: 109.9 kB / 0.6871 GB, free: 12.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.1765, allocations: 59.39 kB / 0.6872 GB, free: 12.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.791e-05/0.1766, allocations: 101.9 kB / 0.6873 GB, free: 12.61 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.1766, allocations: 26.3 kB / 0.6873 GB, free: 12.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.111e-05/0.1766, allocations: 86.36 kB / 0.6874 GB, free: 12.49 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.1766, allocations: 23.73 kB / 0.6874 GB, free: 12.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.1767, allocations: 21.7 kB / 0.6874 GB, free: 12.44 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.735e-05/0.1768, allocations: 318.8 kB / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.481e-05/0.1768, allocations: 19.98 kB / 0.6878 GB, free: 12.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.312e-05/0.1769, allocations: 28.47 kB / 0.6878 GB, free: 12.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.664e-05/0.177, allocations: 57.58 kB / 0.6878 GB, free: 12.01 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.177, allocations: 0 / 0.6878 GB, free: 12.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001305/0.1771, allocations: 99.55 kB / 0.6879 GB, free: 11.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.1771, allocations: 4 kB / 0.6879 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1771, allocations: 3.938 kB / 0.6879 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.1771, allocations: 0 / 0.6879 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.147e-05/0.1772, allocations: 23.92 kB / 0.688 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.1772, allocations: 2.5 kB / 0.688 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.255e-05/0.1773, allocations: 7.938 kB / 0.688 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.1773, allocations: 4 kB / 0.688 GB, free: 11.87 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000106/0.1774, allocations: 123.1 kB / 0.6881 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.1774, allocations: 8.688 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002093/0.1776, allocations: 123.2 kB / 0.6882 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1776, allocations: 0 / 0.6882 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1777, allocations: 0 / 0.6882 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1777, allocations: 12.58 kB / 0.6882 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.1778, allocations: 169.6 kB / 0.6884 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1778, allocations: 0.875 kB / 0.6884 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.852e-05/0.1779, allocations: 19.98 kB / 0.6884 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1779, allocations: 8.469 kB / 0.6884 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.1779, allocations: 0 / 0.6884 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1779, allocations: 5.125 kB / 0.6884 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1779, allocations: 3.984 kB / 0.6884 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.1781, allocations: 122 kB / 0.6885 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.154e-05/0.1781, allocations: 92.89 kB / 0.6886 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.1781, allocations: 4 kB / 0.6886 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.466e-05/0.1781, allocations: 0 / 0.6886 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.1782, allocations: 7.984 kB / 0.6886 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-06/0.1782, allocations: 8 kB / 0.6887 GB, free: 11.08 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.836e-05/0.1782, allocations: 75.28 kB / 0.6887 GB, free: 11 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1782, allocations: 3.938 kB / 0.6887 GB, free: 11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000191/0.1784, allocations: 12 kB / 0.6887 GB, free: 10.99 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0001451/0.1786, allocations: 115.2 kB / 0.6889 GB, free: 10.87 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.1787, allocations: 60.45 kB / 0.6889 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1787, allocations: 0 / 0.6889 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.378e-05/0.1788, allocations: 40.12 kB / 0.6889 GB, free: 10.77 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.1789, allocations: 8.906 kB / 0.689 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002305/0.1791, allocations: 154.6 kB / 0.6891 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.1794, allocations: 0.6848 MB / 0.6898 GB, free: 9.875 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.114e-05/0.1794, allocations: 39.88 kB / 0.6898 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.224e-05/0.1795, allocations: 15.42 kB / 0.6898 GB, free: 9.82 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1795, allocations: 0 / 0.6898 GB, free: 9.82 MB / 494.1 MB Notification: Performance of Templates: time 0.002295/0.1818, allocations: 0.5905 MB / 0.6904 GB, free: 9.23 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)