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.0009559/0.0009558, allocations: 169 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7552/0.7552, allocations: 130.7 MB / 138.7 MB, free: 3.562 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.435/1.435, allocations: 221.5 MB / 391.8 MB, free: 14.23 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.0009698/0.0009698, allocations: 98.44 kB / 473.9 MB, free: 4.484 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.915e-05/1.917e-05, allocations: 4 kB / 0.5485 GB, free: 13.05 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.499/0.499, allocations: 81.58 MB / 0.6282 GB, free: 42.96 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.6483, allocations: 109.6 MB / 0.7352 GB, free: 1.148 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/0.6487, allocations: 79.94 kB / 0.7353 GB, free: 1.07 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.001281/0.65, allocations: 0.5279 MB / 0.7358 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.723e-06/0.65, allocations: 4 kB / 0.7358 GB, free: 0.5352 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.65, allocations: 0 / 0.7358 GB, free: 0.5352 MB / 0.5105 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.0002599/0.6503, allocations: 312.6 kB / 0.7361 GB, free: 192 kB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.6503, allocations: 8.031 kB / 0.7361 GB, free: 184 kB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.6504, allocations: 0 / 0.7361 GB, free: 184 kB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.6505, allocations: 172.8 kB / 0.7363 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.6505, allocations: 0 / 0.7363 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.897e-06/0.6505, allocations: 4 kB / 0.7363 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.455e-05/0.6506, allocations: 0 / 0.7363 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.132e-05/0.6507, allocations: 33.7 kB / 0.7363 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.6507, allocations: 0.9375 kB / 0.7363 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.6507, allocations: 0 / 0.7363 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.6507, allocations: 0 / 0.7363 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.6509, allocations: 138.2 kB / 0.7365 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.796e-05/0.6509, allocations: 22.55 kB / 0.7365 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.6509, allocations: 4.859 kB / 0.7365 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.6511, allocations: 93.11 kB / 0.7366 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.6511, allocations: 30.56 kB / 0.7366 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.6511, allocations: 0 / 0.7366 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.000187/0.6513, allocations: 37.69 kB / 0.7367 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.6514, allocations: 55.34 kB / 0.7367 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.335e-05/0.6514, allocations: 85 kB / 0.7368 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.6514, allocations: 25.7 kB / 0.7368 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.348e-05/0.6515, allocations: 80.14 kB / 0.7369 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.6515, allocations: 15.94 kB / 0.7369 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.6515, allocations: 0 / 0.7369 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.6517, allocations: 310.8 kB / 0.7372 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.089e-05/0.6517, allocations: 0 / 0.7372 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.086e-06/0.6517, allocations: 7.938 kB / 0.7372 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.626e-05/0.6517, allocations: 3.984 kB / 0.7372 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.6517, allocations: 0 / 0.7372 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.274e-05/0.6518, allocations: 41.66 kB / 0.7373 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.6518, allocations: 8.094 kB / 0.7373 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.6519, allocations: 4 kB / 0.7373 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.6519, allocations: 0 / 0.7373 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.225e-05/0.6519, allocations: 7.984 kB / 0.7373 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.652, allocations: 0 / 0.7373 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.652, allocations: 0 / 0.7373 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.652, allocations: 0 / 0.7373 GB, free: 14.86 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 8.339e-05/0.6521, allocations: 102.6 kB / 0.7374 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.667e-06/0.6521, allocations: 3.953 kB / 0.7374 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.6522, allocations: 49.38 kB / 0.7374 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.6522, allocations: 0 / 0.7374 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.6522, allocations: 7.984 kB / 0.7374 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.6522, allocations: 4 kB / 0.7374 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.922e-05/0.6523, allocations: 130.2 kB / 0.7376 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.6524, allocations: 0 / 0.7376 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.423e-05/0.6524, allocations: 7.984 kB / 0.7376 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.6524, allocations: 0 / 0.7376 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-06/0.6524, allocations: 0 / 0.7376 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.6524, allocations: 3.953 kB / 0.7376 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6524, allocations: 0 / 0.7376 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.189e-05/0.6525, allocations: 65.16 kB / 0.7376 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.6526, allocations: 81.11 kB / 0.7377 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.6526, allocations: 0 / 0.7377 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.101e-05/0.6526, allocations: 3.938 kB / 0.7377 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.6526, allocations: 3.953 kB / 0.7377 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.6527, allocations: 4 kB / 0.7377 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.396e-05/0.6527, allocations: 75.31 kB / 0.7378 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6527, allocations: 4 kB / 0.7378 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001888/0.6529, allocations: 4 kB / 0.7378 GB, free: 14.23 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.0001692/0.6531, allocations: 103.2 kB / 0.7379 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 7.315e-05/0.6532, allocations: 11.94 kB / 0.7379 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.6532, allocations: 0 / 0.7379 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.319e-05/0.6532, allocations: 8 kB / 0.7379 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.144e-05/0.6533, allocations: 2.266 kB / 0.7379 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001581/0.6534, allocations: 60 kB / 0.738 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.6537, allocations: 0.6729 MB / 0.7386 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.654e-05/0.6537, allocations: 7.891 kB / 0.7386 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.802e-05/0.6538, allocations: 11.44 kB / 0.7387 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.6538, allocations: 0 / 0.7387 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.001975/0.6557, allocations: 293.4 kB / 0.7389 GB, free: 13.02 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)