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.001109/0.001109, allocations: 109.7 kB / 16.37 MB, free: 6.473 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.001012/0.001012, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8329/0.8329, allocations: 132.2 MB / 423.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001255, allocations: 67.89 kB / 0.5032 GB, free: 10.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3534, allocations: 80.17 MB / 0.5815 GB, free: 27.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001582/0.355, allocations: 0.588 MB / 0.5821 GB, free: 27.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002166/0.3552, allocations: 47.61 kB / 0.5821 GB, free: 27.33 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.411e-05/0.3552, allocations: 0 / 0.5821 GB, free: 27.33 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.081e-05/0.3552, allocations: 0 / 0.5821 GB, free: 27.33 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.479e-06/0.3553, allocations: 1.406 kB / 0.5821 GB, free: 27.33 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.3555, allocations: 16.23 kB / 0.5821 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.883e-05/0.3555, allocations: 1.562 kB / 0.5821 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.248e-05/0.3556, allocations: 1.594 kB / 0.5821 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.313e-05/0.3556, allocations: 6.469 kB / 0.5821 GB, free: 27.31 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.871e-05/0.3556, allocations: 5.297 kB / 0.5821 GB, free: 27.31 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.325e-06/0.3556, allocations: 1.281 kB / 0.5822 GB, free: 27.31 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.529e-05/0.3557, allocations: 13.83 kB / 0.5822 GB, free: 27.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-06/0.3557, allocations: 0 / 0.5822 GB, free: 27.3 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.939e-05/0.3557, allocations: 0 / 0.5822 GB, free: 27.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.044e-05/0.3558, allocations: 13.64 kB / 0.5822 GB, free: 27.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3558, allocations: 0 / 0.5822 GB, free: 27.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3558, allocations: 1.812 kB / 0.5822 GB, free: 27.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.3558, allocations: 3.938 kB / 0.5822 GB, free: 27.29 MB / 446.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.0001986/0.356, allocations: 312.2 kB / 0.5825 GB, free: 26.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.3561, allocations: 10.12 kB / 0.5825 GB, free: 26.94 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.3561, allocations: 1.562 kB / 0.5825 GB, free: 26.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.743e-05/0.3562, allocations: 166.6 kB / 0.5826 GB, free: 26.74 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.3562, allocations: 384 / 0.5826 GB, free: 26.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.294e-06/0.3562, allocations: 1.438 kB / 0.5827 GB, free: 26.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.362e-05/0.3563, allocations: 38.64 kB / 0.5827 GB, free: 26.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.3563, allocations: 192 / 0.5827 GB, free: 26.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.3563, allocations: 5.375 kB / 0.5827 GB, free: 26.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.3563, allocations: 5.203 kB / 0.5827 GB, free: 26.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.82e-05/0.3563, allocations: 7.016 kB / 0.5827 GB, free: 26.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.3565, allocations: 151.9 kB / 0.5828 GB, free: 26.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.407e-05/0.3565, allocations: 20.17 kB / 0.5829 GB, free: 26.47 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.491e-05/0.3566, allocations: 12.12 kB / 0.5829 GB, free: 26.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.3567, allocations: 93.06 kB / 0.583 GB, free: 26.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.3568, allocations: 33.06 kB / 0.583 GB, free: 26.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.3568, allocations: 0 / 0.583 GB, free: 26.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001405/0.3569, allocations: 42.56 kB / 0.583 GB, free: 26.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.146e-05/0.3569, allocations: 54.53 kB / 0.5831 GB, free: 26.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.524e-05/0.357, allocations: 93.86 kB / 0.5832 GB, free: 26.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.712e-06/0.357, allocations: 25.7 kB / 0.5832 GB, free: 26.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.206e-05/0.357, allocations: 85.2 kB / 0.5833 GB, free: 25.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/0.357, allocations: 1.156 kB / 0.5833 GB, free: 25.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.3571, allocations: 12.62 kB / 0.5833 GB, free: 25.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.216e-05/0.3571, allocations: 318.6 kB / 0.5836 GB, free: 25.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.272e-05/0.3571, allocations: 6.266 kB / 0.5836 GB, free: 25.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.3571, allocations: 5.188 kB / 0.5836 GB, free: 25.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.872e-05/0.3572, allocations: 9.828 kB / 0.5836 GB, free: 25.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3572, allocations: 1.031 kB / 0.5836 GB, free: 25.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.908e-05/0.3572, allocations: 38.14 kB / 0.5837 GB, free: 25.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3573, allocations: 8.625 kB / 0.5837 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.3573, allocations: 3.984 kB / 0.5837 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.3573, allocations: 10.25 kB / 0.5837 GB, free: 25.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.131e-05/0.3573, allocations: 6.688 kB / 0.5837 GB, free: 25.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.167e-06/0.3574, allocations: 0.6562 kB / 0.5837 GB, free: 25.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.256e-05/0.3574, allocations: 1.25 kB / 0.5837 GB, free: 25.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-06/0.3574, allocations: 0 / 0.5837 GB, free: 25.59 MB / 446.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 4.394e-05/0.3574, allocations: 113 kB / 0.5838 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.773e-06/0.3574, allocations: 1 kB / 0.5838 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.689e-05/0.3575, allocations: 49.22 kB / 0.5838 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3575, allocations: 1.125 kB / 0.5839 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3575, allocations: 0 / 0.5839 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3575, allocations: 0 / 0.5839 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.048e-05/0.3576, allocations: 159.1 kB / 0.584 GB, free: 25.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3576, allocations: 0 / 0.584 GB, free: 25.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.087e-05/0.3576, allocations: 4.062 kB / 0.584 GB, free: 25.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.3576, allocations: 0.625 kB / 0.584 GB, free: 25.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.3577, allocations: 3.938 kB / 0.584 GB, free: 25.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.3577, allocations: 2.25 kB / 0.584 GB, free: 25.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3577, allocations: 0 / 0.584 GB, free: 25.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.028e-05/0.3577, allocations: 68 kB / 0.5841 GB, free: 25.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.695e-05/0.3578, allocations: 78.89 kB / 0.5842 GB, free: 25.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.3578, allocations: 5.25 kB / 0.5842 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.738e-06/0.3578, allocations: 0 / 0.5842 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.3578, allocations: 1.188 kB / 0.5842 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.3578, allocations: 6.047 kB / 0.5842 GB, free: 25.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.258e-05/0.3578, allocations: 75.28 kB / 0.5842 GB, free: 24.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3578, allocations: 1.5 kB / 0.5842 GB, free: 24.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001773/0.358, allocations: 5.438 kB / 0.5842 GB, free: 24.98 MB / 446.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.0001386/0.3582, allocations: 103.3 kB / 0.5843 GB, free: 24.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.063e-05/0.3583, allocations: 7.688 kB / 0.5843 GB, free: 24.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3583, allocations: 3.938 kB / 0.5844 GB, free: 24.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.647e-05/0.3583, allocations: 8.609 kB / 0.5844 GB, free: 24.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.3584, allocations: 4.969 kB / 0.5844 GB, free: 24.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000184/0.3586, allocations: 92.55 kB / 0.5845 GB, free: 24.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.3587, allocations: 0.6743 MB / 0.5851 GB, free: 24.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.344e-05/0.3588, allocations: 6.312 kB / 0.5851 GB, free: 24.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.3588, allocations: 8.812 kB / 0.5851 GB, free: 24.07 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3588, allocations: 0.8125 kB / 0.5851 GB, free: 24.07 MB / 446.1 MB Notification: Performance of Templates: time 0.002527/0.3613, allocations: 317.8 kB / 0.5854 GB, free: 23.92 MB / 446.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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)