Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial") translateModel(IDEAS.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002774/0.002774, allocations: 179.2 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7361/0.7361, allocations: 130.6 MB / 138.5 MB, free: 2.145 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.588/1.588, allocations: 221.3 MB / 391.4 MB, free: 13.05 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.0009179/0.000918, allocations: 108.2 kB / 473.5 MB, free: 14.36 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.193e-06/7.223e-06, allocations: 0 / 0.5479 GB, free: 89.02 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1855, allocations: 81.58 MB / 0.6276 GB, free: 18.17 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.6695, allocations: 110.7 MB / 0.7356 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.6698, allocations: 74.98 kB / 0.7357 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.002839/0.6727, allocations: 0.7554 MB / 0.7364 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.6727, allocations: 0 / 0.7364 GB, free: 11.57 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004189/0.6731, allocations: 349.8 kB / 0.7368 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.6732, allocations: 12.72 kB / 0.7368 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.376e-05/0.6732, allocations: 2.25 kB / 0.7368 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.6734, allocations: 174.5 kB / 0.737 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.6734, allocations: 1.359 kB / 0.737 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.6734, allocations: 7.656 kB / 0.737 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.523e-05/0.6735, allocations: 17.81 kB / 0.737 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.073e-05/0.6736, allocations: 49.72 kB / 0.737 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.6736, allocations: 3.969 kB / 0.737 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.6736, allocations: 0 / 0.737 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.6736, allocations: 0 / 0.737 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.674, allocations: 253.4 kB / 0.7373 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.6743, allocations: 50.17 kB / 0.7373 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.976e-05/0.6743, allocations: 12.55 kB / 0.7373 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003065/0.6746, allocations: 402.9 kB / 0.7377 GB, free: 26.22 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.6746, allocations: 30.56 kB / 0.7378 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.6746, allocations: 0 / 0.7378 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001882/0.6748, allocations: 47.69 kB / 0.7378 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.6749, allocations: 54.66 kB / 0.7378 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.319e-05/0.6749, allocations: 107.2 kB / 0.738 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.675, allocations: 25.7 kB / 0.738 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.675, allocations: 84.08 kB / 0.7381 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.675, allocations: 13.19 kB / 0.7381 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.675, allocations: 3.844 kB / 0.7381 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.956e-05/0.6751, allocations: 315.8 kB / 0.7384 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.801e-05/0.6752, allocations: 7.594 kB / 0.7384 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.145e-05/0.6752, allocations: 3.719 kB / 0.7384 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.033e-05/0.6752, allocations: 12.27 kB / 0.7384 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6752, allocations: 0 / 0.7384 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.172e-05/0.6753, allocations: 52.89 kB / 0.7384 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.6754, allocations: 3.875 kB / 0.7384 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.6754, allocations: 0 / 0.7384 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.6754, allocations: 6.125 kB / 0.7385 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.313e-05/0.6755, allocations: 14.95 kB / 0.7385 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.6755, allocations: 0 / 0.7385 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.6756, allocations: 14.42 kB / 0.7385 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.6756, allocations: 3.562 kB / 0.7385 GB, free: 25.5 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 (falFac.y,falFac.k) * 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 7.085e-05/0.6757, allocations: 110 kB / 0.7386 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.6757, allocations: 0 / 0.7386 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.6758, allocations: 63.73 kB / 0.7387 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.6759, allocations: 4 kB / 0.7387 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.6759, allocations: 0 / 0.7387 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.6759, allocations: 0 / 0.7387 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.676, allocations: 144.7 kB / 0.7388 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.676, allocations: 0 / 0.7388 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.481e-05/0.6761, allocations: 15.55 kB / 0.7388 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.6761, allocations: 0 / 0.7388 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.6761, allocations: 0 / 0.7388 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.6761, allocations: 0 / 0.7388 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.6761, allocations: 5.312 kB / 0.7388 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001492/0.6763, allocations: 156.5 kB / 0.739 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.6763, allocations: 83.72 kB / 0.739 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.6764, allocations: 3.906 kB / 0.739 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.912e-05/0.6765, allocations: 10.69 kB / 0.7391 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.629e-05/0.6765, allocations: 6.625 kB / 0.7391 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.6765, allocations: 3.969 kB / 0.7391 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.519e-05/0.6766, allocations: 80.52 kB / 0.7391 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00022/0.6768, allocations: 20.66 kB / 0.7392 GB, free: 24.86 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 (falFac.y,falFac.k) * 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.0001968/0.677, allocations: 107.4 kB / 0.7393 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 9.428e-05/0.6771, allocations: 25.03 kB / 0.7393 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6771, allocations: 0 / 0.7393 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.196e-05/0.6772, allocations: 13.08 kB / 0.7393 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.6774, allocations: 13.25 kB / 0.7393 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002646/0.6776, allocations: 69.31 kB / 0.7394 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003835/0.678, allocations: 0.6939 MB / 0.7401 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of SimCode: time 2.51e-07/0.678, allocations: 0 / 0.7401 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of Templates: time 0.002559/0.6806, allocations: 0.691 MB / 0.7407 GB, free: 23.92 MB / 0.5105 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)