Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008505/0.008505, allocations: 104.1 kB / 15.74 MB, free: 6.059 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.001623/0.001623, allocations: 196.2 kB / 16.68 MB, free: 5.969 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7978/0.7978, allocations: 135.1 MB / 425.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 68.86 kB / 0.5856 GB, free: 21.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1725, allocations: 80.94 MB / 0.6647 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001856/0.1744, allocations: 0.5721 MB / 0.6652 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000295/0.1747, allocations: 50.45 kB / 0.6653 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.894e-05/0.1748, allocations: 0 / 0.6653 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.296e-05/0.1748, allocations: 0 / 0.6653 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.1748, allocations: 0 / 0.6653 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002441/0.1751, allocations: 15.92 kB / 0.6653 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.535e-05/0.1751, allocations: 4 kB / 0.6653 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.807e-05/0.1752, allocations: 4 kB / 0.6653 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.033e-05/0.1752, allocations: 3.938 kB / 0.6653 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.817e-05/0.1752, allocations: 3.984 kB / 0.6653 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.1753, allocations: 7.938 kB / 0.6653 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.555e-05/0.1754, allocations: 11.98 kB / 0.6653 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.215e-05/0.1754, allocations: 0 / 0.6653 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.556e-05/0.1754, allocations: 0 / 0.6653 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.801e-05/0.1755, allocations: 11.98 kB / 0.6654 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1755, allocations: 0 / 0.6654 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.1755, allocations: 0 / 0.6654 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.1755, allocations: 0 / 0.6654 GB, free: 5.078 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003627/0.1759, allocations: 323.4 kB / 0.6657 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.176, allocations: 13.11 kB / 0.6657 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.47e-05/0.176, allocations: 4.922 kB / 0.6657 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.1761, allocations: 160.4 kB / 0.6658 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1762, allocations: 384 / 0.6658 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.1762, allocations: 384 / 0.6658 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.1763, allocations: 38.2 kB / 0.6659 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.1763, allocations: 192 / 0.6659 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.1763, allocations: 3.938 kB / 0.6659 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.1764, allocations: 4 kB / 0.6659 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.954e-05/0.1764, allocations: 7.984 kB / 0.6659 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.1766, allocations: 149.7 kB / 0.666 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.631e-05/0.1767, allocations: 18.61 kB / 0.666 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.635e-05/0.1767, allocations: 13.25 kB / 0.6661 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001933/0.1769, allocations: 85.03 kB / 0.6661 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.1769, allocations: 42.56 kB / 0.6662 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.1769, allocations: 0 / 0.6662 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001588/0.1771, allocations: 41.62 kB / 0.6662 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.1771, allocations: 51.41 kB / 0.6663 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.128e-05/0.1772, allocations: 93.86 kB / 0.6664 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.1772, allocations: 25.7 kB / 0.6664 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.747e-05/0.1773, allocations: 80.14 kB / 0.6665 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.1773, allocations: 4 kB / 0.6665 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.1773, allocations: 13.84 kB / 0.6665 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1775, allocations: 314.8 kB / 0.6668 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.925e-05/0.1775, allocations: 8 kB / 0.6668 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.146e-05/0.1775, allocations: 3.938 kB / 0.6668 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.447e-05/0.1776, allocations: 16.86 kB / 0.6668 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1776, allocations: 0 / 0.6668 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.194e-05/0.1776, allocations: 37.7 kB / 0.6668 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1777, allocations: 7.984 kB / 0.6668 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1777, allocations: 4.094 kB / 0.6668 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.1777, allocations: 3.938 kB / 0.6669 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.676e-05/0.1778, allocations: 4 kB / 0.6669 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.1778, allocations: 3.938 kB / 0.6669 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.011e-05/0.1778, allocations: 15.77 kB / 0.6669 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.1778, allocations: 4 kB / 0.6669 GB, free: 3.27 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.195e-05/0.1779, allocations: 109.8 kB / 0.667 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-06/0.1779, allocations: 0 / 0.667 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.1781, allocations: 52.75 kB / 0.667 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1781, allocations: 0 / 0.667 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1781, allocations: 0 / 0.667 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1781, allocations: 0 / 0.667 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.1782, allocations: 153.7 kB / 0.6672 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1782, allocations: 4 kB / 0.6672 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.559e-05/0.1782, allocations: 4 kB / 0.6672 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1782, allocations: 0 / 0.6672 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1783, allocations: 3.938 kB / 0.6672 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1783, allocations: 0 / 0.6672 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1783, allocations: 0 / 0.6672 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.724e-05/0.1783, allocations: 69.09 kB / 0.6673 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.1784, allocations: 81.11 kB / 0.6673 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1784, allocations: 3.938 kB / 0.6673 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.062e-05/0.1784, allocations: 0 / 0.6673 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.09e-05/0.1785, allocations: 3.984 kB / 0.6673 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.1785, allocations: 0 / 0.6673 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.593e-05/0.1785, allocations: 75.28 kB / 0.6674 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1785, allocations: 8.031 kB / 0.6674 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001981/0.1787, allocations: 4 kB / 0.6674 GB, free: 2.602 MB / 0.4981 GB 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001776/0.1789, allocations: 107.7 kB / 0.6675 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 8.265e-05/0.179, allocations: 7.938 kB / 0.6675 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.179, allocations: 0 / 0.6675 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.824e-05/0.179, allocations: 7.984 kB / 0.6675 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1792, allocations: 5.719 kB / 0.6676 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002206/0.1794, allocations: 89.06 kB / 0.6676 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.1796, allocations: 0.6729 MB / 0.6683 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.583e-05/0.1797, allocations: 4 kB / 0.6683 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.852e-05/0.1797, allocations: 7.438 kB / 0.6683 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1797, allocations: 3.938 kB / 0.6683 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of Templates: time 0.002349/0.182, allocations: 316.9 kB / 0.6686 GB, free: 1.332 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)