Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009074/0.0009075, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7151/0.7151, allocations: 130.7 MB / 138.7 MB, free: 3.516 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 221.5 MB / 391.8 MB, free: 14.24 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.0008437/0.0008438, allocations: 94.08 kB / 473.9 MB, free: 4.5 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.922e-05/1.924e-05, allocations: 8 kB / 0.5485 GB, free: 13.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4752/0.4752, allocations: 81.56 MB / 0.6282 GB, free: 42.82 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.6232, allocations: 110.6 MB / 0.7362 GB, free: 156 kB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.6235, allocations: 73.19 kB / 0.7363 GB, free: 84 kB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.002652/0.6262, allocations: 0.9433 MB / 0.7372 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.012e-06/0.6262, allocations: 0 / 0.7372 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.6262, allocations: 4 kB / 0.7372 GB, free: 15.13 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003725/0.6266, allocations: 334.5 kB / 0.7375 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.6266, allocations: 12.03 kB / 0.7375 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.6267, allocations: 3.906 kB / 0.7375 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.6268, allocations: 167 kB / 0.7377 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.6268, allocations: 4 kB / 0.7377 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-06/0.6268, allocations: 0 / 0.7377 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.159e-05/0.6269, allocations: 15.98 kB / 0.7377 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.432e-05/0.627, allocations: 50.44 kB / 0.7378 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.627, allocations: 0 / 0.7378 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.6271, allocations: 9.391 kB / 0.7378 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.6271, allocations: 0 / 0.7378 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004244/0.6275, allocations: 257.5 kB / 0.738 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.6277, allocations: 46.55 kB / 0.738 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.816e-05/0.6278, allocations: 8.922 kB / 0.7381 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.6279, allocations: 81.11 kB / 0.7381 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.6279, allocations: 44.06 kB / 0.7382 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.628, allocations: 0 / 0.7382 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0001837/0.6281, allocations: 49.69 kB / 0.7382 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.6282, allocations: 51.41 kB / 0.7383 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.317e-05/0.6283, allocations: 96.98 kB / 0.7384 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.6283, allocations: 25.7 kB / 0.7384 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.6283, allocations: 84.14 kB / 0.7385 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.6284, allocations: 3.906 kB / 0.7385 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.6284, allocations: 0 / 0.7385 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.6285, allocations: 323.8 kB / 0.7388 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.743e-05/0.6285, allocations: 4 kB / 0.7388 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.537e-05/0.6285, allocations: 8 kB / 0.7388 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.74e-05/0.6286, allocations: 11.98 kB / 0.7388 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.6286, allocations: 4 kB / 0.7388 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.558e-05/0.6287, allocations: 49.62 kB / 0.7389 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.6287, allocations: 4 kB / 0.7389 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.6287, allocations: 0 / 0.7389 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.6287, allocations: 0 / 0.7389 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.307e-05/0.6288, allocations: 19.98 kB / 0.7389 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.6288, allocations: 3.938 kB / 0.7389 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.086e-05/0.6289, allocations: 11.92 kB / 0.7389 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.6289, allocations: 4 kB / 0.7389 GB, free: 13.17 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.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.701e-05/0.629, allocations: 104.9 kB / 0.739 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.359e-05/0.629, allocations: 3.906 kB / 0.739 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.6292, allocations: 65.8 kB / 0.7391 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.6292, allocations: 0 / 0.7391 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.6292, allocations: 0 / 0.7391 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6292, allocations: 7.938 kB / 0.7391 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.6293, allocations: 138.2 kB / 0.7392 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.6294, allocations: 0 / 0.7392 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.972e-05/0.6294, allocations: 15.98 kB / 0.7392 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.6294, allocations: 0 / 0.7392 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.6295, allocations: 0 / 0.7392 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.6295, allocations: 0 / 0.7392 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.6295, allocations: 8.406 kB / 0.7392 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.6296, allocations: 147.5 kB / 0.7394 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.6297, allocations: 81.06 kB / 0.7394 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.6297, allocations: 0 / 0.7394 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-05/0.6298, allocations: 11.98 kB / 0.7395 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.6298, allocations: 4 kB / 0.7395 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.6299, allocations: 11.98 kB / 0.7395 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.42e-05/0.6299, allocations: 79.28 kB / 0.7395 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6299, allocations: 0 / 0.7395 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002122/0.6301, allocations: 15.94 kB / 0.7396 GB, free: 12.4 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.y,fac.u) * Number of discrete 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 (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.0001545/0.6303, allocations: 108.8 kB / 0.7397 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 8.714e-05/0.6304, allocations: 23.98 kB / 0.7397 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6304, allocations: 0 / 0.7397 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 2.704e-05/0.6304, allocations: 8 kB / 0.7397 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.6306, allocations: 10.55 kB / 0.7397 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002102/0.6308, allocations: 60 kB / 0.7398 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.6311, allocations: 0.6846 MB / 0.7404 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 3.434e-05/0.6311, allocations: 7.953 kB / 0.7404 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.337e-05/0.6312, allocations: 11.38 kB / 0.7405 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.6312, allocations: 0 / 0.7405 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of Templates: time 0.002448/0.6336, allocations: 0.5593 MB / 0.741 GB, free: 10.88 MB / 0.5261 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)