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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008684/0.0008687, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006063/0.006063, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.383/1.383, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9622/0.9622, allocations: 135.3 MB / 426.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003252, allocations: 12 kB / 0.5076 GB, free: 4.777 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1704/0.1708, allocations: 82.31 MB / 0.588 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001643/0.1725, allocations: 1.233 MB / 0.5892 GB, free: 1.387 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003592/0.1728, allocations: 124.5 kB / 0.5893 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.356e-05/0.1729, allocations: 4 kB / 0.5893 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.876e-05/0.1729, allocations: 3.938 kB / 0.5893 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.254e-05/0.173, allocations: 0 / 0.5893 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001805/0.1731, allocations: 19.98 kB / 0.5893 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.344e-05/0.1732, allocations: 35.84 kB / 0.5893 GB, free: 1.199 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.848e-05/0.1733, allocations: 4 kB / 0.5894 GB, free: 1.195 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.718e-05/0.1734, allocations: 11.98 kB / 0.5894 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.408e-05/0.1734, allocations: 11.92 kB / 0.5894 GB, free: 1.172 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.1734, allocations: 0 / 0.5894 GB, free: 1.172 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.688e-05/0.1735, allocations: 12 kB / 0.5894 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.577e-05/0.1735, allocations: 7.984 kB / 0.5894 GB, free: 1.152 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.1736, allocations: 37.62 kB / 0.5894 GB, free: 1.109 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.1737, allocations: 31.89 kB / 0.5895 GB, free: 1.078 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1737, allocations: 0 / 0.5895 GB, free: 1.078 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1737, allocations: 4 kB / 0.5895 GB, free: 1.074 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1737, allocations: 0 / 0.5895 GB, free: 1.074 MB / 494.1 MB 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.0005078/0.1742, allocations: 347.7 kB / 0.5898 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.1743, allocations: 8.031 kB / 0.5898 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.1743, allocations: 4.938 kB / 0.5898 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.1744, allocations: 164.3 kB / 0.59 GB, free: 484 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.1745, allocations: 4.375 kB / 0.59 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.1745, allocations: 4.375 kB / 0.59 GB, free: 476 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.1747, allocations: 62.22 kB / 0.59 GB, free: 408 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.731e-06/0.1747, allocations: 4.125 kB / 0.59 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.1747, allocations: 7.938 kB / 0.59 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1747, allocations: 0 / 0.59 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.1749, allocations: 51.95 kB / 0.5901 GB, free: 344 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003758/0.1753, allocations: 272.8 kB / 0.5904 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.1757, allocations: 66.47 kB / 0.5904 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.1758, allocations: 28.91 kB / 0.5904 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.1759, allocations: 89.09 kB / 0.5905 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.1759, allocations: 30.56 kB / 0.5906 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1759, allocations: 0 / 0.5906 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003951/0.1763, allocations: 117.6 kB / 0.5907 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.1764, allocations: 51.41 kB / 0.5907 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.98e-05/0.1765, allocations: 97.86 kB / 0.5908 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.1765, allocations: 25.7 kB / 0.5908 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.98e-05/0.1765, allocations: 84.12 kB / 0.5909 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.1765, allocations: 15.78 kB / 0.5909 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.494e-05/0.1766, allocations: 13.72 kB / 0.5909 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1767, allocations: 314.8 kB / 0.5912 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.1769, allocations: 27.97 kB / 0.5913 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.553e-05/0.1769, allocations: 19.98 kB / 0.5913 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.1771, allocations: 61.28 kB / 0.5914 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1771, allocations: 3.938 kB / 0.5914 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002359/0.1774, allocations: 97.48 kB / 0.5914 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.1774, allocations: 4 kB / 0.5915 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1774, allocations: 4 kB / 0.5915 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.1774, allocations: 0 / 0.5915 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.08e-05/0.1775, allocations: 11.98 kB / 0.5915 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1775, allocations: 0 / 0.5915 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.254e-05/0.1776, allocations: 11.98 kB / 0.5915 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-06/0.1776, allocations: 0 / 0.5915 GB, free: 14.77 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.871e-05/0.1777, allocations: 121.8 kB / 0.5916 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.1777, allocations: 0 / 0.5916 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.178, allocations: 93.08 kB / 0.5917 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.178, allocations: 4 kB / 0.5917 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.178, allocations: 3.938 kB / 0.5917 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.178, allocations: 0 / 0.5917 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.1782, allocations: 165.6 kB / 0.5918 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.1782, allocations: 4 kB / 0.5919 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.859e-05/0.1783, allocations: 15.98 kB / 0.5919 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1783, allocations: 4 kB / 0.5919 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.1783, allocations: 0 / 0.5919 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1783, allocations: 0 / 0.5919 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1783, allocations: 0 / 0.5919 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.1786, allocations: 187.4 kB / 0.5921 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.36e-05/0.1786, allocations: 81.02 kB / 0.5921 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.1786, allocations: 4 kB / 0.5921 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.672e-05/0.1787, allocations: 11.98 kB / 0.5921 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.1788, allocations: 11.98 kB / 0.5922 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.1788, allocations: 0 / 0.5922 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.845e-05/0.1788, allocations: 79.28 kB / 0.5922 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1788, allocations: 0 / 0.5922 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002235/0.1791, allocations: 8 kB / 0.5922 GB, free: 13.89 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.0001285/0.1792, allocations: 99.25 kB / 0.5923 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002354/0.1795, allocations: 59.94 kB / 0.5924 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1795, allocations: 0 / 0.5924 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.1796, allocations: 31.92 kB / 0.5924 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.1798, allocations: 15.88 kB / 0.5924 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002606/0.1801, allocations: 121.1 kB / 0.5926 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.1804, allocations: 0.6809 MB / 0.5932 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.833e-05/0.1804, allocations: 0 / 0.5932 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.1804, allocations: 19.42 kB / 0.5932 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of SimCode: time 5.91e-07/0.1804, allocations: 0 / 0.5932 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of Templates: time 0.002593/0.183, allocations: 0.6133 MB / 0.5938 GB, free: 12.2 MB / 0.4981 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)