Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") [: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.002014/0.002014, allocations: 179.8 kB / 7.464 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6008/0.6008, allocations: 133.5 MB / 141.4 MB, free: 15.65 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.121/1.121, allocations: 221.3 MB / 395 MB, free: 10.26 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.0008464/0.0008462, allocations: 102.3 kB / 477.8 MB, free: 10.91 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.485e-06, allocations: 2.906 kB / 0.5528 GB, free: 89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1235, allocations: 82.31 MB / 0.6332 GB, free: 14.1 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.344/0.4675, allocations: 110.8 MB / 0.7414 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000165/0.4677, allocations: 72.22 kB / 0.7415 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.002181/0.4699, allocations: 0.6379 MB / 0.7421 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.4699, allocations: 3.875 kB / 0.7421 GB, free: 10.56 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003406/0.4703, allocations: 347.3 kB / 0.7424 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.4703, allocations: 7.688 kB / 0.7424 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.4703, allocations: 7.75 kB / 0.7424 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.4704, allocations: 160.4 kB / 0.7426 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.4705, allocations: 3.906 kB / 0.7426 GB, free: 26 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.4705, allocations: 3.875 kB / 0.7426 GB, free: 26 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.072e-05/0.4706, allocations: 16.73 kB / 0.7426 GB, free: 26 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.262e-05/0.4707, allocations: 53.77 kB / 0.7427 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.4707, allocations: 0 / 0.7427 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.4707, allocations: 1.5 kB / 0.7427 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.4707, allocations: 0 / 0.7427 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003774/0.4711, allocations: 261.2 kB / 0.7429 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.4713, allocations: 39.2 kB / 0.743 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.545e-05/0.4713, allocations: 16.45 kB / 0.743 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.4714, allocations: 80.02 kB / 0.7431 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.4715, allocations: 46.16 kB / 0.7431 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.4715, allocations: 0 / 0.7431 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001643/0.4716, allocations: 48.98 kB / 0.7431 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.4717, allocations: 51.41 kB / 0.7432 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.766e-05/0.4717, allocations: 92.8 kB / 0.7433 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.4718, allocations: 25.7 kB / 0.7433 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.985e-05/0.4718, allocations: 85.44 kB / 0.7434 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.4718, allocations: 11.38 kB / 0.7434 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.4718, allocations: 0 / 0.7434 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4719, allocations: 316.4 kB / 0.7437 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.682e-05/0.472, allocations: 7.594 kB / 0.7437 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.353e-05/0.472, allocations: 3.906 kB / 0.7437 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.276e-05/0.472, allocations: 10.47 kB / 0.7437 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.472, allocations: 0 / 0.7437 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.041e-05/0.4721, allocations: 55.86 kB / 0.7438 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/0.4721, allocations: 6.5 kB / 0.7438 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.4721, allocations: 0.7031 kB / 0.7438 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.4722, allocations: 0 / 0.7438 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.349e-05/0.4723, allocations: 18.92 kB / 0.7438 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.4723, allocations: 0.7031 kB / 0.7438 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.445e-05/0.4723, allocations: 14.44 kB / 0.7438 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.4723, allocations: 0 / 0.7438 GB, free: 24.88 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 6.613e-05/0.4724, allocations: 113 kB / 0.7439 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/0.4724, allocations: 4.375 kB / 0.7439 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000125/0.4726, allocations: 57.47 kB / 0.744 GB, free: 24.72 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.4726, allocations: 3.938 kB / 0.744 GB, free: 24.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.4726, allocations: 0 / 0.744 GB, free: 24.72 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.4726, allocations: 0.75 kB / 0.744 GB, free: 24.72 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.4727, allocations: 147.4 kB / 0.7441 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.4727, allocations: 0 / 0.7441 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.4728, allocations: 18.84 kB / 0.7441 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4728, allocations: 0.75 kB / 0.7441 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.4728, allocations: 0 / 0.7441 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.4728, allocations: 7.875 kB / 0.7441 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4728, allocations: 0.75 kB / 0.7442 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001107/0.473, allocations: 146.3 kB / 0.7443 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.473, allocations: 77.86 kB / 0.7444 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.473, allocations: 4.797 kB / 0.7444 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.349e-05/0.4731, allocations: 10.59 kB / 0.7444 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.4732, allocations: 10.77 kB / 0.7444 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.4732, allocations: 0 / 0.7444 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.009e-05/0.4732, allocations: 83.84 kB / 0.7445 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002036/0.4734, allocations: 16.5 kB / 0.7445 GB, free: 24.23 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.0001135/0.4735, allocations: 112.3 kB / 0.7446 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 6.86e-05/0.4736, allocations: 20.14 kB / 0.7446 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.4736, allocations: 0 / 0.7446 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.488e-05/0.4736, allocations: 11.66 kB / 0.7446 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.4738, allocations: 3.938 kB / 0.7446 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001945/0.474, allocations: 66.14 kB / 0.7447 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002587/0.4743, allocations: 0.6975 MB / 0.7454 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of SimCode: time 2.5e-07/0.4743, allocations: 4 kB / 0.7454 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of Templates: time 0.002049/0.4763, allocations: 0.6562 MB / 0.746 GB, free: 23.3 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)