Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 109.3 kB / 15.99 MB, free: 6.344 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.001358/0.001358, allocations: 197.9 kB / 16.91 MB, free: 6.176 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.37/1.37, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8319/0.8319, allocations: 135.1 MB / 425.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 67.84 kB / 0.5055 GB, free: 8.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.363, allocations: 80.92 MB / 0.5846 GB, free: 25.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002377/0.3654, allocations: 1.57 MB / 0.5861 GB, free: 24.21 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000298/0.3657, allocations: 117.4 kB / 0.5862 GB, free: 24.12 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.831e-05/0.3658, allocations: 4.406 kB / 0.5862 GB, free: 24.12 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.805e-05/0.3658, allocations: 7.922 kB / 0.5862 GB, free: 24.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.175e-05/0.3659, allocations: 0 / 0.5862 GB, free: 24.11 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.3661, allocations: 18.45 kB / 0.5862 GB, free: 24.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.729e-05/0.3662, allocations: 32.3 kB / 0.5863 GB, free: 24.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.807e-05/0.3663, allocations: 12.83 kB / 0.5863 GB, free: 24.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.006e-05/0.3663, allocations: 13.42 kB / 0.5863 GB, free: 24.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.43e-05/0.3664, allocations: 12.84 kB / 0.5863 GB, free: 24.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.3664, allocations: 3.531 kB / 0.5863 GB, free: 24.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.637e-05/0.3665, allocations: 14.27 kB / 0.5863 GB, free: 24.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.3665, allocations: 1.062 kB / 0.5863 GB, free: 24.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.3665, allocations: 20.31 kB / 0.5863 GB, free: 24.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.028e-05/0.3666, allocations: 25.66 kB / 0.5864 GB, free: 24.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3666, allocations: 6.25 kB / 0.5864 GB, free: 24.01 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3666, allocations: 0 / 0.5864 GB, free: 24.01 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.3666, allocations: 1.219 kB / 0.5864 GB, free: 24.01 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003771/0.367, allocations: 345.4 kB / 0.5867 GB, free: 23.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3671, allocations: 12.14 kB / 0.5867 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.012e-05/0.3671, allocations: 2.469 kB / 0.5867 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.534e-05/0.3672, allocations: 177.6 kB / 0.5869 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.3672, allocations: 3.031 kB / 0.5869 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-06/0.3672, allocations: 1.531 kB / 0.5869 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.3674, allocations: 59.3 kB / 0.5869 GB, free: 23.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3674, allocations: 192 / 0.5869 GB, free: 23.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3674, allocations: 3.938 kB / 0.5869 GB, free: 23.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3674, allocations: 1.312 kB / 0.587 GB, free: 23.38 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.3676, allocations: 42.39 kB / 0.587 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002824/0.3679, allocations: 263.9 kB / 0.5872 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.3682, allocations: 60.48 kB / 0.5873 GB, free: 23.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.941e-05/0.3683, allocations: 32.45 kB / 0.5873 GB, free: 23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.093e-05/0.3684, allocations: 80.86 kB / 0.5874 GB, free: 22.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.272e-05/0.3684, allocations: 34.25 kB / 0.5874 GB, free: 22.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.3685, allocations: 0 / 0.5874 GB, free: 22.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003401/0.3688, allocations: 93.88 kB / 0.5875 GB, free: 22.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.3688, allocations: 52.41 kB / 0.5876 GB, free: 22.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.363e-05/0.3689, allocations: 104.2 kB / 0.5877 GB, free: 22.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.794e-06/0.3689, allocations: 27.17 kB / 0.5877 GB, free: 22.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.565e-05/0.3689, allocations: 89.45 kB / 0.5878 GB, free: 22.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/0.3689, allocations: 9.203 kB / 0.5878 GB, free: 22.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.369, allocations: 17.61 kB / 0.5878 GB, free: 22.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.956e-05/0.369, allocations: 316.6 kB / 0.5881 GB, free: 22.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.612e-05/0.3691, allocations: 20.02 kB / 0.5881 GB, free: 22.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.388e-05/0.3692, allocations: 18.97 kB / 0.5882 GB, free: 22.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.3694, allocations: 48.44 kB / 0.5882 GB, free: 22.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.3694, allocations: 3.938 kB / 0.5882 GB, free: 22.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001873/0.3696, allocations: 80.61 kB / 0.5883 GB, free: 22.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.3696, allocations: 9.031 kB / 0.5883 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3696, allocations: 0 / 0.5883 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.3696, allocations: 1.344 kB / 0.5883 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.835e-05/0.3697, allocations: 11.02 kB / 0.5883 GB, free: 22.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.3697, allocations: 5.031 kB / 0.5883 GB, free: 22.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.491e-05/0.3698, allocations: 12.42 kB / 0.5883 GB, free: 22.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.3698, allocations: 2.094 kB / 0.5883 GB, free: 22.05 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 5.242e-05/0.3698, allocations: 116 kB / 0.5884 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.3699, allocations: 1.281 kB / 0.5884 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002257/0.3701, allocations: 89.64 kB / 0.5885 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3701, allocations: 0 / 0.5885 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3701, allocations: 0 / 0.5885 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3701, allocations: 2.688 kB / 0.5885 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.3702, allocations: 164.2 kB / 0.5887 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3702, allocations: 0 / 0.5887 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.158e-05/0.3703, allocations: 13.86 kB / 0.5887 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3703, allocations: 0 / 0.5887 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.3703, allocations: 4 kB / 0.5887 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.3703, allocations: 1.5 kB / 0.5887 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3703, allocations: 0 / 0.5887 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.3706, allocations: 181.7 kB / 0.5889 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.3706, allocations: 81.05 kB / 0.5889 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.3706, allocations: 2.719 kB / 0.589 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.163e-05/0.3707, allocations: 7.984 kB / 0.589 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.3707, allocations: 6.938 kB / 0.589 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.3708, allocations: 1.406 kB / 0.589 GB, free: 21.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.884e-05/0.3708, allocations: 84.98 kB / 0.589 GB, free: 21.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3708, allocations: 0 / 0.589 GB, free: 21.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.371, allocations: 8 kB / 0.5891 GB, free: 21.3 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001187/0.3711, allocations: 101.3 kB / 0.5892 GB, free: 21.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002121/0.3713, allocations: 42.86 kB / 0.5892 GB, free: 21.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3714, allocations: 1 kB / 0.5892 GB, free: 21.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.917e-05/0.3715, allocations: 29.72 kB / 0.5892 GB, free: 21.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.3717, allocations: 10.41 kB / 0.5892 GB, free: 21.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002651/0.372, allocations: 143.9 kB / 0.5894 GB, free: 21.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.075e-05/0.3721, allocations: 0.6798 MB / 0.59 GB, free: 20.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.3721, allocations: 10.06 kB / 0.59 GB, free: 20.32 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3722, allocations: 3.938 kB / 0.59 GB, free: 20.31 MB / 446.1 MB Notification: Performance of Templates: time 0.002129/0.3743, allocations: 0.7415 MB / 0.5908 GB, free: 19.96 MB / 446.1 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)