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.0009093/0.0009095, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006336/0.006336, allocations: 169.6 kB / 16.27 MB, free: 6.355 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.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9742/0.9742, allocations: 135.3 MB / 426.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003233, allocations: 12 kB / 0.5076 GB, free: 4.746 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.182, allocations: 82.31 MB / 0.588 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0007054/0.1827, allocations: 307.1 kB / 0.5883 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002962/0.1831, allocations: 55.86 kB / 0.5883 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.836e-06/0.1831, allocations: 0 / 0.5883 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.069e-05/0.1831, allocations: 0 / 0.5883 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.1831, allocations: 0 / 0.5883 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.1833, allocations: 4 kB / 0.5883 GB, free: 2.242 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.554e-05/0.1833, allocations: 7.984 kB / 0.5883 GB, free: 2.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.905e-05/0.1834, allocations: 3.938 kB / 0.5883 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.485e-05/0.1834, allocations: 4 kB / 0.5883 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.332e-05/0.1834, allocations: 3.984 kB / 0.5884 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.1835, allocations: 0 / 0.5884 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.902e-05/0.1835, allocations: 4 kB / 0.5884 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.127e-05/0.1835, allocations: 15.88 kB / 0.5884 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.1836, allocations: 25.7 kB / 0.5884 GB, free: 2.172 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.872e-05/0.1837, allocations: 7.984 kB / 0.5884 GB, free: 2.164 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1837, allocations: 0 / 0.5884 GB, free: 2.164 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1837, allocations: 4 kB / 0.5884 GB, free: 2.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.1837, allocations: 0 / 0.5884 GB, free: 2.16 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.0003113/0.184, allocations: 315.5 kB / 0.5887 GB, free: 1.801 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.184, allocations: 12.09 kB / 0.5887 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.389e-05/0.1841, allocations: 0.9375 kB / 0.5887 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.635e-05/0.1841, allocations: 160.4 kB / 0.5889 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.1842, allocations: 4.375 kB / 0.5889 GB, free: 1.59 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.095e-06/0.1842, allocations: 384 / 0.5889 GB, free: 1.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.784e-05/0.1843, allocations: 34.25 kB / 0.5889 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.1843, allocations: 192 / 0.5889 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.1843, allocations: 3.938 kB / 0.5889 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1843, allocations: 0 / 0.5889 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.254e-05/0.1844, allocations: 11.88 kB / 0.5889 GB, free: 1.535 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.1845, allocations: 149.7 kB / 0.5891 GB, free: 1.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.498e-05/0.1846, allocations: 30.59 kB / 0.5891 GB, free: 1.301 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.917e-05/0.1846, allocations: 8.922 kB / 0.5891 GB, free: 1.289 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001642/0.1848, allocations: 81.09 kB / 0.5892 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.1848, allocations: 34.56 kB / 0.5892 GB, free: 1.148 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.1848, allocations: 0 / 0.5892 GB, free: 1.148 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001519/0.185, allocations: 49.56 kB / 0.5893 GB, free: 1.094 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.185, allocations: 51.53 kB / 0.5893 GB, free: 1.031 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.811e-05/0.185, allocations: 93.86 kB / 0.5894 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.1851, allocations: 25.7 kB / 0.5894 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.914e-05/0.1851, allocations: 80.14 kB / 0.5895 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.1851, allocations: 3.906 kB / 0.5895 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.576e-05/0.1852, allocations: 17.72 kB / 0.5895 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1853, allocations: 318.8 kB / 0.5898 GB, free: 480 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.089e-05/0.1853, allocations: 0 / 0.5898 GB, free: 480 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-06/0.1853, allocations: 4 kB / 0.5898 GB, free: 476 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.061e-05/0.1853, allocations: 16.92 kB / 0.5898 GB, free: 456 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1853, allocations: 0 / 0.5898 GB, free: 456 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.316e-05/0.1854, allocations: 41.62 kB / 0.5899 GB, free: 408 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1854, allocations: 4 kB / 0.5899 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1854, allocations: 7.938 kB / 0.5899 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1855, allocations: 3.938 kB / 0.5899 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.125e-05/0.1855, allocations: 0 / 0.5899 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1855, allocations: 4 kB / 0.5899 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.337e-05/0.1856, allocations: 0 / 0.5899 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-06/0.1856, allocations: 4.031 kB / 0.5899 GB, free: 384 kB / 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.354e-05/0.1856, allocations: 109.8 kB / 0.59 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.185e-06/0.1856, allocations: 4 kB / 0.59 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.436e-05/0.1857, allocations: 52.95 kB / 0.5901 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1858, allocations: 0 / 0.5901 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1858, allocations: 4 kB / 0.5901 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1858, allocations: 0 / 0.5901 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.1859, allocations: 149.6 kB / 0.5902 GB, free: 16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1859, allocations: 32 / 0.5902 GB, free: 16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.1859, allocations: 12 kB / 0.5902 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1859, allocations: 3.938 kB / 0.5902 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.186, allocations: 3.938 kB / 0.5902 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.186, allocations: 0 / 0.5902 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.186, allocations: 4 kB / 0.5902 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.923e-05/0.1861, allocations: 61.12 kB / 0.5903 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.261e-05/0.1861, allocations: 77.11 kB / 0.5904 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.1861, allocations: 7.969 kB / 0.5904 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.09e-05/0.1861, allocations: 0 / 0.5904 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.1862, allocations: 7.984 kB / 0.5904 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.1862, allocations: 0 / 0.5904 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.39e-05/0.1862, allocations: 79.22 kB / 0.5905 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1862, allocations: 0 / 0.5905 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001863/0.1864, allocations: 8 kB / 0.5905 GB, free: 15.7 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.0001529/0.1866, allocations: 99.25 kB / 0.5906 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.454e-05/0.1866, allocations: 12 kB / 0.5906 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1866, allocations: 0 / 0.5906 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.58e-05/0.1867, allocations: 7.984 kB / 0.5906 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.1868, allocations: 7.516 kB / 0.5906 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001861/0.187, allocations: 82.67 kB / 0.5907 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.1873, allocations: 0.6731 MB / 0.5913 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.372e-05/0.1873, allocations: 7.938 kB / 0.5913 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.632e-05/0.1874, allocations: 7.562 kB / 0.5913 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of SimCode: time 1.633e-06/0.1874, allocations: 4 kB / 0.5913 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of Templates: time 0.002318/0.1897, allocations: 311.5 kB / 0.5916 GB, free: 14.44 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)