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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009087/0.009088, allocations: 101.3 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002212/0.002212, allocations: 198.8 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7869/0.7869, allocations: 132.2 MB / 422.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 63.89 kB / 0.5813 GB, free: 7.547 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4786/0.4801, allocations: 80.21 MB / 0.6597 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002609/0.4828, allocations: 1.508 MB / 0.6611 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003595/0.4831, allocations: 132.7 kB / 0.6613 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.918e-05/0.4832, allocations: 0 / 0.6613 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.536e-05/0.4832, allocations: 1.672 kB / 0.6613 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.552e-05/0.4833, allocations: 4.453 kB / 0.6613 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.4835, allocations: 24.06 kB / 0.6613 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.723e-05/0.4836, allocations: 28.08 kB / 0.6613 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.4837, allocations: 10.08 kB / 0.6613 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.607e-05/0.4838, allocations: 11.02 kB / 0.6613 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.463e-05/0.4838, allocations: 17.08 kB / 0.6614 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.4838, allocations: 5.656 kB / 0.6614 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.104e-05/0.4839, allocations: 9.531 kB / 0.6614 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.617e-05/0.4839, allocations: 10.64 kB / 0.6614 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.851e-05/0.484, allocations: 16.33 kB / 0.6614 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.4841, allocations: 38.3 kB / 0.6614 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.4841, allocations: 0 / 0.6614 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.585e-06/0.4841, allocations: 1.703 kB / 0.6614 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.4841, allocations: 0 / 0.6614 GB, free: 9.062 MB / 0.4981 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.0004312/0.4846, allocations: 348.6 kB / 0.6618 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.4846, allocations: 8.719 kB / 0.6618 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.4846, allocations: 3.531 kB / 0.6618 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.004e-05/0.4847, allocations: 162.9 kB / 0.6619 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.4848, allocations: 9.688 kB / 0.662 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.4848, allocations: 2.359 kB / 0.662 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.485, allocations: 54.44 kB / 0.662 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.485, allocations: 1.75 kB / 0.662 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.485, allocations: 7.938 kB / 0.662 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.485, allocations: 4 kB / 0.662 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.4852, allocations: 42.67 kB / 0.6621 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003497/0.4856, allocations: 264.9 kB / 0.6623 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.4859, allocations: 64.73 kB / 0.6624 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.772e-05/0.486, allocations: 30.19 kB / 0.6624 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.4862, allocations: 81.02 kB / 0.6625 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.4862, allocations: 36.17 kB / 0.6625 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.4862, allocations: 0 / 0.6625 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003803/0.4866, allocations: 92.58 kB / 0.6626 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.4866, allocations: 57.27 kB / 0.6627 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.404e-05/0.4867, allocations: 100.9 kB / 0.6628 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.456e-06/0.4867, allocations: 26.31 kB / 0.6628 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.787e-05/0.4867, allocations: 86.09 kB / 0.6629 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.4867, allocations: 11.48 kB / 0.6629 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.4868, allocations: 15.28 kB / 0.6629 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.519e-05/0.4868, allocations: 312.3 kB / 0.6632 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.571e-05/0.4869, allocations: 19.94 kB / 0.6632 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.441e-05/0.487, allocations: 28.48 kB / 0.6632 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.4872, allocations: 49.66 kB / 0.6633 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4872, allocations: 3.938 kB / 0.6633 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000195/0.4874, allocations: 69.97 kB / 0.6633 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.4874, allocations: 5.281 kB / 0.6634 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.4874, allocations: 0 / 0.6634 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.4874, allocations: 5.922 kB / 0.6634 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.585e-05/0.4875, allocations: 9.891 kB / 0.6634 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.4875, allocations: 2.469 kB / 0.6634 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.526e-05/0.4876, allocations: 13.41 kB / 0.6634 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.4876, allocations: 2.828 kB / 0.6634 GB, free: 7.219 MB / 0.4981 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.066e-05/0.4877, allocations: 116.6 kB / 0.6635 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.254e-05/0.4877, allocations: 0 / 0.6635 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002534/0.4879, allocations: 83.02 kB / 0.6636 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.488, allocations: 1.281 kB / 0.6636 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.488, allocations: 0 / 0.6636 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.488, allocations: 0.6562 kB / 0.6636 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.4881, allocations: 166.8 kB / 0.6637 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.4881, allocations: 2.734 kB / 0.6637 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.106e-05/0.4882, allocations: 10.38 kB / 0.6638 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.4882, allocations: 3.938 kB / 0.6638 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.4882, allocations: 2.234 kB / 0.6638 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.4882, allocations: 4 kB / 0.6638 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4882, allocations: 0 / 0.6638 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.4885, allocations: 177.2 kB / 0.6639 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.422e-05/0.4885, allocations: 86.78 kB / 0.664 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.4885, allocations: 5.656 kB / 0.664 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.924e-05/0.4886, allocations: 9.719 kB / 0.664 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.4887, allocations: 5.75 kB / 0.664 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.4887, allocations: 2.25 kB / 0.664 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.32e-05/0.4887, allocations: 86.64 kB / 0.6641 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4887, allocations: 0 / 0.6641 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002206/0.4889, allocations: 8.375 kB / 0.6641 GB, free: 6.5 MB / 0.4981 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,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001478/0.4891, allocations: 98.7 kB / 0.6642 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.4893, allocations: 54.91 kB / 0.6643 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4893, allocations: 0 / 0.6643 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.4894, allocations: 27.06 kB / 0.6643 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.4897, allocations: 6.344 kB / 0.6643 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.49, allocations: 115.2 kB / 0.6644 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.4902, allocations: 0.6772 MB / 0.6651 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.061e-05/0.4902, allocations: 10.66 kB / 0.6651 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.502e-05/0.4902, allocations: 10.22 kB / 0.6651 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.4902, allocations: 0 / 0.6651 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of Templates: time 0.002911/0.4931, allocations: 0.7106 MB / 0.6658 GB, free: 5.184 MB / 0.4981 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)