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.001015/0.001015, allocations: 108.4 kB / 16.37 MB, free: 6.477 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.0009935/0.0009935, 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8153/0.8153, allocations: 135.1 MB / 426.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 63.91 kB / 0.5068 GB, free: 7.703 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3667, allocations: 80.9 MB / 0.5858 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003151/0.37, allocations: 1.506 MB / 0.5872 GB, free: 24.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003506/0.3703, allocations: 128.6 kB / 0.5874 GB, free: 24.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.976e-05/0.3704, allocations: 2.344 kB / 0.5874 GB, free: 24.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.3704, allocations: 7.875 kB / 0.5874 GB, free: 24.28 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.994e-05/0.3705, allocations: 5.266 kB / 0.5874 GB, free: 24.27 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.3707, allocations: 21.8 kB / 0.5874 GB, free: 24.26 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.485e-05/0.3708, allocations: 28.55 kB / 0.5874 GB, free: 24.24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.3709, allocations: 8.703 kB / 0.5874 GB, free: 24.24 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.731e-05/0.371, allocations: 12.64 kB / 0.5874 GB, free: 24.23 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.248e-05/0.371, allocations: 18.7 kB / 0.5875 GB, free: 24.22 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.3711, allocations: 2.25 kB / 0.5875 GB, free: 24.22 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.628e-05/0.3711, allocations: 18.58 kB / 0.5875 GB, free: 24.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.612e-05/0.3712, allocations: 9.406 kB / 0.5875 GB, free: 24.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.3712, allocations: 16.42 kB / 0.5875 GB, free: 24.19 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.3713, allocations: 32.98 kB / 0.5875 GB, free: 24.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3713, allocations: 0 / 0.5875 GB, free: 24.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3713, allocations: 5.312 kB / 0.5875 GB, free: 24.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.778e-06/0.3714, allocations: 0 / 0.5875 GB, free: 24.16 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.0004205/0.3718, allocations: 343.7 kB / 0.5879 GB, free: 23.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3718, allocations: 15.09 kB / 0.5879 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.3719, allocations: 3.344 kB / 0.5879 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.076e-05/0.372, allocations: 173.3 kB / 0.588 GB, free: 23.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.372, allocations: 3.5 kB / 0.5881 GB, free: 23.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.372, allocations: 5.5 kB / 0.5881 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.3722, allocations: 54.86 kB / 0.5881 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3722, allocations: 4.172 kB / 0.5881 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.3722, allocations: 3.938 kB / 0.5881 GB, free: 23.53 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3722, allocations: 2.125 kB / 0.5881 GB, free: 23.53 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.3724, allocations: 42.8 kB / 0.5882 GB, free: 23.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003107/0.3727, allocations: 259.1 kB / 0.5884 GB, free: 23.22 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.373, allocations: 63.84 kB / 0.5885 GB, free: 23.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.796e-05/0.3731, allocations: 24.47 kB / 0.5885 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.3733, allocations: 91.27 kB / 0.5886 GB, free: 23.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.327e-05/0.3733, allocations: 30.56 kB / 0.5886 GB, free: 23.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.3733, allocations: 0 / 0.5886 GB, free: 23.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003421/0.3736, allocations: 94.52 kB / 0.5887 GB, free: 22.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.3737, allocations: 57.45 kB / 0.5888 GB, free: 22.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.431e-05/0.3737, allocations: 100.3 kB / 0.5888 GB, free: 22.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.456e-06/0.3737, allocations: 25.7 kB / 0.5889 GB, free: 22.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.43e-05/0.3738, allocations: 85.86 kB / 0.589 GB, free: 22.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.3738, allocations: 10.36 kB / 0.589 GB, free: 22.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.3738, allocations: 17.19 kB / 0.589 GB, free: 22.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.541e-05/0.3739, allocations: 313.1 kB / 0.5893 GB, free: 22.33 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.364e-05/0.374, allocations: 22.78 kB / 0.5893 GB, free: 22.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.192e-05/0.3741, allocations: 19.64 kB / 0.5893 GB, free: 22.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.3742, allocations: 45.03 kB / 0.5894 GB, free: 22.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3742, allocations: 7.875 kB / 0.5894 GB, free: 22.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001875/0.3744, allocations: 76.44 kB / 0.5894 GB, free: 22.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.3744, allocations: 4.844 kB / 0.5894 GB, free: 22.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3744, allocations: 1.281 kB / 0.5894 GB, free: 22.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3745, allocations: 0.7188 kB / 0.5894 GB, free: 22.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.622e-05/0.3745, allocations: 12.2 kB / 0.5895 GB, free: 22.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3746, allocations: 1.562 kB / 0.5895 GB, free: 22.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.116e-05/0.3746, allocations: 7.797 kB / 0.5895 GB, free: 22.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.463e-06/0.3746, allocations: 5.25 kB / 0.5895 GB, free: 22.21 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.655e-05/0.3747, allocations: 118 kB / 0.5896 GB, free: 22.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.3747, allocations: 2.188 kB / 0.5896 GB, free: 22.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002299/0.3749, allocations: 84.3 kB / 0.5897 GB, free: 22.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.375, allocations: 3.938 kB / 0.5897 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.375, allocations: 1.5 kB / 0.5897 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.375, allocations: 0 / 0.5897 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.3751, allocations: 172.7 kB / 0.5898 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3751, allocations: 1.375 kB / 0.5898 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.825e-05/0.3752, allocations: 13.98 kB / 0.5899 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3752, allocations: 1.719 kB / 0.5899 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.3753, allocations: 0 / 0.5899 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3753, allocations: 0 / 0.5899 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.3753, allocations: 1.375 kB / 0.5899 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.3755, allocations: 174.9 kB / 0.59 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.22e-05/0.3755, allocations: 86.89 kB / 0.5901 GB, free: 21.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.3755, allocations: 0.5625 kB / 0.5901 GB, free: 21.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.901e-05/0.3756, allocations: 17.61 kB / 0.5901 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.199e-05/0.3757, allocations: 6.641 kB / 0.5901 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.3757, allocations: 1.312 kB / 0.5901 GB, free: 21.53 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.592e-05/0.3757, allocations: 82.5 kB / 0.5902 GB, free: 21.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3757, allocations: 1.281 kB / 0.5902 GB, free: 21.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000217/0.376, allocations: 7.656 kB / 0.5902 GB, free: 21.45 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.0001363/0.3761, allocations: 99.84 kB / 0.5903 GB, free: 21.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002126/0.3763, allocations: 49.78 kB / 0.5904 GB, free: 21.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3763, allocations: 3.938 kB / 0.5904 GB, free: 21.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.637e-05/0.3764, allocations: 23.55 kB / 0.5904 GB, free: 21.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.3768, allocations: 10.22 kB / 0.5904 GB, free: 21.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/0.3772, allocations: 113 kB / 0.5905 GB, free: 21.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.3773, allocations: 0.6752 MB / 0.5912 GB, free: 20.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.705e-05/0.3773, allocations: 7.484 kB / 0.5912 GB, free: 20.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.3774, allocations: 13.09 kB / 0.5912 GB, free: 20.5 MB / 446.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3774, allocations: 2.375 kB / 0.5912 GB, free: 20.5 MB / 446.1 MB Notification: Performance of Templates: time 0.002805/0.3802, allocations: 0.7095 MB / 0.5919 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)