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.001642/0.001642, allocations: 110.7 kB / 16.37 MB, free: 6.438 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.00185/0.00185, allocations: 197.8 kB / 17.31 MB, free: 5.777 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8627/0.8627, allocations: 135.1 MB / 426.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 59.91 kB / 0.5068 GB, free: 7.672 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3494, allocations: 80.91 MB / 0.5858 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002398/0.3518, allocations: 1.51 MB / 0.5872 GB, free: 24.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003374/0.3522, allocations: 129.3 kB / 0.5874 GB, free: 24.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.325e-05/0.3522, allocations: 1.781 kB / 0.5874 GB, free: 24.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.665e-05/0.3523, allocations: 3.938 kB / 0.5874 GB, free: 24.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.277e-05/0.3523, allocations: 4.969 kB / 0.5874 GB, free: 24.32 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002114/0.3526, allocations: 19.16 kB / 0.5874 GB, free: 24.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.298e-05/0.3526, allocations: 36.3 kB / 0.5874 GB, free: 24.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.3527, allocations: 5.719 kB / 0.5874 GB, free: 24.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.626e-05/0.3528, allocations: 16.88 kB / 0.5874 GB, free: 24.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.158e-05/0.3529, allocations: 16.23 kB / 0.5875 GB, free: 24.26 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.3529, allocations: 3.312 kB / 0.5875 GB, free: 24.26 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.86e-05/0.353, allocations: 16.12 kB / 0.5875 GB, free: 24.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.612e-05/0.353, allocations: 5.094 kB / 0.5875 GB, free: 24.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.186e-05/0.353, allocations: 14.27 kB / 0.5875 GB, free: 24.23 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.3531, allocations: 35.95 kB / 0.5875 GB, free: 24.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3531, allocations: 1.344 kB / 0.5875 GB, free: 24.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3532, allocations: 0 / 0.5875 GB, free: 24.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.3532, allocations: 0 / 0.5875 GB, free: 24.21 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.0004337/0.3536, allocations: 345 kB / 0.5879 GB, free: 23.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3537, allocations: 9.859 kB / 0.5879 GB, free: 23.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.872e-05/0.3537, allocations: 4.281 kB / 0.5879 GB, free: 23.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.846e-05/0.3538, allocations: 177.3 kB / 0.588 GB, free: 23.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.3538, allocations: 2.688 kB / 0.588 GB, free: 23.63 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.3538, allocations: 1.531 kB / 0.5881 GB, free: 23.63 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.354, allocations: 62.66 kB / 0.5881 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.354, allocations: 192 / 0.5881 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.3541, allocations: 3.938 kB / 0.5881 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.3541, allocations: 1.75 kB / 0.5881 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.3542, allocations: 44.17 kB / 0.5882 GB, free: 23.56 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003488/0.3546, allocations: 259.2 kB / 0.5884 GB, free: 23.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/0.3549, allocations: 67.66 kB / 0.5885 GB, free: 23.22 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.823e-05/0.355, allocations: 23.47 kB / 0.5885 GB, free: 23.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.709e-05/0.3551, allocations: 86.84 kB / 0.5886 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.3552, allocations: 31.91 kB / 0.5886 GB, free: 23.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.3552, allocations: 0 / 0.5886 GB, free: 23.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003614/0.3555, allocations: 99.19 kB / 0.5887 GB, free: 23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.3556, allocations: 51.97 kB / 0.5887 GB, free: 22.94 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.52e-05/0.3556, allocations: 100.4 kB / 0.5888 GB, free: 22.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.838e-06/0.3556, allocations: 31.05 kB / 0.5889 GB, free: 22.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.367e-05/0.3557, allocations: 89.5 kB / 0.589 GB, free: 22.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.3557, allocations: 5.188 kB / 0.589 GB, free: 22.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.3557, allocations: 16.88 kB / 0.589 GB, free: 22.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.257e-05/0.3558, allocations: 313.2 kB / 0.5893 GB, free: 22.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.789e-05/0.3559, allocations: 23.84 kB / 0.5893 GB, free: 22.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.488e-05/0.356, allocations: 18.86 kB / 0.5893 GB, free: 22.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.3561, allocations: 43.06 kB / 0.5894 GB, free: 22.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3562, allocations: 6.094 kB / 0.5894 GB, free: 22.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001944/0.3564, allocations: 77.19 kB / 0.5894 GB, free: 22.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3564, allocations: 4.438 kB / 0.5894 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3564, allocations: 1.625 kB / 0.5894 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.3564, allocations: 3.984 kB / 0.5895 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.007e-05/0.3565, allocations: 8.219 kB / 0.5895 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.3565, allocations: 2.031 kB / 0.5895 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.615e-05/0.3566, allocations: 7.234 kB / 0.5895 GB, free: 22.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.3566, allocations: 5.375 kB / 0.5895 GB, free: 22.26 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.458e-05/0.3566, allocations: 122.1 kB / 0.5896 GB, free: 22.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.561e-05/0.3567, allocations: 2.938 kB / 0.5896 GB, free: 22.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002457/0.3569, allocations: 82.8 kB / 0.5897 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3569, allocations: 6.859 kB / 0.5897 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.357, allocations: 1.562 kB / 0.5897 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.357, allocations: 0 / 0.5897 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.3571, allocations: 168.2 kB / 0.5898 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3571, allocations: 3.984 kB / 0.5898 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.075e-05/0.3572, allocations: 7.062 kB / 0.5898 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3572, allocations: 1.469 kB / 0.5899 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.3572, allocations: 5.766 kB / 0.5899 GB, free: 21.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3572, allocations: 1.344 kB / 0.5899 GB, free: 21.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3572, allocations: 0 / 0.5899 GB, free: 21.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.3574, allocations: 171.6 kB / 0.59 GB, free: 21.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.72e-05/0.3574, allocations: 83.02 kB / 0.5901 GB, free: 21.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.3575, allocations: 10.39 kB / 0.5901 GB, free: 21.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.967e-05/0.3576, allocations: 3.625 kB / 0.5901 GB, free: 21.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.3576, allocations: 16.12 kB / 0.5901 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-06/0.3576, allocations: 1.375 kB / 0.5901 GB, free: 21.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.544e-05/0.3577, allocations: 81.67 kB / 0.5902 GB, free: 21.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3577, allocations: 1.156 kB / 0.5902 GB, free: 21.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002339/0.3579, allocations: 11.69 kB / 0.5902 GB, free: 21.5 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.0001063/0.358, allocations: 103.7 kB / 0.5903 GB, free: 21.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.3582, allocations: 41.02 kB / 0.5904 GB, free: 21.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3583, allocations: 1.125 kB / 0.5904 GB, free: 21.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.062e-05/0.3584, allocations: 27.05 kB / 0.5904 GB, free: 21.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.3586, allocations: 20.3 kB / 0.5904 GB, free: 21.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.3589, allocations: 106.2 kB / 0.5905 GB, free: 21.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.066e-05/0.359, allocations: 0.6804 MB / 0.5912 GB, free: 20.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.732e-05/0.359, allocations: 1.594 kB / 0.5912 GB, free: 20.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.324e-05/0.359, allocations: 11.19 kB / 0.5912 GB, free: 20.55 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.359, allocations: 1.094 kB / 0.5912 GB, free: 20.55 MB / 446.1 MB Notification: Performance of Templates: time 0.002838/0.3619, allocations: 0.7157 MB / 0.5919 GB, free: 19.93 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 gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)