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.001011/0.001011, allocations: 107.6 kB / 15.99 MB, free: 6.348 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.0009754/0.0009755, allocations: 189.6 kB / 16.91 MB, free: 6.188 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.221/1.221, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001914/0.001914, allocations: 296.5 kB / 291 MB, free: 14.7 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8624/0.8624, allocations: 169.2 MB / 0.4985 GB, free: 4.711 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 95.06 kB / 0.5953 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1553, allocations: 86.97 MB / 0.6803 GB, free: 8.543 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001619/0.1569, allocations: 0.6438 MB / 0.6809 GB, free: 7.895 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000225/0.1572, allocations: 47.86 kB / 0.681 GB, free: 7.848 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.412e-05/0.1572, allocations: 0 / 0.681 GB, free: 7.848 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.918e-05/0.1572, allocations: 4 kB / 0.681 GB, free: 7.844 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.268e-06/0.1572, allocations: 0 / 0.681 GB, free: 7.844 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.1575, allocations: 23.97 kB / 0.681 GB, free: 7.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.305e-05/0.1576, allocations: 31.92 kB / 0.681 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.241e-05/0.1576, allocations: 3.984 kB / 0.681 GB, free: 7.785 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.849e-05/0.1577, allocations: 11.98 kB / 0.681 GB, free: 7.773 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.651e-05/0.1577, allocations: 11.98 kB / 0.681 GB, free: 7.762 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.1577, allocations: 0 / 0.681 GB, free: 7.762 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.504e-05/0.1578, allocations: 19.94 kB / 0.6811 GB, free: 7.742 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.1578, allocations: 19.97 kB / 0.6811 GB, free: 7.723 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.469e-05/0.1579, allocations: 15.88 kB / 0.6811 GB, free: 7.707 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.283e-05/0.1579, allocations: 23.95 kB / 0.6811 GB, free: 7.684 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1579, allocations: 0 / 0.6811 GB, free: 7.684 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.158, allocations: 0 / 0.6811 GB, free: 7.684 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.158, allocations: 0 / 0.6811 GB, free: 7.684 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.0003372/0.1583, allocations: 335.8 kB / 0.6814 GB, free: 7.305 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1583, allocations: 12.03 kB / 0.6814 GB, free: 7.293 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.1584, allocations: 0.9375 kB / 0.6814 GB, free: 7.293 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.518e-05/0.1585, allocations: 172.4 kB / 0.6816 GB, free: 7.086 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1585, allocations: 384 / 0.6816 GB, free: 7.086 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.1585, allocations: 8.375 kB / 0.6816 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.1586, allocations: 58.23 kB / 0.6817 GB, free: 7.016 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.1587, allocations: 192 / 0.6817 GB, free: 7.016 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.1587, allocations: 11.88 kB / 0.6817 GB, free: 7.004 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.1587, allocations: 4 kB / 0.6817 GB, free: 7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.1588, allocations: 103.8 kB / 0.6818 GB, free: 6.898 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001745/0.159, allocations: 181.5 kB / 0.682 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.1591, allocations: 66.53 kB / 0.682 GB, free: 6.598 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.655e-05/0.1592, allocations: 36.84 kB / 0.6821 GB, free: 6.559 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003632/0.1595, allocations: 401.5 kB / 0.6824 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.1596, allocations: 34.56 kB / 0.6825 GB, free: 6.031 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.1596, allocations: 3.938 kB / 0.6825 GB, free: 6.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002505/0.1598, allocations: 113.9 kB / 0.6826 GB, free: 5.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.1599, allocations: 55.34 kB / 0.6826 GB, free: 5.844 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.347e-05/0.1599, allocations: 97.77 kB / 0.6827 GB, free: 5.738 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.16, allocations: 25.7 kB / 0.6828 GB, free: 5.707 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.89e-05/0.16, allocations: 88.14 kB / 0.6828 GB, free: 5.617 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.411e-05/0.16, allocations: 23.73 kB / 0.6829 GB, free: 5.594 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.1601, allocations: 29.7 kB / 0.6829 GB, free: 5.559 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1602, allocations: 322.8 kB / 0.6832 GB, free: 5.234 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.811e-05/0.1603, allocations: 19.98 kB / 0.6832 GB, free: 5.215 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.179e-05/0.1603, allocations: 19.98 kB / 0.6832 GB, free: 5.195 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.995e-05/0.1604, allocations: 56.78 kB / 0.6833 GB, free: 5.137 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1604, allocations: 0 / 0.6833 GB, free: 5.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000127/0.1605, allocations: 97.5 kB / 0.6834 GB, free: 5.035 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1606, allocations: 13.88 kB / 0.6834 GB, free: 5.023 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1606, allocations: 3.938 kB / 0.6834 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1606, allocations: 4 kB / 0.6834 GB, free: 5.016 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.1607, allocations: 19.98 kB / 0.6834 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.1607, allocations: 0 / 0.6834 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.1607, allocations: 3.938 kB / 0.6834 GB, free: 4.992 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.1607, allocations: 4 kB / 0.6834 GB, free: 4.988 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.0001486/0.1609, allocations: 125.8 kB / 0.6836 GB, free: 4.855 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.427e-05/0.1609, allocations: 11.91 kB / 0.6836 GB, free: 4.844 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000205/0.1611, allocations: 126.2 kB / 0.6837 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1611, allocations: 0 / 0.6837 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1611, allocations: 0 / 0.6837 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1611, allocations: 0 / 0.6837 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.1613, allocations: 177.6 kB / 0.6839 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1613, allocations: 0 / 0.6839 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.568e-05/0.1614, allocations: 19.94 kB / 0.6839 GB, free: 4.469 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.1614, allocations: 15.91 kB / 0.6839 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.1614, allocations: 0 / 0.6839 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1614, allocations: 0 / 0.6839 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1614, allocations: 0 / 0.6839 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.1615, allocations: 125.1 kB / 0.684 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-05/0.1616, allocations: 84.98 kB / 0.6841 GB, free: 4.211 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.1616, allocations: 8 kB / 0.6841 GB, free: 4.203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.419e-05/0.1616, allocations: 3.938 kB / 0.6841 GB, free: 4.199 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.1617, allocations: 11.98 kB / 0.6841 GB, free: 4.188 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-06/0.1617, allocations: 8 kB / 0.6841 GB, free: 4.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.61e-05/0.1617, allocations: 75.28 kB / 0.6842 GB, free: 4.105 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1617, allocations: 3.938 kB / 0.6842 GB, free: 4.102 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001823/0.1619, allocations: 8 kB / 0.6842 GB, free: 4.094 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.00016/0.1621, allocations: 115.2 kB / 0.6843 GB, free: 3.973 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001336/0.1622, allocations: 67.91 kB / 0.6844 GB, free: 3.906 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1622, allocations: 4 kB / 0.6844 GB, free: 3.902 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.204e-05/0.1623, allocations: 31.98 kB / 0.6844 GB, free: 3.871 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.1624, allocations: 8.75 kB / 0.6844 GB, free: 3.863 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002529/0.1626, allocations: 186.5 kB / 0.6846 GB, free: 3.648 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.1629, allocations: 0.6846 MB / 0.6853 GB, free: 2.938 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.1629, allocations: 19.42 kB / 0.6853 GB, free: 2.922 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1629, allocations: 4 kB / 0.6853 GB, free: 2.918 MB / 494.1 MB Notification: Performance of Templates: time 0.002102/0.165, allocations: 0.9522 MB / 0.6862 GB, free: 1.969 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)