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.001039/0.001039, allocations: 84.38 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.0009602/0.0009603, 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.315/1.315, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001786, allocations: 278.9 kB / 291.4 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9176/0.9176, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004332, allocations: 16.12 kB / 0.598 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1752, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0007795/0.1761, allocations: 303.3 kB / 0.6848 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002458/0.1763, allocations: 48.34 kB / 0.6848 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.639e-05/0.1763, allocations: 0.5 kB / 0.6848 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.387e-05/0.1764, allocations: 0 / 0.6848 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.905e-06/0.1764, allocations: 1.781 kB / 0.6848 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.1766, allocations: 23.91 kB / 0.6849 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.983e-05/0.1767, allocations: 27.97 kB / 0.6849 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.281e-05/0.1768, allocations: 0 / 0.6849 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.948e-05/0.1768, allocations: 8.75 kB / 0.6849 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.547e-05/0.1768, allocations: 15.97 kB / 0.6849 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.1769, allocations: 9.125 kB / 0.6849 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.73e-05/0.1769, allocations: 11.98 kB / 0.6849 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.177, allocations: 8 kB / 0.6849 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.931e-05/0.177, allocations: 25.7 kB / 0.685 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.266e-05/0.1771, allocations: 29.55 kB / 0.685 GB, free: 14.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1771, allocations: 4 kB / 0.685 GB, free: 14.95 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1771, allocations: 0 / 0.685 GB, free: 14.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.1771, allocations: 0 / 0.685 GB, free: 14.95 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.0002829/0.1774, allocations: 324.8 kB / 0.6853 GB, free: 14.58 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.1774, allocations: 8.031 kB / 0.6853 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.1775, allocations: 12.86 kB / 0.6853 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.429e-05/0.1776, allocations: 171 kB / 0.6855 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1776, allocations: 0 / 0.6855 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.1776, allocations: 5.531 kB / 0.6855 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.1777, allocations: 65.66 kB / 0.6856 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1778, allocations: 0 / 0.6856 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.1778, allocations: 8.75 kB / 0.6856 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1778, allocations: 0 / 0.6856 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.1779, allocations: 108.3 kB / 0.6857 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.1781, allocations: 176.3 kB / 0.6858 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.1782, allocations: 66.48 kB / 0.6859 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.102e-05/0.1783, allocations: 32.84 kB / 0.6859 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003401/0.1786, allocations: 409.8 kB / 0.6863 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.1787, allocations: 36.31 kB / 0.6864 GB, free: 13.31 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.1787, allocations: 0 / 0.6864 GB, free: 13.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002447/0.1789, allocations: 109.6 kB / 0.6865 GB, free: 13.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.179, allocations: 55.41 kB / 0.6865 GB, free: 13.13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.55e-05/0.179, allocations: 103.5 kB / 0.6866 GB, free: 13.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.179, allocations: 25.7 kB / 0.6866 GB, free: 12.99 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.541e-05/0.1791, allocations: 80.33 kB / 0.6867 GB, free: 12.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.187e-05/0.1791, allocations: 19.75 kB / 0.6867 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.1791, allocations: 4.875 kB / 0.6867 GB, free: 12.88 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1792, allocations: 318.8 kB / 0.687 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.556e-05/0.1793, allocations: 16.7 kB / 0.6871 GB, free: 12.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.463e-05/0.1793, allocations: 35.84 kB / 0.6871 GB, free: 12.51 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.505e-05/0.1794, allocations: 20.62 kB / 0.6871 GB, free: 12.49 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1794, allocations: 1.406 kB / 0.6871 GB, free: 12.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000138/0.1795, allocations: 93.56 kB / 0.6872 GB, free: 12.39 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1796, allocations: 4 kB / 0.6872 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1796, allocations: 0 / 0.6872 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.1796, allocations: 4.656 kB / 0.6872 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.1797, allocations: 23.92 kB / 0.6872 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1797, allocations: 4 kB / 0.6872 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.042e-05/0.1798, allocations: 11.88 kB / 0.6872 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1798, allocations: 4 kB / 0.6872 GB, free: 12.34 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 (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 initialization (11): * Single equations (assignments): 11 * 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 0.0001286/0.1799, allocations: 127.6 kB / 0.6874 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.879e-06/0.1799, allocations: 3.906 kB / 0.6874 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002123/0.1801, allocations: 126.4 kB / 0.6875 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1802, allocations: 4 kB / 0.6875 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1802, allocations: 0 / 0.6875 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1802, allocations: 0 / 0.6875 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.1803, allocations: 177.6 kB / 0.6877 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1803, allocations: 0 / 0.6877 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.385e-05/0.1804, allocations: 19.98 kB / 0.6877 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1804, allocations: 0 / 0.6877 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.1804, allocations: 8 kB / 0.6877 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1804, allocations: 0 / 0.6877 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1804, allocations: 4 kB / 0.6877 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.1806, allocations: 129.4 kB / 0.6878 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.1806, allocations: 88.91 kB / 0.6879 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.1806, allocations: 4 kB / 0.6879 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.634e-05/0.1806, allocations: 4 kB / 0.6879 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.059e-05/0.1807, allocations: 7.984 kB / 0.6879 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.1807, allocations: 4 kB / 0.6879 GB, free: 11.55 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.574e-05/0.1807, allocations: 75.28 kB / 0.688 GB, free: 11.47 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1807, allocations: 4 kB / 0.688 GB, free: 11.47 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001902/0.1809, allocations: 16 kB / 0.688 GB, free: 11.45 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 (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.0001497/0.1811, allocations: 112.9 kB / 0.6881 GB, free: 11.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000127/0.1812, allocations: 63.84 kB / 0.6882 GB, free: 11.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1812, allocations: 4 kB / 0.6882 GB, free: 11.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.431e-05/0.1813, allocations: 27.98 kB / 0.6882 GB, free: 11.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.1814, allocations: 8.75 kB / 0.6882 GB, free: 11.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000242/0.1816, allocations: 150.7 kB / 0.6884 GB, free: 11.06 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.1818, allocations: 0.6809 MB / 0.689 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.367e-05/0.1819, allocations: 39.88 kB / 0.6891 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.253e-05/0.182, allocations: 15.44 kB / 0.6891 GB, free: 10.3 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.182, allocations: 4 kB / 0.6891 GB, free: 10.3 MB / 494.1 MB Notification: Performance of Templates: time 0.002357/0.1843, allocations: 0.567 MB / 0.6896 GB, free: 9.73 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)