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.0008293/0.0008293, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008661/0.0008661, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6599/0.6599, allocations: 132.3 MB / 423.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.0002831, allocations: 8 kB / 0.5034 GB, free: 4.277 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3311, allocations: 81.58 MB / 0.5831 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0005122/0.3317, allocations: 311.5 kB / 0.5834 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001893/0.3319, allocations: 46.58 kB / 0.5834 GB, free: 3.758 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.104e-05/0.3319, allocations: 1.406 kB / 0.5834 GB, free: 3.758 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.015e-06/0.3319, allocations: 3.938 kB / 0.5834 GB, free: 3.754 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.659e-06/0.3319, allocations: 3.938 kB / 0.5834 GB, free: 3.75 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001426/0.3321, allocations: 10.38 kB / 0.5835 GB, free: 3.746 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 3.299e-05/0.3321, allocations: 2.219 kB / 0.5835 GB, free: 3.746 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.3322, allocations: 5.312 kB / 0.5835 GB, free: 3.742 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.169e-05/0.3322, allocations: 6.078 kB / 0.5835 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.131e-05/0.3322, allocations: 5.359 kB / 0.5835 GB, free: 3.734 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.682e-06/0.3322, allocations: 0 / 0.5835 GB, free: 3.734 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.176e-05/0.3323, allocations: 9.5 kB / 0.5835 GB, free: 3.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.628e-06/0.3323, allocations: 1 kB / 0.5835 GB, free: 3.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.424e-05/0.3323, allocations: 27.59 kB / 0.5835 GB, free: 3.699 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 4.747e-05/0.3324, allocations: 3.297 kB / 0.5835 GB, free: 3.699 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3324, allocations: 0.6562 kB / 0.5835 GB, free: 3.699 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3324, allocations: 1.219 kB / 0.5835 GB, free: 3.699 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.715e-06/0.3324, allocations: 0 / 0.5835 GB, free: 3.699 MB / 430.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.0001612/0.3325, allocations: 316.1 kB / 0.5838 GB, free: 3.348 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.3326, allocations: 9.469 kB / 0.5838 GB, free: 3.348 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.026e-05/0.3326, allocations: 0 / 0.5838 GB, free: 3.348 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.511e-05/0.3327, allocations: 169.2 kB / 0.584 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.3327, allocations: 1.531 kB / 0.584 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-06/0.3327, allocations: 0 / 0.584 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.118e-05/0.3328, allocations: 30.81 kB / 0.584 GB, free: 3.113 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.69e-06/0.3328, allocations: 1.094 kB / 0.584 GB, free: 3.113 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-06/0.3328, allocations: 0 / 0.584 GB, free: 3.113 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.3328, allocations: 0 / 0.584 GB, free: 3.113 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.936e-05/0.3328, allocations: 12.86 kB / 0.584 GB, free: 3.105 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.408e-05/0.3329, allocations: 149.8 kB / 0.5842 GB, free: 2.914 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.839e-05/0.3329, allocations: 28.75 kB / 0.5842 GB, free: 2.883 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.379e-05/0.333, allocations: 7.578 kB / 0.5842 GB, free: 2.875 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.3331, allocations: 81.69 kB / 0.5843 GB, free: 2.781 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.501e-05/0.3331, allocations: 32.81 kB / 0.5843 GB, free: 2.742 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.3331, allocations: 4 kB / 0.5843 GB, free: 2.738 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001081/0.3332, allocations: 40.42 kB / 0.5844 GB, free: 2.703 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.718e-05/0.3332, allocations: 56.05 kB / 0.5844 GB, free: 2.637 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.626e-05/0.3333, allocations: 94.58 kB / 0.5845 GB, free: 2.535 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.019e-06/0.3333, allocations: 25.7 kB / 0.5845 GB, free: 2.504 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.486e-06/0.3333, allocations: 85.3 kB / 0.5846 GB, free: 2.418 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.217e-05/0.3333, allocations: 1.125 kB / 0.5846 GB, free: 2.418 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.3333, allocations: 0 / 0.5846 GB, free: 2.418 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.373e-05/0.3334, allocations: 324.1 kB / 0.5849 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.556e-06/0.3334, allocations: 2.141 kB / 0.5849 GB, free: 2.094 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.311e-06/0.3334, allocations: 3.297 kB / 0.5849 GB, free: 2.094 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.184e-05/0.3334, allocations: 7.25 kB / 0.5849 GB, free: 2.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3334, allocations: 0 / 0.5849 GB, free: 2.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.497e-05/0.3335, allocations: 39.22 kB / 0.585 GB, free: 2.055 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.3335, allocations: 5.062 kB / 0.585 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.3335, allocations: 1.594 kB / 0.585 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.586e-06/0.3335, allocations: 0 / 0.585 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.246e-05/0.3335, allocations: 7.906 kB / 0.585 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.3336, allocations: 0.5625 kB / 0.585 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.204e-05/0.3336, allocations: 4.719 kB / 0.585 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-06/0.3336, allocations: 2 kB / 0.585 GB, free: 2.047 MB / 430.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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.3336, allocations: 111.5 kB / 0.5851 GB, free: 1.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.051e-06/0.3336, allocations: 0.8438 kB / 0.5851 GB, free: 1.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.393e-05/0.3337, allocations: 44.62 kB / 0.5851 GB, free: 1.891 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3337, allocations: 1.391 kB / 0.5851 GB, free: 1.891 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3337, allocations: 4.875 kB / 0.5851 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.3337, allocations: 0 / 0.5851 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.566e-05/0.3338, allocations: 159.1 kB / 0.5853 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3338, allocations: 0 / 0.5853 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.949e-05/0.3338, allocations: 3.062 kB / 0.5853 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3338, allocations: 1.188 kB / 0.5853 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-06/0.3338, allocations: 0.6562 kB / 0.5853 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3338, allocations: 0.6562 kB / 0.5853 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3338, allocations: 0.75 kB / 0.5853 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.12e-05/0.3339, allocations: 73.02 kB / 0.5854 GB, free: 1.609 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.215e-05/0.3339, allocations: 85.75 kB / 0.5855 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.486e-06/0.3339, allocations: 1.578 kB / 0.5855 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.789e-06/0.3339, allocations: 0 / 0.5855 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.211e-05/0.3339, allocations: 2.906 kB / 0.5855 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.334, allocations: 1.344 kB / 0.5855 GB, free: 1.508 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.197e-06/0.334, allocations: 76 kB / 0.5855 GB, free: 1.434 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.334, allocations: 3.938 kB / 0.5855 GB, free: 1.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001918/0.3342, allocations: 12.72 kB / 0.5855 GB, free: 1.422 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.843e-05/0.3343, allocations: 100 kB / 0.5856 GB, free: 1.336 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.859e-05/0.3343, allocations: 14.92 kB / 0.5857 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.3343, allocations: 1.031 kB / 0.5857 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.232e-05/0.3344, allocations: 4.938 kB / 0.5857 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001097/0.3345, allocations: 1.094 kB / 0.5857 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001171/0.3346, allocations: 89.12 kB / 0.5857 GB, free: 1.227 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.809e-05/0.3347, allocations: 0.6722 MB / 0.5864 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.047e-05/0.3347, allocations: 1.812 kB / 0.5864 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.531e-05/0.3347, allocations: 10.08 kB / 0.5864 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3347, allocations: 3.938 kB / 0.5864 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of Templates: time 0.001761/0.3365, allocations: 295.3 kB / 0.5867 GB, free: 476 kB / 430.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)