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.001032/0.001032, allocations: 104.8 kB / 16.41 MB, free: 6.465 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.001146/0.001146, allocations: 187 kB / 17.34 MB, free: 5.719 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.488/1.488, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8134/0.8134, allocations: 132.2 MB / 423.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 71.86 kB / 0.582 GB, free: 23.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1739, allocations: 80.21 MB / 0.6603 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003754/0.1777, allocations: 1.512 MB / 0.6618 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00049/0.1782, allocations: 128.4 kB / 0.6619 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.41e-05/0.1783, allocations: 0 / 0.6619 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.988e-05/0.1784, allocations: 0 / 0.6619 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.858e-05/0.1785, allocations: 3.938 kB / 0.6619 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.1788, allocations: 27.91 kB / 0.662 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.836e-05/0.1789, allocations: 23.98 kB / 0.662 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.179, allocations: 19.92 kB / 0.662 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.741e-05/0.1791, allocations: 11.94 kB / 0.662 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.143e-05/0.1792, allocations: 15.97 kB / 0.662 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.1792, allocations: 4 kB / 0.662 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.991e-05/0.1793, allocations: 15.98 kB / 0.6621 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.1793, allocations: 7.938 kB / 0.6621 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.787e-05/0.1794, allocations: 11.94 kB / 0.6621 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.1795, allocations: 39.88 kB / 0.6621 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1795, allocations: 0 / 0.6621 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.422e-06/0.1795, allocations: 0 / 0.6621 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.1796, allocations: 0 / 0.6621 GB, free: 8.43 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.0005527/0.1801, allocations: 347.4 kB / 0.6624 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1802, allocations: 8.031 kB / 0.6625 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.1802, allocations: 4.938 kB / 0.6625 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.1804, allocations: 164.4 kB / 0.6626 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.1804, allocations: 4.375 kB / 0.6626 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.1804, allocations: 384 / 0.6626 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.1807, allocations: 62.17 kB / 0.6627 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.1807, allocations: 4.188 kB / 0.6627 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.1807, allocations: 3.938 kB / 0.6627 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.1807, allocations: 0 / 0.6627 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.181, allocations: 39.95 kB / 0.6627 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004761/0.1815, allocations: 264.9 kB / 0.663 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.1819, allocations: 70.41 kB / 0.663 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.182, allocations: 24.91 kB / 0.6631 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000155/0.1822, allocations: 77.11 kB / 0.6631 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.204e-05/0.1823, allocations: 38.55 kB / 0.6632 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.853e-06/0.1823, allocations: 0 / 0.6632 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000505/0.1828, allocations: 89.64 kB / 0.6633 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.1829, allocations: 55.34 kB / 0.6633 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.84e-05/0.183, allocations: 101.8 kB / 0.6634 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.183, allocations: 25.7 kB / 0.6634 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.618e-05/0.1831, allocations: 88.14 kB / 0.6635 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.1831, allocations: 7.844 kB / 0.6635 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.794e-05/0.1832, allocations: 21.64 kB / 0.6636 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1833, allocations: 318.8 kB / 0.6639 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1835, allocations: 23.98 kB / 0.6639 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.1836, allocations: 15.97 kB / 0.6639 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.1839, allocations: 49.28 kB / 0.6639 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.1839, allocations: 3.938 kB / 0.6639 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000288/0.1842, allocations: 73.7 kB / 0.664 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1842, allocations: 8 kB / 0.664 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1842, allocations: 3.984 kB / 0.664 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.1842, allocations: 0 / 0.664 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.1843, allocations: 15.92 kB / 0.664 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.1844, allocations: 0 / 0.664 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.628e-05/0.1844, allocations: 11.89 kB / 0.6641 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1845, allocations: 0 / 0.6641 GB, free: 6.199 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 0.0001041/0.1846, allocations: 117.8 kB / 0.6642 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.361e-05/0.1846, allocations: 4 kB / 0.6642 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003368/0.185, allocations: 85.14 kB / 0.6643 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.185, allocations: 0 / 0.6643 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.185, allocations: 0 / 0.6643 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.185, allocations: 0 / 0.6643 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.1852, allocations: 165.6 kB / 0.6644 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1852, allocations: 0 / 0.6644 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.185e-05/0.1853, allocations: 11.98 kB / 0.6644 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.1853, allocations: 4 kB / 0.6644 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.1854, allocations: 7.938 kB / 0.6644 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1854, allocations: 0 / 0.6644 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1854, allocations: 0 / 0.6644 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003276/0.1857, allocations: 171.4 kB / 0.6646 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.246e-05/0.1858, allocations: 81.02 kB / 0.6647 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.1858, allocations: 4 kB / 0.6647 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.1859, allocations: 7.984 kB / 0.6647 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.581e-05/0.186, allocations: 8 kB / 0.6647 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-06/0.186, allocations: 0 / 0.6647 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.464e-05/0.1861, allocations: 83.27 kB / 0.6648 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.41e-07/0.1861, allocations: 0 / 0.6648 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003696/0.1865, allocations: 8 kB / 0.6648 GB, free: 5.352 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.0001955/0.1867, allocations: 107.2 kB / 0.6649 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002877/0.187, allocations: 55.83 kB / 0.6649 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.187, allocations: 0 / 0.6649 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.1871, allocations: 23.97 kB / 0.665 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/0.1876, allocations: 9.5 kB / 0.665 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004027/0.188, allocations: 139.2 kB / 0.6651 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.1882, allocations: 0.6846 MB / 0.6658 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.266e-05/0.1883, allocations: 7.438 kB / 0.6658 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1883, allocations: 0 / 0.6658 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of Templates: time 0.002427/0.1907, allocations: 0.7347 MB / 0.6665 GB, free: 3.527 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)