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.0009587/0.0009586, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.000935/0.0009351, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.211/1.211, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8238/0.8238, allocations: 135.2 MB / 426.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002861, allocations: 12 kB / 0.5068 GB, free: 5.27 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1612, allocations: 82.31 MB / 0.5872 GB, free: 3.133 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001501/0.1628, allocations: 1.21 MB / 0.5884 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002865/0.1631, allocations: 124.5 kB / 0.5885 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.539e-05/0.1631, allocations: 0 / 0.5885 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.244e-05/0.1631, allocations: 4 kB / 0.5885 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.081e-05/0.1632, allocations: 0 / 0.5885 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.1634, allocations: 23.91 kB / 0.5885 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.949e-05/0.1634, allocations: 15.94 kB / 0.5885 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.776e-05/0.1635, allocations: 7.984 kB / 0.5885 GB, free: 1.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.534e-05/0.1635, allocations: 11.98 kB / 0.5886 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.28e-05/0.1636, allocations: 11.92 kB / 0.5886 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.1636, allocations: 0 / 0.5886 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.407e-05/0.1637, allocations: 15.98 kB / 0.5886 GB, free: 1.691 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-06/0.1637, allocations: 4 kB / 0.5886 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.1637, allocations: 29.7 kB / 0.5886 GB, free: 1.652 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.031e-05/0.1638, allocations: 27.94 kB / 0.5886 GB, free: 1.625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1638, allocations: 0 / 0.5886 GB, free: 1.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1638, allocations: 0 / 0.5886 GB, free: 1.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.748e-06/0.1638, allocations: 0 / 0.5886 GB, free: 1.625 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.000415/0.1642, allocations: 343.5 kB / 0.589 GB, free: 1.242 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.1643, allocations: 19.97 kB / 0.589 GB, free: 1.223 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.635e-05/0.1643, allocations: 3.938 kB / 0.589 GB, free: 1.219 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.1644, allocations: 167 kB / 0.5892 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1644, allocations: 0 / 0.5892 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.1645, allocations: 0 / 0.5892 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.1646, allocations: 65.66 kB / 0.5892 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1647, allocations: 7.922 kB / 0.5892 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.1647, allocations: 0 / 0.5892 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1647, allocations: 8 kB / 0.5892 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.1649, allocations: 47.95 kB / 0.5893 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003238/0.1652, allocations: 272.8 kB / 0.5895 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.1655, allocations: 62.53 kB / 0.5896 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.1656, allocations: 81.17 kB / 0.5897 GB, free: 408 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.1656, allocations: 30.66 kB / 0.5897 GB, free: 368 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1656, allocations: 0 / 0.5897 GB, free: 368 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003728/0.166, allocations: 117.6 kB / 0.5898 GB, free: 244 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.1661, allocations: 51.41 kB / 0.5899 GB, free: 180 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.669e-05/0.1662, allocations: 101.8 kB / 0.59 GB, free: 68 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.1662, allocations: 29.7 kB / 0.59 GB, free: 32 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.436e-05/0.1662, allocations: 80.14 kB / 0.5901 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.1663, allocations: 11.84 kB / 0.5901 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.1663, allocations: 0 / 0.5901 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.1664, allocations: 322.8 kB / 0.5904 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.875e-05/0.1665, allocations: 19.98 kB / 0.5904 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.791e-05/0.1666, allocations: 27.98 kB / 0.5904 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.776e-05/0.1667, allocations: 27.97 kB / 0.5905 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1667, allocations: 0 / 0.5905 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000215/0.1669, allocations: 93.5 kB / 0.5905 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1669, allocations: 4 kB / 0.5905 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1669, allocations: 0 / 0.5905 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.1669, allocations: 0 / 0.5905 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.788e-05/0.167, allocations: 15.98 kB / 0.5906 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.167, allocations: 0 / 0.5906 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.811e-05/0.1671, allocations: 11.98 kB / 0.5906 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.1671, allocations: 11.94 kB / 0.5906 GB, free: 15.4 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.4e-05/0.1672, allocations: 109.8 kB / 0.5907 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.223e-05/0.1672, allocations: 4 kB / 0.5907 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.1675, allocations: 97.08 kB / 0.5908 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1675, allocations: 4.562 kB / 0.5908 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1675, allocations: 0 / 0.5908 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1675, allocations: 0 / 0.5908 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.1677, allocations: 161.6 kB / 0.5909 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1677, allocations: 0 / 0.5909 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.108e-05/0.1678, allocations: 15.98 kB / 0.591 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1678, allocations: 0 / 0.591 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.1678, allocations: 7.984 kB / 0.591 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1678, allocations: 0 / 0.591 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1678, allocations: 0 / 0.591 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002614/0.1681, allocations: 195.4 kB / 0.5912 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.427e-05/0.1681, allocations: 81.02 kB / 0.5912 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.1682, allocations: 0 / 0.5912 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.339e-05/0.1682, allocations: 11.98 kB / 0.5912 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.1683, allocations: 7.922 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-06/0.1683, allocations: 4 kB / 0.5913 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.095e-05/0.1684, allocations: 79.28 kB / 0.5913 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1684, allocations: 4 kB / 0.5913 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002107/0.1686, allocations: 4 kB / 0.5913 GB, free: 14.53 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 (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.0001473/0.1687, allocations: 103.2 kB / 0.5914 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000236/0.169, allocations: 59.94 kB / 0.5915 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.169, allocations: 0 / 0.5915 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.473e-05/0.1691, allocations: 31.98 kB / 0.5915 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.1693, allocations: 3.953 kB / 0.5915 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002825/0.1696, allocations: 124.6 kB / 0.5916 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.1698, allocations: 0.6809 MB / 0.5923 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.743e-05/0.1698, allocations: 8 kB / 0.5923 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.138e-05/0.1699, allocations: 7.438 kB / 0.5923 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1699, allocations: 0 / 0.5923 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of Templates: time 0.00243/0.1723, allocations: 0.5889 MB / 0.5929 GB, free: 12.87 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: