Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.Factorial.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001307/0.001307, allocations: 195.3 kB / 16.14 MB, free: 6.688 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7598/0.7598, allocations: 132.2 MB / 422.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 56.28 kB / 0.5011 GB, free: 9.172 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.164, allocations: 80.21 MB / 0.5794 GB, free: 9.184 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003696/0.1678, allocations: 1.572 MB / 0.581 GB, free: 7.598 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004961/0.1683, allocations: 124.5 kB / 0.5811 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.641e-05/0.1684, allocations: 3.938 kB / 0.5811 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.029e-05/0.1684, allocations: 3.938 kB / 0.5811 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.07e-05/0.1685, allocations: 3.984 kB / 0.5811 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.1687, allocations: 15.98 kB / 0.5811 GB, free: 7.445 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.605e-05/0.1688, allocations: 35.86 kB / 0.5811 GB, free: 7.41 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.525e-05/0.1689, allocations: 4 kB / 0.5811 GB, free: 7.406 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.654e-05/0.169, allocations: 11.98 kB / 0.5812 GB, free: 7.395 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.89e-05/0.169, allocations: 23.91 kB / 0.5812 GB, free: 7.371 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.1691, allocations: 0 / 0.5812 GB, free: 7.371 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.203e-05/0.1691, allocations: 4 kB / 0.5812 GB, free: 7.367 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.664e-05/0.1692, allocations: 15.92 kB / 0.5812 GB, free: 7.352 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.1692, allocations: 7.938 kB / 0.5812 GB, free: 7.344 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.1693, allocations: 39.94 kB / 0.5812 GB, free: 7.305 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1693, allocations: 4 kB / 0.5812 GB, free: 7.301 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1693, allocations: 0 / 0.5812 GB, free: 7.301 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1694, allocations: 0 / 0.5812 GB, free: 7.301 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005006/0.1699, allocations: 347.7 kB / 0.5816 GB, free: 6.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1699, allocations: 8.031 kB / 0.5816 GB, free: 6.902 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.17, allocations: 0.9375 kB / 0.5816 GB, free: 6.902 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.1701, allocations: 172.2 kB / 0.5818 GB, free: 6.695 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.1701, allocations: 384 / 0.5818 GB, free: 6.695 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.1701, allocations: 8.375 kB / 0.5818 GB, free: 6.688 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002042/0.1704, allocations: 62.2 kB / 0.5818 GB, free: 6.621 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1704, allocations: 192 / 0.5818 GB, free: 6.621 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1704, allocations: 3.938 kB / 0.5818 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1704, allocations: 4 kB / 0.5818 GB, free: 6.613 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.1706, allocations: 39.95 kB / 0.5819 GB, free: 6.574 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004515/0.1711, allocations: 268.9 kB / 0.5821 GB, free: 6.262 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.1714, allocations: 54.48 kB / 0.5822 GB, free: 6.199 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.1715, allocations: 28.89 kB / 0.5822 GB, free: 6.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.1717, allocations: 81.11 kB / 0.5823 GB, free: 6.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.1717, allocations: 34.56 kB / 0.5823 GB, free: 6.027 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.773e-06/0.1717, allocations: 0 / 0.5823 GB, free: 6.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004269/0.1722, allocations: 93.56 kB / 0.5824 GB, free: 5.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.1723, allocations: 55.41 kB / 0.5825 GB, free: 5.863 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.093e-05/0.1723, allocations: 101.8 kB / 0.5826 GB, free: 5.754 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.1724, allocations: 25.7 kB / 0.5826 GB, free: 5.723 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.92e-05/0.1724, allocations: 88.05 kB / 0.5827 GB, free: 5.633 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.1725, allocations: 15.84 kB / 0.5827 GB, free: 5.617 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.1725, allocations: 13.72 kB / 0.5827 GB, free: 5.598 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1726, allocations: 318.8 kB / 0.583 GB, free: 5.277 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.628e-05/0.1727, allocations: 15.98 kB / 0.583 GB, free: 5.262 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.542e-05/0.1728, allocations: 19.97 kB / 0.583 GB, free: 5.242 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.173, allocations: 48.83 kB / 0.5831 GB, free: 5.191 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.173, allocations: 3.938 kB / 0.5831 GB, free: 5.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002285/0.1732, allocations: 77.58 kB / 0.5832 GB, free: 5.105 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1733, allocations: 11.94 kB / 0.5832 GB, free: 5.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1733, allocations: 0 / 0.5832 GB, free: 5.094 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1733, allocations: 3.938 kB / 0.5832 GB, free: 5.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.811e-05/0.1734, allocations: 11.98 kB / 0.5832 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.1734, allocations: 4 kB / 0.5832 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.858e-05/0.1735, allocations: 8 kB / 0.5832 GB, free: 5.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.1735, allocations: 0 / 0.5832 GB, free: 5.066 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: 2 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.227e-05/0.1736, allocations: 121.8 kB / 0.5833 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.1736, allocations: 0.5156 kB / 0.5833 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002778/0.1739, allocations: 81.08 kB / 0.5834 GB, free: 4.848 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1739, allocations: 4.031 kB / 0.5834 GB, free: 4.844 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1739, allocations: 4 kB / 0.5834 GB, free: 4.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1739, allocations: 4 kB / 0.5834 GB, free: 4.836 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.1741, allocations: 165.6 kB / 0.5836 GB, free: 4.625 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1741, allocations: 0 / 0.5836 GB, free: 4.625 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.034e-05/0.1742, allocations: 11.98 kB / 0.5836 GB, free: 4.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1742, allocations: 0 / 0.5836 GB, free: 4.613 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.1742, allocations: 8 kB / 0.5836 GB, free: 4.605 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1742, allocations: 0 / 0.5836 GB, free: 4.605 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1743, allocations: 0 / 0.5836 GB, free: 4.605 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002772/0.1745, allocations: 175.4 kB / 0.5837 GB, free: 4.418 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.764e-05/0.1746, allocations: 85.03 kB / 0.5838 GB, free: 4.316 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.1746, allocations: 0 / 0.5838 GB, free: 4.316 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.473e-05/0.1747, allocations: 4 kB / 0.5838 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-05/0.1748, allocations: 7.984 kB / 0.5838 GB, free: 4.305 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.1748, allocations: 4 kB / 0.5838 GB, free: 4.301 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.1748, allocations: 83.27 kB / 0.5839 GB, free: 4.219 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1748, allocations: 4 kB / 0.5839 GB, free: 4.215 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.1751, allocations: 8 kB / 0.5839 GB, free: 4.207 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: 2 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000168/0.1752, allocations: 95.25 kB / 0.584 GB, free: 4.105 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.1755, allocations: 43.95 kB / 0.5841 GB, free: 4.062 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1755, allocations: 4 kB / 0.5841 GB, free: 4.059 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.1756, allocations: 27.91 kB / 0.5841 GB, free: 4.031 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.1759, allocations: 11.94 kB / 0.5841 GB, free: 4.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003488/0.1763, allocations: 119.2 kB / 0.5842 GB, free: 3.879 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1766, allocations: 0.677 MB / 0.5849 GB, free: 3.176 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.355e-05/0.1766, allocations: 0 / 0.5849 GB, free: 3.176 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.811e-05/0.1767, allocations: 15.44 kB / 0.5849 GB, free: 3.16 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1767, allocations: 0 / 0.5849 GB, free: 3.16 MB / 494.1 MB Notification: Performance of Templates: time 0.002784/0.1794, allocations: 0.6179 MB / 0.5855 GB, free: 2.543 MB / 494.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)