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.004322/0.004322, allocations: 101.4 kB / 15.73 MB, free: 5.953 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.00103/0.00103, allocations: 192.2 kB / 16.67 MB, free: 5.883 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002047/0.002047, allocations: 283 kB / 290.8 MB, free: 1.758 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9429/0.9429, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002916/0.002916, allocations: 102.5 kB / 0.6815 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1781, allocations: 86.97 MB / 0.7664 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001596/0.1797, allocations: 0.5804 MB / 0.767 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002592/0.18, allocations: 59.78 kB / 0.767 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.86e-05/0.18, allocations: 0 / 0.767 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.839e-05/0.1801, allocations: 3.938 kB / 0.7671 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.1801, allocations: 0 / 0.7671 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.1804, allocations: 15.98 kB / 0.7671 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.732e-05/0.1804, allocations: 35.97 kB / 0.7671 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.159e-05/0.1805, allocations: 0 / 0.7671 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.434e-05/0.1805, allocations: 19.92 kB / 0.7671 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.556e-05/0.1806, allocations: 7.984 kB / 0.7671 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.1806, allocations: 4 kB / 0.7671 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.733e-05/0.1807, allocations: 15.98 kB / 0.7671 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.871e-05/0.1807, allocations: 11.98 kB / 0.7672 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.581e-05/0.1807, allocations: 15.92 kB / 0.7672 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.1808, allocations: 35.83 kB / 0.7672 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1809, allocations: 3.938 kB / 0.7672 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1809, allocations: 0 / 0.7672 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.1809, allocations: 8 kB / 0.7672 GB, free: 7.566 MB / 0.5606 GB 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.0003215/0.1812, allocations: 347.3 kB / 0.7676 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.1812, allocations: 8.031 kB / 0.7676 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.476e-05/0.1813, allocations: 4.938 kB / 0.7676 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.475e-05/0.1814, allocations: 160.4 kB / 0.7677 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.1814, allocations: 4.375 kB / 0.7677 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.1814, allocations: 4.375 kB / 0.7677 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.1815, allocations: 66.2 kB / 0.7678 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.1815, allocations: 4.188 kB / 0.7678 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.1816, allocations: 7.938 kB / 0.7678 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1816, allocations: 0 / 0.7678 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.1817, allocations: 107.8 kB / 0.7679 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.1819, allocations: 165.7 kB / 0.7681 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.182, allocations: 70.55 kB / 0.7681 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.6e-05/0.1821, allocations: 33.17 kB / 0.7682 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003022/0.1824, allocations: 405.5 kB / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.1824, allocations: 38.5 kB / 0.7686 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.1824, allocations: 0 / 0.7686 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0002377/0.1826, allocations: 117.4 kB / 0.7687 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.1827, allocations: 51.41 kB / 0.7687 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.788e-05/0.1827, allocations: 97.86 kB / 0.7688 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.1828, allocations: 25.7 kB / 0.7689 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.356e-05/0.1828, allocations: 84.12 kB / 0.7689 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.1828, allocations: 27.64 kB / 0.769 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.1829, allocations: 37.7 kB / 0.769 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.183, allocations: 310.8 kB / 0.7693 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.837e-05/0.183, allocations: 23.92 kB / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.366e-05/0.1831, allocations: 19.98 kB / 0.7693 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.209e-05/0.1832, allocations: 65.42 kB / 0.7694 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1832, allocations: 0 / 0.7694 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001392/0.1833, allocations: 97.55 kB / 0.7695 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.1833, allocations: 4 kB / 0.7695 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1833, allocations: 3.938 kB / 0.7695 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1834, allocations: 4 kB / 0.7695 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.547e-05/0.1835, allocations: 19.98 kB / 0.7695 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1835, allocations: 0 / 0.7695 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.439e-05/0.1835, allocations: 11.84 kB / 0.7695 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.1835, allocations: 3.938 kB / 0.7695 GB, free: 4.867 MB / 0.5606 GB 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.0001159/0.1836, allocations: 126.4 kB / 0.7697 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.309e-05/0.1836, allocations: 4 kB / 0.7697 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002028/0.1839, allocations: 129.4 kB / 0.7698 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1839, allocations: 4 kB / 0.7698 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1839, allocations: 0 / 0.7698 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1839, allocations: 0 / 0.7698 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.184, allocations: 165.7 kB / 0.77 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.184, allocations: 4 kB / 0.77 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.471e-05/0.1841, allocations: 27.92 kB / 0.77 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.1841, allocations: 7.875 kB / 0.77 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.1841, allocations: 4 kB / 0.77 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1841, allocations: 0 / 0.77 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1841, allocations: 0 / 0.77 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001462/0.1843, allocations: 121 kB / 0.7701 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.1843, allocations: 88.98 kB / 0.7702 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.1843, allocations: 4 kB / 0.7702 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.557e-05/0.1844, allocations: 0 / 0.7702 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/0.1844, allocations: 7.984 kB / 0.7702 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.1844, allocations: 4 kB / 0.7702 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.968e-05/0.1844, allocations: 75.28 kB / 0.7703 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1844, allocations: 4 kB / 0.7703 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001984/0.1846, allocations: 16 kB / 0.7703 GB, free: 3.988 MB / 0.5606 GB 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.0001512/0.1848, allocations: 115.2 kB / 0.7704 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001374/0.1849, allocations: 59.91 kB / 0.7705 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1849, allocations: 0 / 0.7705 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.073e-05/0.185, allocations: 43.91 kB / 0.7705 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.1851, allocations: 1.719 kB / 0.7705 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002485/0.1854, allocations: 149 kB / 0.7707 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.1856, allocations: 0.6819 MB / 0.7713 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.013e-05/0.1857, allocations: 35.94 kB / 0.7714 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.306e-05/0.1857, allocations: 11.44 kB / 0.7714 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.1857, allocations: 0 / 0.7714 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of Templates: time 0.00256/0.1883, allocations: 0.6243 MB / 0.772 GB, free: 2.219 MB / 0.5606 GB 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)