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.001373/0.001373, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9527/0.9527, allocations: 135.1 MB / 425.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.84 kB / 0.5053 GB, free: 5.312 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1794, allocations: 80.93 MB / 0.5844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001876/0.1813, allocations: 0.5614 MB / 0.5849 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002416/0.1816, allocations: 55.78 kB / 0.585 GB, free: 3.926 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.382e-05/0.1816, allocations: 0 / 0.585 GB, free: 3.926 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.038e-05/0.1816, allocations: 4 kB / 0.585 GB, free: 3.922 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.669e-06/0.1816, allocations: 4 kB / 0.585 GB, free: 3.918 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.1818, allocations: 7.984 kB / 0.585 GB, free: 3.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.191e-05/0.1819, allocations: 7.938 kB / 0.585 GB, free: 3.902 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.1819, allocations: 0 / 0.585 GB, free: 3.902 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.404e-05/0.1819, allocations: 7.984 kB / 0.585 GB, free: 3.895 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.973e-05/0.182, allocations: 3.938 kB / 0.585 GB, free: 3.891 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.536e-06/0.182, allocations: 0 / 0.585 GB, free: 3.891 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.1821, allocations: 11.98 kB / 0.585 GB, free: 3.879 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.617e-06/0.1821, allocations: 0 / 0.585 GB, free: 3.879 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.548e-05/0.1821, allocations: 4 kB / 0.585 GB, free: 3.875 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.387e-05/0.1822, allocations: 15.97 kB / 0.585 GB, free: 3.859 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1822, allocations: 0 / 0.585 GB, free: 3.859 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1822, allocations: 0 / 0.585 GB, free: 3.859 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.1822, allocations: 0 / 0.585 GB, free: 3.859 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.0002738/0.1825, allocations: 319.6 kB / 0.5853 GB, free: 3.496 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1825, allocations: 8.031 kB / 0.5854 GB, free: 3.488 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.1826, allocations: 0.9375 kB / 0.5854 GB, free: 3.488 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.1827, allocations: 168.4 kB / 0.5855 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.1827, allocations: 384 / 0.5855 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.1827, allocations: 384 / 0.5855 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.614e-05/0.1828, allocations: 38.2 kB / 0.5856 GB, free: 3.242 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1829, allocations: 192 / 0.5856 GB, free: 3.242 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1829, allocations: 11.94 kB / 0.5856 GB, free: 3.23 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1829, allocations: 0 / 0.5856 GB, free: 3.23 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.169e-05/0.1829, allocations: 11.92 kB / 0.5856 GB, free: 3.219 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.1831, allocations: 141.7 kB / 0.5857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.974e-05/0.1831, allocations: 26.61 kB / 0.5857 GB, free: 2.996 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.791e-05/0.1831, allocations: 12.84 kB / 0.5857 GB, free: 2.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001672/0.1833, allocations: 81.17 kB / 0.5858 GB, free: 2.883 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.1833, allocations: 30.56 kB / 0.5859 GB, free: 2.844 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.1833, allocations: 3.938 kB / 0.5859 GB, free: 2.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001337/0.1835, allocations: 49.56 kB / 0.5859 GB, free: 2.785 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.1835, allocations: 55.41 kB / 0.586 GB, free: 2.719 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.576e-05/0.1836, allocations: 89.86 kB / 0.586 GB, free: 2.621 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.1836, allocations: 29.83 kB / 0.5861 GB, free: 2.586 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.478e-05/0.1836, allocations: 80.14 kB / 0.5861 GB, free: 2.504 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.1836, allocations: 7.906 kB / 0.5862 GB, free: 2.496 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.1837, allocations: 13.72 kB / 0.5862 GB, free: 2.477 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1838, allocations: 310.8 kB / 0.5865 GB, free: 2.164 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.23e-05/0.1838, allocations: 3.984 kB / 0.5865 GB, free: 2.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.097e-06/0.1838, allocations: 8 kB / 0.5865 GB, free: 2.152 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.251e-05/0.1839, allocations: 12.92 kB / 0.5865 GB, free: 2.137 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1839, allocations: 0 / 0.5865 GB, free: 2.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.105e-05/0.1839, allocations: 41.64 kB / 0.5865 GB, free: 2.09 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.184, allocations: 11.98 kB / 0.5865 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.184, allocations: 0 / 0.5865 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.184, allocations: 3.938 kB / 0.5865 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.155e-05/0.184, allocations: 4 kB / 0.5865 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.1841, allocations: 0 / 0.5865 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.231e-05/0.1841, allocations: 0 / 0.5865 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-06/0.1841, allocations: 0 / 0.5865 GB, free: 2.07 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.91e-05/0.1841, allocations: 109.9 kB / 0.5867 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.1842, allocations: 4 kB / 0.5867 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.632e-05/0.1843, allocations: 48.97 kB / 0.5867 GB, free: 1.895 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1843, allocations: 4 kB / 0.5867 GB, free: 1.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1843, allocations: 0 / 0.5867 GB, free: 1.891 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1843, allocations: 3.938 kB / 0.5867 GB, free: 1.887 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.1844, allocations: 149.6 kB / 0.5869 GB, free: 1.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1844, allocations: 0 / 0.5869 GB, free: 1.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-05/0.1844, allocations: 8 kB / 0.5869 GB, free: 1.684 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1844, allocations: 4.031 kB / 0.5869 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.1844, allocations: 3.938 kB / 0.5869 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1845, allocations: 4 kB / 0.5869 GB, free: 1.672 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1845, allocations: 0 / 0.5869 GB, free: 1.672 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.153e-05/0.1845, allocations: 61.12 kB / 0.5869 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.1846, allocations: 77.11 kB / 0.587 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.1846, allocations: 11.88 kB / 0.587 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.1846, allocations: 4.031 kB / 0.587 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.882e-05/0.1846, allocations: 7.984 kB / 0.587 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.1847, allocations: 0 / 0.587 GB, free: 1.477 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.639e-05/0.1847, allocations: 75.28 kB / 0.5871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1847, allocations: 0 / 0.5871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001876/0.1849, allocations: 7.938 kB / 0.5871 GB, free: 1.395 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.0001363/0.185, allocations: 99.25 kB / 0.5872 GB, free: 1.285 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.996e-05/0.1851, allocations: 12 kB / 0.5872 GB, free: 1.273 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1851, allocations: 4.062 kB / 0.5872 GB, free: 1.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.618e-05/0.1851, allocations: 7.984 kB / 0.5872 GB, free: 1.262 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.1853, allocations: 2.5 kB / 0.5872 GB, free: 1.262 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001904/0.1855, allocations: 96.78 kB / 0.5873 GB, free: 1.141 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.1857, allocations: 0.6768 MB / 0.588 GB, free: 448 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.19e-05/0.1857, allocations: 0 / 0.588 GB, free: 448 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.542e-05/0.1857, allocations: 7.438 kB / 0.588 GB, free: 440 kB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1857, allocations: 4 kB / 0.588 GB, free: 436 kB / 494.1 MB Notification: Performance of Templates: time 0.001956/0.1877, allocations: 321.5 kB / 0.5883 GB, free: 120 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)