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.00129/0.00129, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7994/0.7994, allocations: 133.6 MB / 141.6 MB, free: 2.887 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.625/1.625, allocations: 221.5 MB / 395.5 MB, free: 10.75 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.000974/0.000974, allocations: 107.7 kB / 478.2 MB, free: 1.262 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.649e-05/2.65e-05, allocations: 4 kB / 0.5535 GB, free: 9.008 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4674/0.4674, allocations: 82.31 MB / 0.6338 GB, free: 40.86 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1583/0.6258, allocations: 109.9 MB / 0.7412 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003598/0.6263, allocations: 79.95 kB / 0.7412 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001424/0.6277, allocations: 0.5123 MB / 0.7417 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6278, allocations: 0 / 0.7417 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.6278, allocations: 0 / 0.7417 GB, free: 12.25 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.0003393/0.6281, allocations: 316.7 kB / 0.742 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.6282, allocations: 12.03 kB / 0.742 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.6283, allocations: 3.938 kB / 0.742 GB, free: 11.88 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.6284, allocations: 166.3 kB / 0.7422 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.6284, allocations: 0 / 0.7422 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.6284, allocations: 4 kB / 0.7422 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.389e-05/0.6285, allocations: 4 kB / 0.7422 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.395e-05/0.6286, allocations: 33.69 kB / 0.7422 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.6286, allocations: 0 / 0.7422 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.6286, allocations: 0 / 0.7422 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-06/0.6286, allocations: 3.938 kB / 0.7423 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.6288, allocations: 126.2 kB / 0.7424 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 6.005e-05/0.6289, allocations: 34.62 kB / 0.7424 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.165e-05/0.6289, allocations: 8.844 kB / 0.7424 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/0.6291, allocations: 81.11 kB / 0.7425 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.6291, allocations: 34.56 kB / 0.7425 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.6291, allocations: 0 / 0.7425 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0002168/0.6294, allocations: 41.69 kB / 0.7426 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.6294, allocations: 51.41 kB / 0.7426 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.806e-05/0.6295, allocations: 85 kB / 0.7427 GB, free: 11.08 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.6295, allocations: 33.67 kB / 0.7427 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.6296, allocations: 80.14 kB / 0.7428 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/0.6296, allocations: 3.906 kB / 0.7428 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-06/0.6296, allocations: 0 / 0.7428 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.6298, allocations: 314.8 kB / 0.7431 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.202e-05/0.6298, allocations: 4 kB / 0.7431 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-06/0.6298, allocations: 0 / 0.7431 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.076e-05/0.6299, allocations: 4 kB / 0.7431 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6299, allocations: 4.062 kB / 0.7431 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.458e-05/0.63, allocations: 37.69 kB / 0.7432 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.63, allocations: 11.89 kB / 0.7432 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.63, allocations: 0 / 0.7432 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.63, allocations: 4 kB / 0.7432 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.102e-05/0.6301, allocations: 0 / 0.7432 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.6301, allocations: 0 / 0.7432 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.372e-05/0.6301, allocations: 3.938 kB / 0.7432 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.6301, allocations: 4 kB / 0.7432 GB, free: 10.56 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 () * 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 9.356e-05/0.6302, allocations: 109 kB / 0.7433 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-06/0.6302, allocations: 3.938 kB / 0.7433 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.6304, allocations: 45.41 kB / 0.7433 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.6304, allocations: 0 / 0.7433 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.6304, allocations: 0 / 0.7433 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.6304, allocations: 3.984 kB / 0.7433 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.49e-05/0.6305, allocations: 126.2 kB / 0.7435 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6305, allocations: 0 / 0.7435 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-05/0.6305, allocations: 4 kB / 0.7435 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.6306, allocations: 0 / 0.7435 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.6306, allocations: 4.031 kB / 0.7435 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.6306, allocations: 0 / 0.7435 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.6306, allocations: 3.953 kB / 0.7435 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.6307, allocations: 65.06 kB / 0.7435 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.6308, allocations: 77.11 kB / 0.7436 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.6308, allocations: 4 kB / 0.7436 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.333e-05/0.6308, allocations: 3.984 kB / 0.7436 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/0.6308, allocations: 7.984 kB / 0.7436 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.6308, allocations: 0 / 0.7436 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.409e-05/0.6309, allocations: 75.28 kB / 0.7437 GB, free: 9.953 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6309, allocations: 0 / 0.7437 GB, free: 9.953 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001942/0.6311, allocations: 11.94 kB / 0.7437 GB, free: 9.941 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 () * 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.0002113/0.6313, allocations: 103.2 kB / 0.7438 GB, free: 9.828 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 8.177e-05/0.6314, allocations: 11.98 kB / 0.7438 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6314, allocations: 0 / 0.7438 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.702e-05/0.6314, allocations: 12 kB / 0.7438 GB, free: 9.805 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.779e-05/0.6315, allocations: 0 / 0.7438 GB, free: 9.805 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001859/0.6317, allocations: 52 kB / 0.7439 GB, free: 9.73 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.632, allocations: 0.6768 MB / 0.7445 GB, free: 9.027 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.817e-05/0.6321, allocations: 7.906 kB / 0.7445 GB, free: 9.02 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.6321, allocations: 11.44 kB / 0.7445 GB, free: 9.008 MB / 0.5261 GB Notification: Performance of SimCode: time 2.31e-07/0.6321, allocations: 0 / 0.7445 GB, free: 9.008 MB / 0.5261 GB Notification: Performance of Templates: time 0.002167/0.6343, allocations: 300.3 kB / 0.7448 GB, free: 8.715 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)