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.001298/0.001298, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001343/0.001343, allocations: 188.8 kB / 16.25 MB, free: 6.621 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.41/1.41, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002477/0.002477, allocations: 294.5 kB / 290.4 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.065/1.065, allocations: 178.6 MB / 0.507 GB, free: 4.703 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002708, allocations: 94.77 kB / 0.6059 GB, free: 25.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1669, allocations: 89.15 MB / 0.693 GB, free: 4.652 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00172/0.1687, allocations: 0.6474 MB / 0.6936 GB, free: 4.008 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002478/0.169, allocations: 59.73 kB / 0.6937 GB, free: 3.949 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.586e-05/0.169, allocations: 0 / 0.6937 GB, free: 3.949 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.759e-05/0.169, allocations: 0 / 0.6937 GB, free: 3.949 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.638e-06/0.169, allocations: 0 / 0.6937 GB, free: 3.949 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.1693, allocations: 17.72 kB / 0.6937 GB, free: 3.934 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.291e-05/0.1694, allocations: 35.91 kB / 0.6937 GB, free: 3.898 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.868e-05/0.1694, allocations: 4 kB / 0.6937 GB, free: 3.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.078e-05/0.1695, allocations: 11.98 kB / 0.6937 GB, free: 3.883 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.943e-05/0.1695, allocations: 15.98 kB / 0.6938 GB, free: 3.867 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.1695, allocations: 0.5938 kB / 0.6938 GB, free: 3.867 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.894e-05/0.1696, allocations: 17.7 kB / 0.6938 GB, free: 3.852 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.509e-05/0.1696, allocations: 7.984 kB / 0.6938 GB, free: 3.844 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.1697, allocations: 19.88 kB / 0.6938 GB, free: 3.824 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.676e-05/0.1698, allocations: 31.89 kB / 0.6938 GB, free: 3.793 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1698, allocations: 0 / 0.6938 GB, free: 3.793 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1698, allocations: 4 kB / 0.6938 GB, free: 3.789 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1698, allocations: 0 / 0.6938 GB, free: 3.789 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.0003583/0.1701, allocations: 342.1 kB / 0.6942 GB, free: 3.406 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1702, allocations: 8.031 kB / 0.6942 GB, free: 3.398 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.1702, allocations: 8.844 kB / 0.6942 GB, free: 3.391 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.1703, allocations: 172.3 kB / 0.6943 GB, free: 3.184 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.1704, allocations: 4.375 kB / 0.6943 GB, free: 3.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-06/0.1704, allocations: 384 / 0.6943 GB, free: 3.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.1705, allocations: 66.22 kB / 0.6944 GB, free: 3.109 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.1705, allocations: 4.188 kB / 0.6944 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.1706, allocations: 7.938 kB / 0.6944 GB, free: 3.098 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.1706, allocations: 0 / 0.6944 GB, free: 3.098 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.1707, allocations: 99.88 kB / 0.6945 GB, free: 3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001823/0.1709, allocations: 173.6 kB / 0.6947 GB, free: 2.781 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.171, allocations: 70.59 kB / 0.6947 GB, free: 2.703 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.89e-05/0.1711, allocations: 34.86 kB / 0.6948 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003681/0.1715, allocations: 409.5 kB / 0.6952 GB, free: 2.176 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.1715, allocations: 34.56 kB / 0.6952 GB, free: 2.133 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.062e-06/0.1715, allocations: 0 / 0.6952 GB, free: 2.133 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002536/0.1718, allocations: 121.4 kB / 0.6953 GB, free: 2.008 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.1718, allocations: 51.62 kB / 0.6954 GB, free: 1.945 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.425e-05/0.1719, allocations: 101.8 kB / 0.6955 GB, free: 1.836 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.1719, allocations: 29.64 kB / 0.6955 GB, free: 1.801 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.368e-05/0.1719, allocations: 80.14 kB / 0.6956 GB, free: 1.719 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.053e-05/0.172, allocations: 27.59 kB / 0.6956 GB, free: 1.691 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.621e-05/0.172, allocations: 37.7 kB / 0.6956 GB, free: 1.648 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1722, allocations: 314.8 kB / 0.6959 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.027e-05/0.1722, allocations: 19.98 kB / 0.696 GB, free: 1.312 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.548e-05/0.1723, allocations: 19.98 kB / 0.696 GB, free: 1.293 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.1724, allocations: 56.83 kB / 0.696 GB, free: 1.234 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1724, allocations: 4 kB / 0.696 GB, free: 1.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001528/0.1725, allocations: 97.55 kB / 0.6961 GB, free: 1.129 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.1726, allocations: 4 kB / 0.6961 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1726, allocations: 3.938 kB / 0.6961 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1726, allocations: 8 kB / 0.6961 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.54e-05/0.1727, allocations: 15.98 kB / 0.6962 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.1727, allocations: 4 kB / 0.6962 GB, free: 1.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.942e-05/0.1727, allocations: 3.906 kB / 0.6962 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.1727, allocations: 4 kB / 0.6962 GB, free: 1.086 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.0001321/0.1729, allocations: 122.3 kB / 0.6963 GB, free: 0.957 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.1729, allocations: 3.938 kB / 0.6963 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002239/0.1731, allocations: 129.5 kB / 0.6964 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1731, allocations: 7.938 kB / 0.6964 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1731, allocations: 0 / 0.6964 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1731, allocations: 3.984 kB / 0.6964 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.1733, allocations: 177.5 kB / 0.6966 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1733, allocations: 0 / 0.6966 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.054e-05/0.1734, allocations: 19.98 kB / 0.6966 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1734, allocations: 3.938 kB / 0.6966 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.1734, allocations: 4 kB / 0.6966 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1734, allocations: 7.938 kB / 0.6966 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1734, allocations: 0 / 0.6966 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.1736, allocations: 114 kB / 0.6967 GB, free: 432 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.1737, allocations: 92.89 kB / 0.6968 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.1737, allocations: 4 kB / 0.6968 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.487e-05/0.1737, allocations: 0 / 0.6968 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.27e-05/0.1737, allocations: 7.984 kB / 0.6968 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.1738, allocations: 11.94 kB / 0.6968 GB, free: 296 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.49e-05/0.1738, allocations: 79.28 kB / 0.6969 GB, free: 216 kB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1738, allocations: 0 / 0.6969 GB, free: 216 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002034/0.174, allocations: 12 kB / 0.6969 GB, free: 204 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.0001696/0.1742, allocations: 120 kB / 0.697 GB, free: 80 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001683/0.1744, allocations: 76 kB / 0.6971 GB, free: 4 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1744, allocations: 0 / 0.6971 GB, free: 4 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.845e-05/0.1745, allocations: 39.92 kB / 0.6972 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.1746, allocations: 8.875 kB / 0.6972 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002705/0.1749, allocations: 153 kB / 0.6973 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.1752, allocations: 0.6807 MB / 0.698 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.986e-05/0.1753, allocations: 35.94 kB / 0.698 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.1753, allocations: 27.36 kB / 0.698 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1753, allocations: 0 / 0.698 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of Templates: time 0.002924/0.1783, allocations: 0.6021 MB / 0.6986 GB, free: 14.41 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)