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.001171/0.001171, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 198.3 kB / 16.53 MB, free: 6.391 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002144/0.002144, allocations: 279.1 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9575/0.9575, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 98.8 kB / 0.5952 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.169, allocations: 86.99 MB / 0.6802 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001878/0.1709, allocations: 0.5743 MB / 0.6808 GB, free: 76 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002732/0.1712, allocations: 55.78 kB / 0.6808 GB, free: 20 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.843e-05/0.1713, allocations: 0.5312 kB / 0.6808 GB, free: 20 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.718e-05/0.1713, allocations: 0.7188 kB / 0.6808 GB, free: 20 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.1713, allocations: 0 / 0.6808 GB, free: 20 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.1716, allocations: 26 kB / 0.6808 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.722e-05/0.1717, allocations: 35.88 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.809e-05/0.1718, allocations: 3.984 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.023e-05/0.1718, allocations: 7.984 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.95e-05/0.1719, allocations: 15.98 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.1719, allocations: 4 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.638e-05/0.172, allocations: 12 kB / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.305e-05/0.172, allocations: 19.97 kB / 0.6809 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.788e-05/0.1721, allocations: 11.88 kB / 0.6809 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.1722, allocations: 27.95 kB / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1722, allocations: 3.938 kB / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1722, allocations: 0 / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1722, allocations: 0 / 0.681 GB, free: 15.86 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.0004216/0.1726, allocations: 343.6 kB / 0.6813 GB, free: 15.47 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1727, allocations: 12.03 kB / 0.6813 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.1727, allocations: 8.844 kB / 0.6813 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.1728, allocations: 160.4 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.1728, allocations: 4.375 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.1729, allocations: 8.375 kB / 0.6815 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.173, allocations: 66.16 kB / 0.6815 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.173, allocations: 192 / 0.6815 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.1731, allocations: 3.938 kB / 0.6815 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1731, allocations: 4 kB / 0.6816 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.1732, allocations: 99.81 kB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000256/0.1735, allocations: 177.7 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.1736, allocations: 78.53 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.826e-05/0.1737, allocations: 36.78 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004356/0.1741, allocations: 405.5 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.1742, allocations: 30.56 kB / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.1742, allocations: 0 / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002774/0.1745, allocations: 113.6 kB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.1745, allocations: 59.41 kB / 0.6825 GB, free: 14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.675e-05/0.1746, allocations: 97.75 kB / 0.6826 GB, free: 13.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.1746, allocations: 29.92 kB / 0.6826 GB, free: 13.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.062e-05/0.1746, allocations: 80.14 kB / 0.6827 GB, free: 13.78 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.492e-05/0.1747, allocations: 23.69 kB / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.1747, allocations: 33.7 kB / 0.6828 GB, free: 13.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1749, allocations: 310.8 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.154e-05/0.1749, allocations: 23.92 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.616e-05/0.175, allocations: 27.98 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.1751, allocations: 56.83 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1751, allocations: 4 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001514/0.1753, allocations: 89.52 kB / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1753, allocations: 8 kB / 0.6833 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1753, allocations: 3.938 kB / 0.6833 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1753, allocations: 0 / 0.6833 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1754, allocations: 23.92 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1754, allocations: 0 / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.362e-05/0.1755, allocations: 7.938 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.1755, allocations: 8 kB / 0.6833 GB, free: 13.15 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.0002069/0.1757, allocations: 123.1 kB / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.1757, allocations: 3.906 kB / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002117/0.1759, allocations: 126.2 kB / 0.6835 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.176, allocations: 0 / 0.6835 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.176, allocations: 0 / 0.6835 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.176, allocations: 11.92 kB / 0.6836 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.1762, allocations: 177.6 kB / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1762, allocations: 0 / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.25e-05/0.1763, allocations: 15.98 kB / 0.6837 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1763, allocations: 7.938 kB / 0.6837 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.1763, allocations: 4 kB / 0.6837 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1763, allocations: 0 / 0.6837 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1763, allocations: 0 / 0.6837 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.1764, allocations: 129.1 kB / 0.6839 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/0.1765, allocations: 88.89 kB / 0.684 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.1765, allocations: 0 / 0.684 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.73e-05/0.1765, allocations: 11.94 kB / 0.684 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.981e-05/0.1766, allocations: 7.984 kB / 0.684 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.1766, allocations: 0 / 0.684 GB, free: 12.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.431e-05/0.1766, allocations: 75.28 kB / 0.684 GB, free: 12.28 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1766, allocations: 3.938 kB / 0.6841 GB, free: 12.28 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001894/0.1768, allocations: 16 kB / 0.6841 GB, free: 12.26 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.0001892/0.177, allocations: 119.2 kB / 0.6842 GB, free: 12.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.1772, allocations: 71.89 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.1772, allocations: 0 / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.998e-05/0.1772, allocations: 35.92 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.1774, allocations: 8.75 kB / 0.6843 GB, free: 12.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/0.1776, allocations: 149 kB / 0.6844 GB, free: 11.85 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.1779, allocations: 0.6823 MB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.03e-05/0.178, allocations: 35.94 kB / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.234e-05/0.178, allocations: 19.42 kB / 0.6852 GB, free: 11.09 MB / 494.1 MB Notification: Performance of SimCode: time 1.422e-06/0.178, allocations: 0 / 0.6852 GB, free: 11.09 MB / 494.1 MB Notification: Performance of Templates: time 0.002736/0.1807, allocations: 0.6182 MB / 0.6858 GB, free: 10.47 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)