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.001377/0.001377, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001341/0.001342, allocations: 194.4 kB / 16.14 MB, free: 6.684 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.459/1.459, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002458/0.002458, allocations: 278.9 kB / 290.2 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.106/1.106, allocations: 178.6 MB / 0.5068 GB, free: 4.777 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004058/0.004058, allocations: 100 kB / 0.6057 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.176, allocations: 89.15 MB / 0.6928 GB, free: 4.828 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0018/0.1779, allocations: 0.6486 MB / 0.6934 GB, free: 4.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003026/0.1782, allocations: 51.8 kB / 0.6935 GB, free: 4.129 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.248e-05/0.1782, allocations: 4.469 kB / 0.6935 GB, free: 4.125 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.537e-05/0.1783, allocations: 0.6562 kB / 0.6935 GB, free: 4.125 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.129e-06/0.1783, allocations: 0 / 0.6935 GB, free: 4.125 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002432/0.1785, allocations: 28.81 kB / 0.6935 GB, free: 4.098 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.514e-05/0.1786, allocations: 23.97 kB / 0.6935 GB, free: 4.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.201e-05/0.1787, allocations: 7.406 kB / 0.6935 GB, free: 4.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.146e-05/0.1787, allocations: 11.98 kB / 0.6936 GB, free: 4.059 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.74e-05/0.1787, allocations: 11.98 kB / 0.6936 GB, free: 4.047 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.1788, allocations: 0 / 0.6936 GB, free: 4.047 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.485e-05/0.1788, allocations: 12 kB / 0.6936 GB, free: 4.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.407e-05/0.1789, allocations: 19.97 kB / 0.6936 GB, free: 4.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.641e-05/0.1789, allocations: 15.88 kB / 0.6936 GB, free: 4 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.697e-05/0.179, allocations: 27.89 kB / 0.6936 GB, free: 3.973 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.179, allocations: 4 kB / 0.6936 GB, free: 3.969 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.179, allocations: 4 kB / 0.6936 GB, free: 3.965 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1791, allocations: 0 / 0.6936 GB, free: 3.965 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.0003586/0.1794, allocations: 341.6 kB / 0.694 GB, free: 3.582 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1795, allocations: 8.031 kB / 0.694 GB, free: 3.574 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.1795, allocations: 8.844 kB / 0.694 GB, free: 3.566 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.1796, allocations: 164.3 kB / 0.6941 GB, free: 3.367 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1796, allocations: 8.375 kB / 0.6942 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.1796, allocations: 384 / 0.6942 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.1798, allocations: 70.16 kB / 0.6942 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1798, allocations: 4.188 kB / 0.6942 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.1798, allocations: 3.938 kB / 0.6942 GB, free: 3.277 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1798, allocations: 0 / 0.6942 GB, free: 3.277 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.18, allocations: 99.88 kB / 0.6943 GB, free: 3.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001853/0.1802, allocations: 177.5 kB / 0.6945 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.1803, allocations: 70.55 kB / 0.6946 GB, free: 2.879 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.332e-05/0.1804, allocations: 32.84 kB / 0.6946 GB, free: 2.844 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004505/0.1808, allocations: 405.5 kB / 0.695 GB, free: 2.355 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.1809, allocations: 42.5 kB / 0.695 GB, free: 2.305 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.1809, allocations: 0 / 0.695 GB, free: 2.305 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003196/0.1812, allocations: 121.7 kB / 0.6951 GB, free: 2.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.1813, allocations: 51.41 kB / 0.6952 GB, free: 2.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.365e-05/0.1814, allocations: 101.8 kB / 0.6953 GB, free: 2.008 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.1814, allocations: 25.7 kB / 0.6953 GB, free: 1.977 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.356e-05/0.1814, allocations: 80.14 kB / 0.6954 GB, free: 1.895 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.22e-05/0.1815, allocations: 23.66 kB / 0.6954 GB, free: 1.871 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-05/0.1816, allocations: 37.7 kB / 0.6954 GB, free: 1.828 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1817, allocations: 310.8 kB / 0.6957 GB, free: 1.516 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.446e-05/0.1818, allocations: 19.98 kB / 0.6958 GB, free: 1.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.446e-05/0.1818, allocations: 23.92 kB / 0.6958 GB, free: 1.473 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.1819, allocations: 60.83 kB / 0.6958 GB, free: 1.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1819, allocations: 0 / 0.6958 GB, free: 1.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001702/0.1821, allocations: 89.61 kB / 0.6959 GB, free: 1.316 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1821, allocations: 4 kB / 0.6959 GB, free: 1.312 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1822, allocations: 3.938 kB / 0.6959 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.1822, allocations: 8 kB / 0.6959 GB, free: 1.301 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.1823, allocations: 23.92 kB / 0.696 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.1823, allocations: 4 kB / 0.696 GB, free: 1.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.344e-05/0.1824, allocations: 7.891 kB / 0.696 GB, free: 1.266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.1824, allocations: 4 kB / 0.696 GB, free: 1.262 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.0001478/0.1825, allocations: 120.7 kB / 0.6961 GB, free: 1.137 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.1825, allocations: 4 kB / 0.6961 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002509/0.1828, allocations: 133.4 kB / 0.6962 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1828, allocations: 8 kB / 0.6962 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1828, allocations: 0 / 0.6962 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1828, allocations: 3.984 kB / 0.6962 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.183, allocations: 169.5 kB / 0.6964 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.183, allocations: 0 / 0.6964 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.1831, allocations: 19.98 kB / 0.6964 GB, free: 0.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1831, allocations: 3.938 kB / 0.6964 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.1831, allocations: 8 kB / 0.6964 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1831, allocations: 4 kB / 0.6964 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1831, allocations: 0 / 0.6964 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.1833, allocations: 117.9 kB / 0.6965 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.427e-05/0.1833, allocations: 92.89 kB / 0.6966 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.1834, allocations: 3.938 kB / 0.6966 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.201e-05/0.1834, allocations: 4 kB / 0.6966 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.1834, allocations: 11.92 kB / 0.6966 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.1834, allocations: 4 kB / 0.6967 GB, free: 480 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.801e-05/0.1835, allocations: 81.17 kB / 0.6967 GB, free: 400 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1835, allocations: 0 / 0.6967 GB, free: 400 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002007/0.1837, allocations: 16 kB / 0.6967 GB, free: 384 kB / 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.0001976/0.1839, allocations: 115.2 kB / 0.6969 GB, free: 260 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000156/0.1841, allocations: 63.95 kB / 0.6969 GB, free: 196 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1841, allocations: 0 / 0.6969 GB, free: 196 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.492e-05/0.1841, allocations: 35.97 kB / 0.6969 GB, free: 160 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.1843, allocations: 11.94 kB / 0.697 GB, free: 148 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003239/0.1846, allocations: 154.7 kB / 0.6971 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.185, allocations: 0.6809 MB / 0.6978 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.072e-05/0.1851, allocations: 31.95 kB / 0.6978 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.1851, allocations: 23.36 kB / 0.6978 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1851, allocations: 0 / 0.6978 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of Templates: time 0.003125/0.1883, allocations: 0.593 MB / 0.6984 GB, free: 14.62 MB / 0.4981 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)