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.001259/0.001259, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001214/0.001214, allocations: 192 kB / 16.25 MB, free: 6.637 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.377/1.377, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9948/0.9948, allocations: 135.1 MB / 425.2 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 64.91 kB / 0.5049 GB, free: 5.637 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1738/0.175, allocations: 80.93 MB / 0.5839 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.002008/0.1771, allocations: 0.6412 MB / 0.5845 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000268/0.1773, allocations: 47.86 kB / 0.5846 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.627e-05/0.1774, allocations: 0 / 0.5846 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.998e-05/0.1774, allocations: 0 / 0.5846 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.1774, allocations: 0 / 0.5846 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.1777, allocations: 8 kB / 0.5846 GB, free: 4.168 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.498e-05/0.1777, allocations: 4 kB / 0.5846 GB, free: 4.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.587e-05/0.1778, allocations: 3.984 kB / 0.5846 GB, free: 4.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.831e-05/0.1778, allocations: 7.922 kB / 0.5846 GB, free: 4.152 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.474e-05/0.1778, allocations: 4 kB / 0.5846 GB, free: 4.148 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.1778, allocations: 7.938 kB / 0.5846 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.358e-05/0.1779, allocations: 11.94 kB / 0.5846 GB, free: 4.129 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.728e-06/0.1779, allocations: 0 / 0.5846 GB, free: 4.129 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.625e-05/0.178, allocations: 0 / 0.5846 GB, free: 4.129 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.988e-05/0.178, allocations: 11.98 kB / 0.5846 GB, free: 4.117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1781, allocations: 0 / 0.5846 GB, free: 4.117 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1781, allocations: 0 / 0.5846 GB, free: 4.117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1781, allocations: 4 kB / 0.5846 GB, free: 4.113 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003157/0.1784, allocations: 315.6 kB / 0.5849 GB, free: 3.754 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1784, allocations: 12.03 kB / 0.5849 GB, free: 3.742 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.608e-05/0.1785, allocations: 0.9375 kB / 0.5849 GB, free: 3.742 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.926e-05/0.1786, allocations: 160.4 kB / 0.5851 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.1786, allocations: 384 / 0.5851 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.1786, allocations: 4.375 kB / 0.5851 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.382e-05/0.1787, allocations: 34.25 kB / 0.5851 GB, free: 3.504 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.1787, allocations: 4.188 kB / 0.5851 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.1787, allocations: 3.938 kB / 0.5851 GB, free: 3.496 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1787, allocations: 3.938 kB / 0.5851 GB, free: 3.492 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.535e-05/0.1788, allocations: 7.938 kB / 0.5851 GB, free: 3.484 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001498/0.1789, allocations: 153.7 kB / 0.5853 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.436e-05/0.179, allocations: 22.59 kB / 0.5853 GB, free: 3.254 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.786e-05/0.179, allocations: 8.922 kB / 0.5853 GB, free: 3.242 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000156/0.1792, allocations: 81.11 kB / 0.5854 GB, free: 3.145 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.1792, allocations: 34.56 kB / 0.5854 GB, free: 3.102 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1792, allocations: 0 / 0.5854 GB, free: 3.102 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001315/0.1793, allocations: 49.56 kB / 0.5855 GB, free: 3.047 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.1794, allocations: 51.41 kB / 0.5855 GB, free: 2.984 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.205e-05/0.1794, allocations: 97.86 kB / 0.5856 GB, free: 2.879 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1795, allocations: 29.7 kB / 0.5857 GB, free: 2.844 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.404e-05/0.1795, allocations: 80.14 kB / 0.5857 GB, free: 2.762 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.1795, allocations: 3.906 kB / 0.5857 GB, free: 2.758 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.1796, allocations: 17.7 kB / 0.5858 GB, free: 2.734 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1797, allocations: 315 kB / 0.5861 GB, free: 2.418 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.1797, allocations: 4 kB / 0.5861 GB, free: 2.414 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.836e-06/0.1797, allocations: 4 kB / 0.5861 GB, free: 2.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.914e-05/0.1797, allocations: 8.859 kB / 0.5861 GB, free: 2.398 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1797, allocations: 0 / 0.5861 GB, free: 2.398 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.991e-05/0.1798, allocations: 45.62 kB / 0.5861 GB, free: 2.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.1798, allocations: 4 kB / 0.5861 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.1798, allocations: 0 / 0.5861 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1799, allocations: 11.88 kB / 0.5861 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.234e-05/0.1799, allocations: 8.094 kB / 0.5861 GB, free: 2.324 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.1799, allocations: 0 / 0.5861 GB, free: 2.324 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.57e-05/0.1799, allocations: 4 kB / 0.5861 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-06/0.18, allocations: 0 / 0.5861 GB, free: 2.32 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 (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 6.273e-05/0.18, allocations: 105.8 kB / 0.5862 GB, free: 2.207 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-06/0.18, allocations: 0 / 0.5862 GB, free: 2.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.434e-05/0.1801, allocations: 52.97 kB / 0.5863 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1801, allocations: 0 / 0.5863 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1801, allocations: 4.031 kB / 0.5863 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1802, allocations: 0 / 0.5863 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.708e-05/0.1802, allocations: 157.6 kB / 0.5864 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1803, allocations: 0 / 0.5864 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-05/0.1803, allocations: 7.938 kB / 0.5865 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1803, allocations: 3.984 kB / 0.5865 GB, free: 1.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1803, allocations: 3.938 kB / 0.5865 GB, free: 1.926 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1803, allocations: 0 / 0.5865 GB, free: 1.926 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1803, allocations: 0 / 0.5865 GB, free: 1.926 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.829e-05/0.1804, allocations: 69.12 kB / 0.5865 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.373e-05/0.1804, allocations: 77.11 kB / 0.5866 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.1804, allocations: 3.938 kB / 0.5866 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.205e-05/0.1805, allocations: 3.984 kB / 0.5866 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.707e-05/0.1805, allocations: 3.938 kB / 0.5866 GB, free: 1.734 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.1805, allocations: 4 kB / 0.5866 GB, free: 1.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.552e-05/0.1805, allocations: 75.28 kB / 0.5867 GB, free: 1.656 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1805, allocations: 0 / 0.5867 GB, free: 1.656 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001957/0.1807, allocations: 4 kB / 0.5867 GB, free: 1.652 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,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.000145/0.1809, allocations: 107.3 kB / 0.5868 GB, free: 1.535 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.76e-05/0.181, allocations: 11.98 kB / 0.5868 GB, free: 1.523 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.181, allocations: 0 / 0.5868 GB, free: 1.523 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.349e-05/0.181, allocations: 4 kB / 0.5868 GB, free: 1.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.1811, allocations: 3.094 kB / 0.5868 GB, free: 1.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000178/0.1813, allocations: 96.89 kB / 0.5869 GB, free: 1.398 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.1816, allocations: 0.6768 MB / 0.5876 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.108e-05/0.1816, allocations: 0 / 0.5876 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.4e-05/0.1816, allocations: 7.438 kB / 0.5876 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1816, allocations: 0 / 0.5876 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of Templates: time 0.002029/0.1836, allocations: 318.5 kB / 0.5879 GB, free: 388 kB / 494.1 MB 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)