Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001095/0.001095, 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.001193/0.001193, allocations: 190.9 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.412/1.412, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7686/0.7686, allocations: 132.2 MB / 422.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 63.66 kB / 0.5011 GB, free: 9.195 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.18, allocations: 80.21 MB / 0.5794 GB, free: 9.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.002389/0.1825, allocations: 0.6523 MB / 0.5801 GB, free: 8.555 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003494/0.1828, allocations: 47.86 kB / 0.5801 GB, free: 8.508 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.378e-05/0.1829, allocations: 0 / 0.5801 GB, free: 8.508 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.921e-05/0.1829, allocations: 3.938 kB / 0.5801 GB, free: 8.504 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.051e-06/0.1829, allocations: 0 / 0.5801 GB, free: 8.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002181/0.1832, allocations: 8 kB / 0.5801 GB, free: 8.496 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.226e-05/0.1832, allocations: 3.984 kB / 0.5801 GB, free: 8.492 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.91e-05/0.1833, allocations: 4 kB / 0.5801 GB, free: 8.488 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.835e-05/0.1833, allocations: 3.984 kB / 0.5801 GB, free: 8.484 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.138e-05/0.1833, allocations: 3.938 kB / 0.5801 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.046e-05/0.1833, allocations: 4 kB / 0.5801 GB, free: 8.477 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.9e-05/0.1834, allocations: 8 kB / 0.5802 GB, free: 8.469 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.01e-05/0.1834, allocations: 0 / 0.5802 GB, free: 8.469 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.1835, allocations: 4 kB / 0.5802 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.404e-05/0.1836, allocations: 15.97 kB / 0.5802 GB, free: 8.449 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1836, allocations: 0 / 0.5802 GB, free: 8.449 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1836, allocations: 0 / 0.5802 GB, free: 8.449 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.1836, allocations: 0 / 0.5802 GB, free: 8.449 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.0003389/0.1839, allocations: 317.2 kB / 0.5805 GB, free: 8.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.184, allocations: 11.97 kB / 0.5805 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.105e-05/0.184, allocations: 4.938 kB / 0.5805 GB, free: 8.074 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.34e-05/0.1841, allocations: 164.4 kB / 0.5806 GB, free: 7.875 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.1841, allocations: 384 / 0.5806 GB, free: 7.875 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.1842, allocations: 384 / 0.5806 GB, free: 7.875 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.1843, allocations: 42.19 kB / 0.5807 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1843, allocations: 192 / 0.5807 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1843, allocations: 3.938 kB / 0.5807 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1843, allocations: 0 / 0.5807 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.229e-05/0.1843, allocations: 4 kB / 0.5807 GB, free: 7.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001441/0.1845, allocations: 153.7 kB / 0.5808 GB, free: 7.621 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.423e-05/0.1845, allocations: 22.61 kB / 0.5809 GB, free: 7.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.679e-05/0.1846, allocations: 4.859 kB / 0.5809 GB, free: 7.582 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.1847, allocations: 85.17 kB / 0.581 GB, free: 7.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.1848, allocations: 42.48 kB / 0.581 GB, free: 7.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1848, allocations: 3.938 kB / 0.581 GB, free: 7.426 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001368/0.1849, allocations: 41.64 kB / 0.581 GB, free: 7.379 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.185, allocations: 55.41 kB / 0.5811 GB, free: 7.312 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.725e-05/0.185, allocations: 93.86 kB / 0.5812 GB, free: 7.211 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.185, allocations: 25.7 kB / 0.5812 GB, free: 7.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.1851, allocations: 80.14 kB / 0.5813 GB, free: 7.098 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.1851, allocations: 3.906 kB / 0.5813 GB, free: 7.094 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.81e-05/0.1851, allocations: 17.7 kB / 0.5813 GB, free: 7.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.872e-05/0.1852, allocations: 314.8 kB / 0.5816 GB, free: 6.754 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.1852, allocations: 4.125 kB / 0.5816 GB, free: 6.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.742e-06/0.1853, allocations: 4 kB / 0.5816 GB, free: 6.746 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.269e-05/0.1853, allocations: 12.8 kB / 0.5816 GB, free: 6.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.1853, allocations: 0 / 0.5816 GB, free: 6.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.598e-05/0.1854, allocations: 41.69 kB / 0.5817 GB, free: 6.684 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1854, allocations: 10.34 kB / 0.5817 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-06/0.1854, allocations: 0 / 0.5817 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1854, allocations: 3.938 kB / 0.5817 GB, free: 6.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.902e-05/0.1855, allocations: 4.094 kB / 0.5817 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.1855, allocations: 4 kB / 0.5817 GB, free: 6.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.287e-05/0.1855, allocations: 0 / 0.5817 GB, free: 6.664 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.1855, allocations: 0 / 0.5817 GB, free: 6.664 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 5.697e-05/0.1856, allocations: 113.8 kB / 0.5818 GB, free: 6.543 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-06/0.1856, allocations: 4 kB / 0.5818 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.397e-05/0.1857, allocations: 44.98 kB / 0.5818 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.1857, allocations: 4 kB / 0.5818 GB, free: 6.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1857, allocations: 3.984 kB / 0.5818 GB, free: 6.477 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1857, allocations: 4.031 kB / 0.5818 GB, free: 6.473 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.209e-05/0.1858, allocations: 153.6 kB / 0.582 GB, free: 6.273 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1858, allocations: 0 / 0.582 GB, free: 6.273 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.216e-05/0.1858, allocations: 4 kB / 0.582 GB, free: 6.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1858, allocations: 0 / 0.582 GB, free: 6.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.1858, allocations: 7.922 kB / 0.582 GB, free: 6.262 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1858, allocations: 4 kB / 0.582 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1858, allocations: 0 / 0.582 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.57e-05/0.1859, allocations: 65.08 kB / 0.5821 GB, free: 6.176 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.186, allocations: 85.08 kB / 0.5822 GB, free: 6.074 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.186, allocations: 3.938 kB / 0.5822 GB, free: 6.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.026e-05/0.186, allocations: 0 / 0.5822 GB, free: 6.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.138e-05/0.186, allocations: 4 kB / 0.5822 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.186, allocations: 0 / 0.5822 GB, free: 6.066 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.55e-05/0.1861, allocations: 75.28 kB / 0.5822 GB, free: 5.992 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1861, allocations: 0 / 0.5822 GB, free: 5.992 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001928/0.1863, allocations: 7.938 kB / 0.5822 GB, free: 5.984 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.0001694/0.1864, allocations: 111.3 kB / 0.5823 GB, free: 5.867 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.309e-05/0.1865, allocations: 8 kB / 0.5824 GB, free: 5.859 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1865, allocations: 0 / 0.5824 GB, free: 5.859 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.681e-05/0.1865, allocations: 7.938 kB / 0.5824 GB, free: 5.852 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.1867, allocations: 0 / 0.5824 GB, free: 5.852 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001829/0.1869, allocations: 94.59 kB / 0.5825 GB, free: 5.734 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.1871, allocations: 0.6772 MB / 0.5831 GB, free: 5.031 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.237e-05/0.1872, allocations: 0 / 0.5831 GB, free: 5.031 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.304e-05/0.1872, allocations: 7.438 kB / 0.5831 GB, free: 5.027 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1872, allocations: 0 / 0.5831 GB, free: 5.027 MB / 494.1 MB Notification: Performance of Templates: time 0.002105/0.1893, allocations: 310.6 kB / 0.5834 GB, free: 4.727 MB / 494.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)