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.001004/0.001004, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6941/0.6941, allocations: 130.5 MB / 143.8 MB, free: 13.59 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.424/1.424, allocations: 221.3 MB / 396.8 MB, free: 9.16 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008868/0.0008872, allocations: 93 kB / 478.9 MB, free: 10.4 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.2e-05/3.217e-05, allocations: 5.734 kB / 0.5551 GB, free: 86.09 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1525, allocations: 81.58 MB / 0.6347 GB, free: 12.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6183/0.7709, allocations: 111.3 MB / 0.7434 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.7712, allocations: 70.09 kB / 0.7435 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.002964/0.7742, allocations: 0.9424 MB / 0.7444 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7742, allocations: 4 kB / 0.7444 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.7742, allocations: 0 / 0.7444 GB, free: 28.06 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003381/0.7746, allocations: 342.9 kB / 0.7447 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.7746, allocations: 7.688 kB / 0.7447 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.282e-05/0.7746, allocations: 7.75 kB / 0.7448 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.7748, allocations: 171.5 kB / 0.7449 GB, free: 27.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.7748, allocations: 0 / 0.7449 GB, free: 27.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.7748, allocations: 11.09 kB / 0.7449 GB, free: 27.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.764e-05/0.7749, allocations: 45.64 kB / 0.745 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.7749, allocations: 3.938 kB / 0.745 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.7749, allocations: 3.375 kB / 0.745 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.775, allocations: 0 / 0.745 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.165e-05/0.775, allocations: 15.53 kB / 0.745 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004179/0.7754, allocations: 288.1 kB / 0.7453 GB, free: 27.19 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.7757, allocations: 42.98 kB / 0.7453 GB, free: 27.16 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.032e-05/0.7757, allocations: 16.11 kB / 0.7453 GB, free: 27.16 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.7758, allocations: 79.55 kB / 0.7454 GB, free: 27.06 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.7758, allocations: 37.56 kB / 0.7454 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.7759, allocations: 4 kB / 0.7454 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001614/0.776, allocations: 50.91 kB / 0.7455 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.7761, allocations: 51.41 kB / 0.7455 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.393e-05/0.7761, allocations: 102 kB / 0.7456 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.7762, allocations: 25.7 kB / 0.7457 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.302e-05/0.7762, allocations: 87.45 kB / 0.7457 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.193e-05/0.7762, allocations: 6.25 kB / 0.7457 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-06/0.7762, allocations: 0 / 0.7457 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.7764, allocations: 317.3 kB / 0.7461 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.076e-05/0.7764, allocations: 11.41 kB / 0.7461 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.568e-05/0.7764, allocations: 6.188 kB / 0.7461 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.263e-05/0.7764, allocations: 7.594 kB / 0.7461 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.7764, allocations: 0 / 0.7461 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.109e-05/0.7765, allocations: 56.27 kB / 0.7461 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.7765, allocations: 3.812 kB / 0.7461 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.7766, allocations: 3.719 kB / 0.7461 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-06/0.7766, allocations: 0 / 0.7461 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.566e-05/0.7767, allocations: 11.67 kB / 0.7461 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.7767, allocations: 7.984 kB / 0.7462 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.849e-05/0.7767, allocations: 9.094 kB / 0.7462 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.7768, allocations: 5.594 kB / 0.7462 GB, free: 26.34 MB / 0.5105 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 5.872e-05/0.7768, allocations: 108.4 kB / 0.7463 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.267e-05/0.7768, allocations: 3.906 kB / 0.7463 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.777, allocations: 59.22 kB / 0.7463 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.777, allocations: 4 kB / 0.7463 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.777, allocations: 3.938 kB / 0.7463 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.777, allocations: 6.516 kB / 0.7463 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.7771, allocations: 169.8 kB / 0.7465 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.7772, allocations: 0.875 kB / 0.7465 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/0.7772, allocations: 10.06 kB / 0.7465 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.7772, allocations: 0 / 0.7465 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/0.7773, allocations: 6.516 kB / 0.7465 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.7773, allocations: 3.938 kB / 0.7465 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7773, allocations: 3.938 kB / 0.7465 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.7774, allocations: 158.1 kB / 0.7467 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.289e-05/0.7775, allocations: 77.11 kB / 0.7468 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.7775, allocations: 0 / 0.7468 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/0.7776, allocations: 10.17 kB / 0.7468 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.7776, allocations: 9.984 kB / 0.7468 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.7777, allocations: 0 / 0.7468 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.452e-05/0.7777, allocations: 85.58 kB / 0.7469 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7777, allocations: 3.938 kB / 0.7469 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002173/0.7779, allocations: 18.97 kB / 0.7469 GB, free: 25.65 MB / 0.5105 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.0001334/0.7781, allocations: 100.7 kB / 0.747 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 7.81e-05/0.7781, allocations: 21.22 kB / 0.747 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.7782, allocations: 0 / 0.747 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.853e-05/0.7782, allocations: 13.73 kB / 0.747 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.7783, allocations: 11.8 kB / 0.747 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001885/0.7785, allocations: 65.66 kB / 0.7471 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.7788, allocations: 0.6856 MB / 0.7478 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 3.115e-05/0.7788, allocations: 3.875 kB / 0.7478 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.314e-05/0.7789, allocations: 10.75 kB / 0.7478 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of SimCode: time 3.11e-07/0.7789, allocations: 0 / 0.7478 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of Templates: time 0.002297/0.7812, allocations: 0.587 MB / 0.7483 GB, free: 24.74 MB / 0.5105 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)