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.001185/0.001185, allocations: 105.2 kB / 15.99 MB, free: 6.352 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.001223/0.001223, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.241/1.241, allocations: 222.9 MB / 240.6 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7707/0.7707, allocations: 132.2 MB / 422.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 63.91 kB / 0.5019 GB, free: 12.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3233, allocations: 80.19 MB / 0.5802 GB, free: 26.98 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001771/0.3251, allocations: 0.6384 MB / 0.5809 GB, free: 26.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002133/0.3253, allocations: 59.59 kB / 0.5809 GB, free: 26.47 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.176e-05/0.3254, allocations: 0 / 0.5809 GB, free: 26.47 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.985e-05/0.3254, allocations: 1.125 kB / 0.5809 GB, free: 26.47 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.3254, allocations: 1.375 kB / 0.5809 GB, free: 26.47 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.3256, allocations: 4.125 kB / 0.5809 GB, free: 26.47 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.064e-05/0.3257, allocations: 2.375 kB / 0.5809 GB, free: 26.47 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.649e-05/0.3258, allocations: 5.359 kB / 0.5809 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.594e-05/0.3258, allocations: 2.469 kB / 0.5809 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.09e-05/0.3258, allocations: 5.375 kB / 0.5809 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.507e-06/0.3258, allocations: 0 / 0.5809 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.713e-05/0.3259, allocations: 4.719 kB / 0.5809 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.126e-05/0.3259, allocations: 9.297 kB / 0.5809 GB, free: 26.45 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.947e-05/0.3259, allocations: 5.969 kB / 0.5809 GB, free: 26.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 6.242e-05/0.326, allocations: 5.359 kB / 0.581 GB, free: 26.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.326, allocations: 3.031 kB / 0.581 GB, free: 26.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.326, allocations: 0 / 0.581 GB, free: 26.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.326, allocations: 0 / 0.581 GB, free: 26.45 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.0002342/0.3263, allocations: 316.3 kB / 0.5813 GB, free: 26.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3263, allocations: 9.625 kB / 0.5813 GB, free: 26.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.734e-05/0.3263, allocations: 2.938 kB / 0.5813 GB, free: 26.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.163e-05/0.3264, allocations: 162.8 kB / 0.5814 GB, free: 25.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.3264, allocations: 5.75 kB / 0.5814 GB, free: 25.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.3264, allocations: 4.375 kB / 0.5814 GB, free: 25.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.389e-05/0.3265, allocations: 34.33 kB / 0.5815 GB, free: 25.85 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.3265, allocations: 192 / 0.5815 GB, free: 25.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.3265, allocations: 7.922 kB / 0.5815 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3266, allocations: 4.719 kB / 0.5815 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.456e-05/0.3266, allocations: 4.125 kB / 0.5815 GB, free: 25.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001009/0.3267, allocations: 151.8 kB / 0.5816 GB, free: 25.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.508e-05/0.3268, allocations: 25.28 kB / 0.5817 GB, free: 25.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.601e-05/0.3268, allocations: 12.92 kB / 0.5817 GB, free: 25.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.3269, allocations: 83.8 kB / 0.5817 GB, free: 25.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.3269, allocations: 32.12 kB / 0.5818 GB, free: 25.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/0.327, allocations: 1.375 kB / 0.5818 GB, free: 25.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001241/0.3271, allocations: 45.81 kB / 0.5818 GB, free: 25.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.3271, allocations: 58.78 kB / 0.5819 GB, free: 25.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.196e-05/0.3271, allocations: 89.86 kB / 0.582 GB, free: 25.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.582e-06/0.3272, allocations: 25.7 kB / 0.582 GB, free: 25.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.818e-06/0.3272, allocations: 80.14 kB / 0.5821 GB, free: 25.15 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.3272, allocations: 2.812 kB / 0.5821 GB, free: 25.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-05/0.3272, allocations: 12.47 kB / 0.5821 GB, free: 25.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.504e-05/0.3273, allocations: 320.1 kB / 0.5824 GB, free: 24.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.112e-05/0.3273, allocations: 2.469 kB / 0.5824 GB, free: 24.81 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-06/0.3273, allocations: 8.578 kB / 0.5824 GB, free: 24.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.798e-05/0.3273, allocations: 12.45 kB / 0.5824 GB, free: 24.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3273, allocations: 0 / 0.5824 GB, free: 24.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.007e-05/0.3274, allocations: 42 kB / 0.5824 GB, free: 24.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3274, allocations: 5.75 kB / 0.5825 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.3274, allocations: 0 / 0.5825 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.3274, allocations: 3.938 kB / 0.5825 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.742e-05/0.3275, allocations: 4.125 kB / 0.5825 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3275, allocations: 0 / 0.5825 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.32e-05/0.3275, allocations: 2.531 kB / 0.5825 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.3276, allocations: 1.375 kB / 0.5825 GB, free: 24.76 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.73e-05/0.3276, allocations: 118.2 kB / 0.5826 GB, free: 24.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-06/0.3276, allocations: 0 / 0.5826 GB, free: 24.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.838e-05/0.3277, allocations: 46.44 kB / 0.5826 GB, free: 24.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.3277, allocations: 0 / 0.5826 GB, free: 24.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.3277, allocations: 1.281 kB / 0.5826 GB, free: 24.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.3277, allocations: 0 / 0.5826 GB, free: 24.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.443e-05/0.3278, allocations: 156 kB / 0.5828 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3278, allocations: 1.344 kB / 0.5828 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.088e-05/0.3278, allocations: 2.812 kB / 0.5828 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.3278, allocations: 1.344 kB / 0.5828 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.3278, allocations: 4.562 kB / 0.5828 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3278, allocations: 0 / 0.5828 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3278, allocations: 6.156 kB / 0.5828 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.588e-05/0.3279, allocations: 68.62 kB / 0.5829 GB, free: 24.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.39e-05/0.3279, allocations: 85.03 kB / 0.5829 GB, free: 24.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.3279, allocations: 5.094 kB / 0.5829 GB, free: 24.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.058e-05/0.328, allocations: 3.938 kB / 0.5829 GB, free: 24.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.219e-05/0.328, allocations: 6.609 kB / 0.5829 GB, free: 24.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.328, allocations: 0.8438 kB / 0.5829 GB, free: 24.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.116e-05/0.328, allocations: 75.28 kB / 0.583 GB, free: 24.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.328, allocations: 2.719 kB / 0.583 GB, free: 24.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001915/0.3282, allocations: 7.938 kB / 0.583 GB, free: 24.12 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.0001193/0.3283, allocations: 98.59 kB / 0.5831 GB, free: 24.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.773e-05/0.3284, allocations: 16.61 kB / 0.5831 GB, free: 24.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.3284, allocations: 2.375 kB / 0.5831 GB, free: 24.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.06e-05/0.3284, allocations: 3.906 kB / 0.5831 GB, free: 24.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.3286, allocations: 5.469 kB / 0.5832 GB, free: 24.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001603/0.3288, allocations: 107.3 kB / 0.5833 GB, free: 23.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.217e-05/0.3289, allocations: 0.6755 MB / 0.5839 GB, free: 23.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.349e-05/0.3289, allocations: 8.594 kB / 0.5839 GB, free: 23.19 MB / 446.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3289, allocations: 0 / 0.5839 GB, free: 23.19 MB / 446.1 MB Notification: Performance of Templates: time 0.001527/0.3304, allocations: 454.3 kB / 0.5844 GB, free: 22.99 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 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)