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.001154/0.001154, allocations: 105.6 kB / 16.35 MB, free: 6.34 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.001205/0.001205, allocations: 198.2 kB / 17.3 MB, free: 5.879 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.333/1.333, 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.7793/0.7793, allocations: 132.2 MB / 423.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 63.91 kB / 0.5032 GB, free: 10.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3968, allocations: 80.19 MB / 0.5815 GB, free: 27.74 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001745/0.3985, allocations: 0.5792 MB / 0.5821 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002484/0.3988, allocations: 47.36 kB / 0.5821 GB, free: 27.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.794e-05/0.3988, allocations: 0 / 0.5821 GB, free: 27.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.433e-05/0.3989, allocations: 3.938 kB / 0.5821 GB, free: 27.28 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.3989, allocations: 0 / 0.5821 GB, free: 27.28 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.3991, allocations: 5.812 kB / 0.5821 GB, free: 27.28 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.879e-05/0.3992, allocations: 14.78 kB / 0.5821 GB, free: 27.27 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.86e-05/0.3992, allocations: 2.188 kB / 0.5821 GB, free: 27.27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.266e-05/0.3992, allocations: 0 / 0.5821 GB, free: 27.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.126e-05/0.3993, allocations: 5.906 kB / 0.5821 GB, free: 27.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-06/0.3993, allocations: 1.094 kB / 0.5821 GB, free: 27.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.3993, allocations: 10.25 kB / 0.5821 GB, free: 27.26 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.017e-05/0.3994, allocations: 5.094 kB / 0.5822 GB, free: 27.26 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.931e-05/0.3994, allocations: 0 / 0.5822 GB, free: 27.26 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.039e-05/0.3995, allocations: 12.09 kB / 0.5822 GB, free: 27.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3995, allocations: 0 / 0.5822 GB, free: 27.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3995, allocations: 1.5 kB / 0.5822 GB, free: 27.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.3995, allocations: 0.8125 kB / 0.5822 GB, free: 27.25 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.0002433/0.3998, allocations: 320.4 kB / 0.5825 GB, free: 26.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3998, allocations: 10.62 kB / 0.5825 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.3998, allocations: 4.875 kB / 0.5825 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.15e-05/0.3999, allocations: 161.1 kB / 0.5826 GB, free: 26.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3999, allocations: 1.625 kB / 0.5826 GB, free: 26.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.3999, allocations: 6.094 kB / 0.5826 GB, free: 26.69 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.4, allocations: 35.62 kB / 0.5827 GB, free: 26.65 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.4001, allocations: 192 / 0.5827 GB, free: 26.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.4001, allocations: 7.938 kB / 0.5827 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.4001, allocations: 0.9688 kB / 0.5827 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.99e-05/0.4001, allocations: 2.938 kB / 0.5827 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.4002, allocations: 156.8 kB / 0.5828 GB, free: 26.45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.412e-05/0.4003, allocations: 28.55 kB / 0.5829 GB, free: 26.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.613e-05/0.4003, allocations: 7.672 kB / 0.5829 GB, free: 26.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.4004, allocations: 84.81 kB / 0.583 GB, free: 26.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.411e-05/0.4005, allocations: 31.19 kB / 0.583 GB, free: 26.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.4005, allocations: 3.688 kB / 0.583 GB, free: 26.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001337/0.4006, allocations: 41.33 kB / 0.583 GB, free: 26.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.066e-05/0.4006, allocations: 56.84 kB / 0.5831 GB, free: 26.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.019e-05/0.4007, allocations: 89.86 kB / 0.5832 GB, free: 26.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-06/0.4007, allocations: 25.7 kB / 0.5832 GB, free: 26.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.102e-05/0.4007, allocations: 82.7 kB / 0.5833 GB, free: 25.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.4007, allocations: 7.984 kB / 0.5833 GB, free: 25.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.4007, allocations: 15.44 kB / 0.5833 GB, free: 25.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.191e-05/0.4008, allocations: 310.8 kB / 0.5836 GB, free: 25.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.189e-05/0.4008, allocations: 1.188 kB / 0.5836 GB, free: 25.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.4008, allocations: 2.312 kB / 0.5836 GB, free: 25.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.853e-05/0.4009, allocations: 15.86 kB / 0.5836 GB, free: 25.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4009, allocations: 0 / 0.5836 GB, free: 25.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.137e-05/0.4009, allocations: 42.06 kB / 0.5837 GB, free: 25.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.4009, allocations: 7.719 kB / 0.5837 GB, free: 25.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.401, allocations: 7.406 kB / 0.5837 GB, free: 25.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.401, allocations: 3.938 kB / 0.5837 GB, free: 25.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.182e-05/0.401, allocations: 6.25 kB / 0.5837 GB, free: 25.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.401, allocations: 1.281 kB / 0.5837 GB, free: 25.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.375e-05/0.4011, allocations: 0 / 0.5837 GB, free: 25.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-06/0.4011, allocations: 1.375 kB / 0.5837 GB, free: 25.55 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.506e-05/0.4011, allocations: 114.1 kB / 0.5838 GB, free: 25.44 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-06/0.4011, allocations: 1.188 kB / 0.5838 GB, free: 25.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.712e-05/0.4012, allocations: 47.91 kB / 0.5838 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.4012, allocations: 0 / 0.5838 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4012, allocations: 1.312 kB / 0.5838 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.4012, allocations: 0.7188 kB / 0.5838 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.603e-05/0.4013, allocations: 149.9 kB / 0.584 GB, free: 25.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.4013, allocations: 1.219 kB / 0.584 GB, free: 25.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.145e-05/0.4013, allocations: 6.281 kB / 0.584 GB, free: 25.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.4013, allocations: 5.109 kB / 0.584 GB, free: 25.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.4014, allocations: 16.8 kB / 0.584 GB, free: 25.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4014, allocations: 1.375 kB / 0.584 GB, free: 25.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4014, allocations: 4 kB / 0.584 GB, free: 25.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.494e-05/0.4014, allocations: 59.77 kB / 0.5841 GB, free: 25.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.955e-05/0.4015, allocations: 82.22 kB / 0.5841 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.4015, allocations: 5.375 kB / 0.5842 GB, free: 25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.109e-05/0.4015, allocations: 1.844 kB / 0.5842 GB, free: 25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.013e-05/0.4015, allocations: 1.281 kB / 0.5842 GB, free: 25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.4015, allocations: 1.094 kB / 0.5842 GB, free: 25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.492e-05/0.4016, allocations: 75.28 kB / 0.5842 GB, free: 24.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4016, allocations: 1.094 kB / 0.5842 GB, free: 24.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001928/0.4018, allocations: 4.062 kB / 0.5842 GB, free: 24.93 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.0001389/0.4019, allocations: 105.5 kB / 0.5843 GB, free: 24.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.09e-05/0.402, allocations: 15.31 kB / 0.5844 GB, free: 24.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.402, allocations: 0 / 0.5844 GB, free: 24.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.576e-05/0.402, allocations: 6.281 kB / 0.5844 GB, free: 24.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.4022, allocations: 1.281 kB / 0.5844 GB, free: 24.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000173/0.4023, allocations: 91 kB / 0.5844 GB, free: 24.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.983e-05/0.4025, allocations: 0.6715 MB / 0.5851 GB, free: 24.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.232e-05/0.4025, allocations: 2.188 kB / 0.5851 GB, free: 24.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.279e-05/0.4025, allocations: 8.75 kB / 0.5851 GB, free: 24.03 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4025, allocations: 1.906 kB / 0.5851 GB, free: 24.03 MB / 446.1 MB Notification: Performance of Templates: time 0.002191/0.4047, allocations: 321.1 kB / 0.5854 GB, free: 23.88 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 gbode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)