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.005819/0.005819, allocations: 101.7 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.00117/0.00117, allocations: 199.2 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7642/0.7642, allocations: 132.2 MB / 422.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.84 kB / 0.5814 GB, free: 7.535 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4845/0.4857, allocations: 80.2 MB / 0.6597 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002612/0.4884, allocations: 1.518 MB / 0.6612 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000396/0.4888, allocations: 124.3 kB / 0.6613 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.434e-05/0.4889, allocations: 1.312 kB / 0.6613 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.239e-05/0.4889, allocations: 4.688 kB / 0.6613 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.122e-05/0.489, allocations: 3.938 kB / 0.6613 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.4892, allocations: 19.98 kB / 0.6613 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.119e-05/0.4893, allocations: 32.83 kB / 0.6613 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.4895, allocations: 5.641 kB / 0.6613 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.195e-05/0.4895, allocations: 18.81 kB / 0.6614 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.671e-05/0.4896, allocations: 12.2 kB / 0.6614 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.4896, allocations: 2.719 kB / 0.6614 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.113e-05/0.4897, allocations: 17.34 kB / 0.6614 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.4897, allocations: 9.953 kB / 0.6614 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.862e-05/0.4897, allocations: 13.05 kB / 0.6614 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.4899, allocations: 34.11 kB / 0.6614 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.4899, allocations: 2.016 kB / 0.6614 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.924e-06/0.4899, allocations: 0 / 0.6614 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.4899, allocations: 0 / 0.6614 GB, free: 9.059 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.0004748/0.4904, allocations: 347.2 kB / 0.6618 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4904, allocations: 15.06 kB / 0.6618 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.182e-05/0.4905, allocations: 2.031 kB / 0.6618 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.4906, allocations: 167.9 kB / 0.662 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.4906, allocations: 1.344 kB / 0.662 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.4907, allocations: 6.5 kB / 0.662 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.4909, allocations: 54.03 kB / 0.662 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.4909, allocations: 5.812 kB / 0.662 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4909, allocations: 8.547 kB / 0.662 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.4909, allocations: 0 / 0.662 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.4911, allocations: 41.8 kB / 0.6621 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003368/0.4914, allocations: 264.4 kB / 0.6623 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.4918, allocations: 65.94 kB / 0.6624 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.4919, allocations: 24.94 kB / 0.6624 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.835e-05/0.492, allocations: 82.2 kB / 0.6625 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.492, allocations: 32.12 kB / 0.6625 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.492, allocations: 0 / 0.6625 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003916/0.4924, allocations: 100.7 kB / 0.6626 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.936e-05/0.4925, allocations: 51.41 kB / 0.6627 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.682e-05/0.4925, allocations: 102.3 kB / 0.6628 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.896e-06/0.4925, allocations: 29.64 kB / 0.6628 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.4926, allocations: 82.11 kB / 0.6629 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.636e-05/0.4926, allocations: 8.422 kB / 0.6629 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.141e-05/0.4926, allocations: 19.02 kB / 0.6629 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.674e-05/0.4927, allocations: 312.4 kB / 0.6632 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.569e-05/0.4928, allocations: 24.48 kB / 0.6632 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.645e-05/0.4929, allocations: 21.34 kB / 0.6632 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.493, allocations: 48.78 kB / 0.6633 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4931, allocations: 5.188 kB / 0.6633 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002108/0.4933, allocations: 73.38 kB / 0.6634 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.4933, allocations: 10.03 kB / 0.6634 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4933, allocations: 2.156 kB / 0.6634 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.4933, allocations: 0 / 0.6634 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.906e-05/0.4934, allocations: 10.28 kB / 0.6634 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.4934, allocations: 1.344 kB / 0.6634 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.993e-05/0.4935, allocations: 10.25 kB / 0.6634 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.4935, allocations: 2.234 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 5.828e-05/0.4936, allocations: 116 kB / 0.6635 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/0.4936, allocations: 5.344 kB / 0.6635 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000273/0.4939, allocations: 86.42 kB / 0.6636 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.4939, allocations: 1.219 kB / 0.6636 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.4939, allocations: 0 / 0.6636 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.4939, allocations: 1.844 kB / 0.6636 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.494, allocations: 167.3 kB / 0.6637 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.494, allocations: 0 / 0.6637 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.78e-05/0.4941, allocations: 11.3 kB / 0.6638 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4941, allocations: 4 kB / 0.6638 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.4942, allocations: 1.984 kB / 0.6638 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.4942, allocations: 0 / 0.6638 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4942, allocations: 5.062 kB / 0.6638 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002554/0.4944, allocations: 172.8 kB / 0.6639 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.321e-05/0.4945, allocations: 90.09 kB / 0.664 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.4945, allocations: 1.5 kB / 0.664 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-05/0.4946, allocations: 6.75 kB / 0.664 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.4946, allocations: 14.8 kB / 0.664 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.4947, allocations: 1.469 kB / 0.664 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.698e-05/0.4947, allocations: 82.81 kB / 0.6641 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4947, allocations: 0 / 0.6641 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002253/0.4949, allocations: 7.656 kB / 0.6641 GB, free: 6.488 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.0001461/0.4951, allocations: 100.9 kB / 0.6642 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002431/0.4953, allocations: 48.7 kB / 0.6643 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4953, allocations: 1.156 kB / 0.6643 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.634e-05/0.4954, allocations: 26.25 kB / 0.6643 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.4957, allocations: 10.34 kB / 0.6643 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002772/0.496, allocations: 113.2 kB / 0.6644 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.4961, allocations: 0.6816 MB / 0.6651 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.091e-05/0.4962, allocations: 2.531 kB / 0.6651 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.4962, allocations: 14.09 kB / 0.6651 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.4962, allocations: 1.531 kB / 0.6651 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of Templates: time 0.003028/0.4992, allocations: 0.7112 MB / 0.6658 GB, free: 5.156 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)