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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.006201/0.006201, allocations: 170.4 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8529/0.8529, allocations: 132.3 MB / 148.1 MB, free: 212 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 403.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009793/0.0009787, allocations: 97.67 kB / 485.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003657, allocations: 12 kB / 0.5641 GB, free: 2.066 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4486/0.449, allocations: 81.58 MB / 0.6438 GB, free: 39.3 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.6094, allocations: 110.4 MB / 0.7515 GB, free: 9.535 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.6097, allocations: 79.95 kB / 0.7516 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001099/0.6108, allocations: 0.5201 MB / 0.7521 GB, free: 8.934 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.605e-06/0.6108, allocations: 0 / 0.7521 GB, free: 8.934 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.628e-06/0.6109, allocations: 0 / 0.7521 GB, free: 8.934 MB / 0.5261 GB 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.0002811/0.6112, allocations: 325.5 kB / 0.7524 GB, free: 8.57 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.6112, allocations: 8.031 kB / 0.7525 GB, free: 8.562 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.6112, allocations: 4 kB / 0.7525 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.6114, allocations: 170.3 kB / 0.7526 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.6114, allocations: 0 / 0.7526 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-06/0.6114, allocations: 0 / 0.7526 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.6115, allocations: 29.7 kB / 0.7526 GB, free: 8.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.6115, allocations: 0 / 0.7526 GB, free: 8.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.6115, allocations: 0 / 0.7526 GB, free: 8.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.6115, allocations: 0 / 0.7526 GB, free: 8.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.009e-05/0.6116, allocations: 15.92 kB / 0.7527 GB, free: 8.305 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.6118, allocations: 149.6 kB / 0.7528 GB, free: 8.109 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 5.146e-05/0.6118, allocations: 26.61 kB / 0.7528 GB, free: 8.074 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001363/0.612, allocations: 85.03 kB / 0.7529 GB, free: 7.973 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.612, allocations: 34.62 kB / 0.7529 GB, free: 7.93 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.612, allocations: 0 / 0.7529 GB, free: 7.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001545/0.6122, allocations: 45.64 kB / 0.753 GB, free: 7.879 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.6122, allocations: 55.39 kB / 0.753 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.013e-05/0.6123, allocations: 85 kB / 0.7531 GB, free: 7.723 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.6123, allocations: 25.7 kB / 0.7531 GB, free: 7.691 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 2.728e-05/0.6123, allocations: 80.14 kB / 0.7532 GB, free: 7.609 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.6124, allocations: 11.84 kB / 0.7532 GB, free: 7.598 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.6124, allocations: 0 / 0.7532 GB, free: 7.598 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6125, allocations: 310.8 kB / 0.7535 GB, free: 7.285 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.195e-05/0.6125, allocations: 4.125 kB / 0.7535 GB, free: 7.281 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.868e-06/0.6125, allocations: 8 kB / 0.7535 GB, free: 7.273 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.903e-05/0.6126, allocations: 0 / 0.7535 GB, free: 7.273 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6126, allocations: 0 / 0.7535 GB, free: 7.273 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.18e-05/0.6126, allocations: 45.58 kB / 0.7536 GB, free: 7.223 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.6127, allocations: 8 kB / 0.7536 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.6127, allocations: 0 / 0.7536 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.6127, allocations: 0 / 0.7536 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.067e-05/0.6127, allocations: 4 kB / 0.7536 GB, free: 7.211 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.6128, allocations: 0 / 0.7536 GB, free: 7.211 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.547e-05/0.6128, allocations: 8.094 kB / 0.7536 GB, free: 7.203 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-06/0.6128, allocations: 0 / 0.7536 GB, free: 7.203 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.859e-05/0.6129, allocations: 113.8 kB / 0.7537 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.183e-06/0.6129, allocations: 3.953 kB / 0.7537 GB, free: 7.078 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.701e-05/0.613, allocations: 36.83 kB / 0.7537 GB, free: 7.039 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.613, allocations: 4 kB / 0.7538 GB, free: 7.035 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.613, allocations: 0 / 0.7538 GB, free: 7.035 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.613, allocations: 3.984 kB / 0.7538 GB, free: 7.031 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.776e-05/0.6131, allocations: 149.7 kB / 0.7539 GB, free: 6.836 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6131, allocations: 3.938 kB / 0.7539 GB, free: 6.832 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.007e-05/0.6131, allocations: 4 kB / 0.7539 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.6132, allocations: 3.953 kB / 0.7539 GB, free: 6.824 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.6132, allocations: 0 / 0.7539 GB, free: 6.824 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.6132, allocations: 7.984 kB / 0.7539 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.6132, allocations: 0 / 0.7539 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.205e-05/0.6133, allocations: 57.14 kB / 0.754 GB, free: 6.742 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.6133, allocations: 85.08 kB / 0.7541 GB, free: 6.641 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.6133, allocations: 11.94 kB / 0.7541 GB, free: 6.629 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.129e-05/0.6133, allocations: 0 / 0.7541 GB, free: 6.629 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.804e-05/0.6134, allocations: 4 kB / 0.7541 GB, free: 6.625 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.6134, allocations: 0 / 0.7541 GB, free: 6.625 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.167e-05/0.6134, allocations: 79.22 kB / 0.7541 GB, free: 6.547 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6134, allocations: 0 / 0.7541 GB, free: 6.547 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002103/0.6136, allocations: 4 kB / 0.7541 GB, free: 6.543 MB / 0.5261 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001913/0.6138, allocations: 119.2 kB / 0.7543 GB, free: 6.414 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 6.593e-05/0.6139, allocations: 8 kB / 0.7543 GB, free: 6.406 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.6139, allocations: 0 / 0.7543 GB, free: 6.406 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.499e-05/0.6139, allocations: 4 kB / 0.7543 GB, free: 6.402 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.011e-05/0.614, allocations: 4 kB / 0.7543 GB, free: 6.398 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002134/0.6143, allocations: 78.94 kB / 0.7544 GB, free: 6.293 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.6145, allocations: 0.6731 MB / 0.755 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 2.172e-05/0.6145, allocations: 16.02 kB / 0.755 GB, free: 5.578 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.51e-05/0.6145, allocations: 7.438 kB / 0.755 GB, free: 5.57 MB / 0.5261 GB Notification: Performance of SimCode: time 2.91e-07/0.6146, allocations: 3.938 kB / 0.755 GB, free: 5.566 MB / 0.5261 GB Notification: Performance of Templates: time 0.002137/0.6167, allocations: 300.3 kB / 0.7553 GB, free: 5.273 MB / 0.5261 GB 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)