Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/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-master/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_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.007853/0.007853, allocations: 170.6 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8446/0.8446, allocations: 135.2 MB / 151.1 MB, free: 13.83 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 223.2 MB / 406.9 MB, free: 3.227 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.0008803/0.0008803, allocations: 101.3 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003669, allocations: 16 kB / 0.5691 GB, free: 14.16 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4332/0.4336, allocations: 82.29 MB / 0.6495 GB, free: 36.17 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.5938, allocations: 110.6 MB / 0.7575 GB, free: 5.41 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.5941, allocations: 75.95 kB / 0.7576 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001169/0.5953, allocations: 0.5201 MB / 0.7581 GB, free: 4.812 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.903e-06/0.5953, allocations: 3.938 kB / 0.7581 GB, free: 4.809 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.5953, allocations: 0 / 0.7581 GB, free: 4.809 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.0002793/0.5956, allocations: 325.5 kB / 0.7584 GB, free: 4.445 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.5956, allocations: 8.031 kB / 0.7584 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.652e-05/0.5957, allocations: 8 kB / 0.7584 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.5958, allocations: 166.3 kB / 0.7586 GB, free: 4.23 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.5958, allocations: 0 / 0.7586 GB, free: 4.23 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.5959, allocations: 0 / 0.7586 GB, free: 4.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.596, allocations: 37.69 kB / 0.7586 GB, free: 4.188 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.596, allocations: 0 / 0.7586 GB, free: 4.188 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.596, allocations: 0 / 0.7586 GB, free: 4.188 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.596, allocations: 0 / 0.7586 GB, free: 4.188 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.843e-05/0.5961, allocations: 8 kB / 0.7586 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.5962, allocations: 149.6 kB / 0.7588 GB, free: 3.984 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.949e-05/0.5963, allocations: 30.53 kB / 0.7588 GB, free: 3.945 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.5964, allocations: 77.11 kB / 0.7589 GB, free: 3.852 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.5965, allocations: 34.62 kB / 0.7589 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.5965, allocations: 0 / 0.7589 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001465/0.5966, allocations: 45.69 kB / 0.7589 GB, free: 3.758 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.5967, allocations: 55.34 kB / 0.759 GB, free: 3.691 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.654e-05/0.5967, allocations: 85 kB / 0.7591 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.5968, allocations: 25.7 kB / 0.7591 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.267e-05/0.5968, allocations: 84.12 kB / 0.7592 GB, free: 3.484 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.5968, allocations: 7.906 kB / 0.7592 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-06/0.5968, allocations: 4 kB / 0.7592 GB, free: 3.473 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.597, allocations: 310.8 kB / 0.7595 GB, free: 3.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.046e-05/0.597, allocations: 8.062 kB / 0.7595 GB, free: 3.152 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.927e-06/0.597, allocations: 7.984 kB / 0.7595 GB, free: 3.145 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.024e-05/0.597, allocations: 0 / 0.7595 GB, free: 3.145 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.597, allocations: 0 / 0.7595 GB, free: 3.145 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.423e-05/0.5971, allocations: 41.66 kB / 0.7595 GB, free: 3.098 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.5971, allocations: 9.094 kB / 0.7595 GB, free: 3.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.5971, allocations: 0 / 0.7595 GB, free: 3.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.5971, allocations: 0 / 0.7595 GB, free: 3.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.942e-05/0.5972, allocations: 11.92 kB / 0.7596 GB, free: 3.078 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.5972, allocations: 96 / 0.7596 GB, free: 3.078 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.387e-05/0.5973, allocations: 4 kB / 0.7596 GB, free: 3.074 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.5973, allocations: 0 / 0.7596 GB, free: 3.074 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.234e-05/0.5973, allocations: 106.4 kB / 0.7597 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.5974, allocations: 7.953 kB / 0.7597 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.956e-05/0.5975, allocations: 40.81 kB / 0.7597 GB, free: 2.906 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.108e-06/0.5975, allocations: 7.938 kB / 0.7597 GB, free: 2.898 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5975, allocations: 0 / 0.7597 GB, free: 2.898 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.5975, allocations: 0 / 0.7597 GB, free: 2.898 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.5976, allocations: 149.7 kB / 0.7599 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.5976, allocations: 0 / 0.7599 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.192e-05/0.5976, allocations: 7.984 kB / 0.7599 GB, free: 2.695 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.5976, allocations: 0 / 0.7599 GB, free: 2.695 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-06/0.5977, allocations: 3.953 kB / 0.7599 GB, free: 2.691 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.5977, allocations: 3.938 kB / 0.7599 GB, free: 2.688 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5977, allocations: 7.984 kB / 0.7599 GB, free: 2.68 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.482e-05/0.5978, allocations: 61.12 kB / 0.7599 GB, free: 2.602 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.112e-05/0.5978, allocations: 81.14 kB / 0.76 GB, free: 2.504 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.5978, allocations: 0 / 0.76 GB, free: 2.504 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.392e-05/0.5978, allocations: 7.953 kB / 0.76 GB, free: 2.496 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/0.5979, allocations: 4 kB / 0.76 GB, free: 2.492 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.5979, allocations: 3.938 kB / 0.76 GB, free: 2.488 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 2.739e-05/0.5979, allocations: 75.28 kB / 0.7601 GB, free: 2.414 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5979, allocations: 0 / 0.7601 GB, free: 2.414 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002029/0.5981, allocations: 7.984 kB / 0.7601 GB, free: 2.406 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.00018/0.5983, allocations: 111.2 kB / 0.7602 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 6.892e-05/0.5984, allocations: 7.938 kB / 0.7602 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5984, allocations: 0 / 0.7602 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.634e-05/0.5984, allocations: 7.984 kB / 0.7602 GB, free: 2.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001034/0.5985, allocations: 5.125 kB / 0.7602 GB, free: 2.266 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001964/0.5987, allocations: 78.95 kB / 0.7603 GB, free: 2.16 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.599, allocations: 0.677 MB / 0.761 GB, free: 1.457 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.767e-05/0.599, allocations: 12.03 kB / 0.761 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.432e-05/0.599, allocations: 7.438 kB / 0.761 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of SimCode: time 2.21e-07/0.599, allocations: 0 / 0.761 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of Templates: time 0.002071/0.6011, allocations: 296.2 kB / 0.7613 GB, free: 1.148 MB / 0.5261 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)