Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 197.4 kB / 16.54 MB, free: 6.672 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7317/0.7317, allocations: 132.2 MB / 422.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 60.84 kB / 0.5018 GB, free: 8.715 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1664, allocations: 80.21 MB / 0.5801 GB, free: 8.723 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.002107/0.1685, allocations: 0.5845 MB / 0.5807 GB, free: 8.133 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003106/0.1689, allocations: 51.8 kB / 0.5807 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.176e-05/0.1689, allocations: 0 / 0.5807 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.423e-05/0.1689, allocations: 0 / 0.5807 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.342e-06/0.169, allocations: 0 / 0.5807 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.1692, allocations: 11.98 kB / 0.5807 GB, free: 8.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.676e-05/0.1693, allocations: 0 / 0.5807 GB, free: 8.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.355e-05/0.1694, allocations: 4 kB / 0.5807 GB, free: 8.066 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.1694, allocations: 0 / 0.5807 GB, free: 8.066 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.657e-05/0.1694, allocations: 11.98 kB / 0.5807 GB, free: 8.055 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.1695, allocations: 0 / 0.5807 GB, free: 8.055 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.953e-05/0.1696, allocations: 7.984 kB / 0.5808 GB, free: 8.047 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.1696, allocations: 7.938 kB / 0.5808 GB, free: 8.039 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.1696, allocations: 0 / 0.5808 GB, free: 8.039 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.59e-05/0.1697, allocations: 8 kB / 0.5808 GB, free: 8.031 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1697, allocations: 0 / 0.5808 GB, free: 8.031 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1697, allocations: 7.875 kB / 0.5808 GB, free: 8.023 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1697, allocations: 0 / 0.5808 GB, free: 8.023 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003671/0.1701, allocations: 327.6 kB / 0.5811 GB, free: 7.652 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.1702, allocations: 12.03 kB / 0.5811 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.1702, allocations: 0.9375 kB / 0.5811 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.75e-05/0.1703, allocations: 160.4 kB / 0.5813 GB, free: 7.445 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.1703, allocations: 4.359 kB / 0.5813 GB, free: 7.441 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.1704, allocations: 384 / 0.5813 GB, free: 7.441 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.1705, allocations: 30.27 kB / 0.5813 GB, free: 7.406 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1705, allocations: 192 / 0.5813 GB, free: 7.406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1705, allocations: 3.938 kB / 0.5813 GB, free: 7.402 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1705, allocations: 0 / 0.5813 GB, free: 7.402 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.943e-05/0.1706, allocations: 8 kB / 0.5813 GB, free: 7.395 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001753/0.1707, allocations: 153.7 kB / 0.5814 GB, free: 7.195 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.659e-05/0.1708, allocations: 30.45 kB / 0.5815 GB, free: 7.156 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.17e-05/0.1708, allocations: 4.859 kB / 0.5815 GB, free: 7.148 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/0.171, allocations: 85.16 kB / 0.5816 GB, free: 7.047 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1711, allocations: 30.56 kB / 0.5816 GB, free: 7.008 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.1711, allocations: 4 kB / 0.5816 GB, free: 7.004 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001679/0.1712, allocations: 49.58 kB / 0.5816 GB, free: 6.949 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.1713, allocations: 55.39 kB / 0.5817 GB, free: 6.883 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.114e-05/0.1713, allocations: 89.86 kB / 0.5818 GB, free: 6.785 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.1714, allocations: 25.7 kB / 0.5818 GB, free: 6.754 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.856e-05/0.1714, allocations: 84.12 kB / 0.5819 GB, free: 6.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.1714, allocations: 3.906 kB / 0.5819 GB, free: 6.664 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.252e-05/0.1715, allocations: 17.72 kB / 0.5819 GB, free: 6.641 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1716, allocations: 315 kB / 0.5822 GB, free: 6.324 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.447e-05/0.1716, allocations: 4 kB / 0.5822 GB, free: 6.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.586e-06/0.1716, allocations: 0 / 0.5822 GB, free: 6.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.829e-05/0.1717, allocations: 16.84 kB / 0.5822 GB, free: 6.301 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1717, allocations: 4 kB / 0.5822 GB, free: 6.297 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.789e-05/0.1717, allocations: 37.64 kB / 0.5823 GB, free: 6.254 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.1718, allocations: 4 kB / 0.5823 GB, free: 6.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.1718, allocations: 0 / 0.5823 GB, free: 6.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1718, allocations: 8.031 kB / 0.5823 GB, free: 6.242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.592e-05/0.1719, allocations: 7.984 kB / 0.5823 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1719, allocations: 0 / 0.5823 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.762e-05/0.1719, allocations: 4 kB / 0.5823 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/0.1719, allocations: 0 / 0.5823 GB, free: 6.23 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.293e-05/0.172, allocations: 113.8 kB / 0.5824 GB, free: 6.109 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-06/0.172, allocations: 0 / 0.5824 GB, free: 6.109 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.1721, allocations: 49.03 kB / 0.5824 GB, free: 6.051 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1721, allocations: 7.969 kB / 0.5825 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.1721, allocations: 0 / 0.5825 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1722, allocations: 3.938 kB / 0.5825 GB, free: 6.039 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.1723, allocations: 149.6 kB / 0.5826 GB, free: 5.844 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1723, allocations: 3.984 kB / 0.5826 GB, free: 5.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.447e-05/0.1723, allocations: 0 / 0.5826 GB, free: 5.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1723, allocations: 0 / 0.5826 GB, free: 5.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.1723, allocations: 7.938 kB / 0.5826 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1723, allocations: 3.938 kB / 0.5826 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1723, allocations: 0 / 0.5826 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.917e-05/0.1725, allocations: 65.12 kB / 0.5827 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-05/0.1725, allocations: 77.11 kB / 0.5827 GB, free: 5.652 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.1725, allocations: 3.938 kB / 0.5828 GB, free: 5.648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.207e-05/0.1725, allocations: 4 kB / 0.5828 GB, free: 5.645 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.002e-05/0.1726, allocations: 4 kB / 0.5828 GB, free: 5.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.1726, allocations: 0 / 0.5828 GB, free: 5.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.858e-05/0.1726, allocations: 75.28 kB / 0.5828 GB, free: 5.566 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1726, allocations: 0 / 0.5828 GB, free: 5.566 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.1729, allocations: 8.031 kB / 0.5828 GB, free: 5.559 MB / 494.1 MB 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001676/0.173, allocations: 109.9 kB / 0.5829 GB, free: 5.445 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.568e-05/0.1731, allocations: 8 kB / 0.583 GB, free: 5.438 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1731, allocations: 0 / 0.583 GB, free: 5.438 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.695e-05/0.1732, allocations: 8 kB / 0.583 GB, free: 5.43 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.1733, allocations: 6.172 kB / 0.583 GB, free: 5.426 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000219/0.1735, allocations: 92.97 kB / 0.5831 GB, free: 5.309 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.1738, allocations: 0.6729 MB / 0.5837 GB, free: 4.609 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.555e-05/0.1738, allocations: 0 / 0.5837 GB, free: 4.609 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.832e-05/0.1738, allocations: 19.36 kB / 0.5837 GB, free: 4.594 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1738, allocations: 0 / 0.5837 GB, free: 4.594 MB / 494.1 MB Notification: Performance of Templates: time 0.002321/0.1761, allocations: 310.6 kB / 0.584 GB, free: 4.293 MB / 494.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)