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.004738/0.004738, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001083/0.001083, allocations: 191.3 kB / 16.67 MB, free: 5.93 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8386/0.8386, allocations: 135.1 MB / 425.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001329, allocations: 63.94 kB / 0.5856 GB, free: 21.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.167, allocations: 80.93 MB / 0.6646 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003941/0.171, allocations: 1.503 MB / 0.6661 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004389/0.1715, allocations: 124.5 kB / 0.6662 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.105e-05/0.1716, allocations: 4 kB / 0.6662 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.778e-05/0.1716, allocations: 3.938 kB / 0.6662 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.674e-05/0.1718, allocations: 3.938 kB / 0.6662 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.1721, allocations: 15.98 kB / 0.6663 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.1722, allocations: 31.91 kB / 0.6663 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.1724, allocations: 11.98 kB / 0.6663 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.391e-05/0.1725, allocations: 15.94 kB / 0.6663 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.081e-05/0.1726, allocations: 11.98 kB / 0.6663 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.1726, allocations: 4 kB / 0.6663 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.298e-05/0.1727, allocations: 11.98 kB / 0.6663 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.264e-05/0.1727, allocations: 11.94 kB / 0.6664 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.1728, allocations: 15.91 kB / 0.6664 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.1729, allocations: 31.91 kB / 0.6664 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.1729, allocations: 4 kB / 0.6664 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.903e-06/0.173, allocations: 0 / 0.6664 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.173, allocations: 4 kB / 0.6664 GB, free: 3.938 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.0005969/0.1736, allocations: 347.4 kB / 0.6667 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.1736, allocations: 13.05 kB / 0.6668 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.648e-05/0.1737, allocations: 4.844 kB / 0.6668 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.1739, allocations: 168.4 kB / 0.6669 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.1739, allocations: 384 / 0.6669 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.1739, allocations: 12.31 kB / 0.6669 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.1741, allocations: 58.22 kB / 0.667 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1742, allocations: 192 / 0.667 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.1742, allocations: 3.938 kB / 0.667 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.1742, allocations: 4 kB / 0.667 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.1744, allocations: 39.95 kB / 0.667 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.1749, allocations: 260.9 kB / 0.6673 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.1752, allocations: 66.47 kB / 0.6673 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1753, allocations: 24.91 kB / 0.6674 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001591/0.1755, allocations: 85.09 kB / 0.6674 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.1755, allocations: 30.56 kB / 0.6675 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.1755, allocations: 0 / 0.6675 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004202/0.176, allocations: 101.5 kB / 0.6676 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.176, allocations: 55.39 kB / 0.6676 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.582e-05/0.1761, allocations: 101.9 kB / 0.6677 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.1761, allocations: 25.7 kB / 0.6678 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.281e-05/0.1762, allocations: 80.14 kB / 0.6678 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.1762, allocations: 15.83 kB / 0.6678 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/0.1763, allocations: 13.72 kB / 0.6679 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1764, allocations: 322.8 kB / 0.6682 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.597e-05/0.1765, allocations: 19.97 kB / 0.6682 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.383e-05/0.1766, allocations: 19.98 kB / 0.6682 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.1768, allocations: 44.75 kB / 0.6682 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1768, allocations: 7.938 kB / 0.6683 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002361/0.1771, allocations: 73.66 kB / 0.6683 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1771, allocations: 4 kB / 0.6683 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.1771, allocations: 4 kB / 0.6683 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.1771, allocations: 0.5156 kB / 0.6683 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.522e-05/0.1772, allocations: 11.98 kB / 0.6683 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1772, allocations: 0 / 0.6683 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.378e-05/0.1773, allocations: 7.984 kB / 0.6683 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.1773, allocations: 0 / 0.6683 GB, free: 1.707 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.0001071/0.1774, allocations: 117.8 kB / 0.6685 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-05/0.1775, allocations: 7.906 kB / 0.6685 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002877/0.1778, allocations: 89.06 kB / 0.6686 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1778, allocations: 0 / 0.6686 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1778, allocations: 0 / 0.6686 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1778, allocations: 4 kB / 0.6686 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.1781, allocations: 165.6 kB / 0.6687 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1781, allocations: 0 / 0.6687 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.931e-05/0.1782, allocations: 15.98 kB / 0.6687 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1782, allocations: 0 / 0.6687 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.1782, allocations: 3.938 kB / 0.6687 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.1782, allocations: 4 kB / 0.6687 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1782, allocations: 0 / 0.6687 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.1785, allocations: 175.4 kB / 0.6689 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.949e-05/0.1786, allocations: 81.11 kB / 0.669 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.1786, allocations: 0 / 0.669 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.769e-05/0.1787, allocations: 11.98 kB / 0.669 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/0.1788, allocations: 7.984 kB / 0.669 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.1788, allocations: 0 / 0.669 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.389e-05/0.1788, allocations: 83.28 kB / 0.6691 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.41e-07/0.1788, allocations: 0 / 0.6691 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002381/0.1791, allocations: 8 kB / 0.6691 GB, free: 0.8438 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.0001791/0.1793, allocations: 104.5 kB / 0.6692 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002619/0.1795, allocations: 51.94 kB / 0.6692 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1796, allocations: 0 / 0.6692 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.1797, allocations: 19.92 kB / 0.6693 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.18, allocations: 13.81 kB / 0.6693 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003718/0.1804, allocations: 121.4 kB / 0.6694 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.1807, allocations: 0.6807 MB / 0.6701 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.508e-05/0.1808, allocations: 3.984 kB / 0.6701 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.1808, allocations: 15.44 kB / 0.6701 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of SimCode: time 4.21e-07/0.1808, allocations: 0 / 0.6701 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of Templates: time 0.003228/0.184, allocations: 0.7193 MB / 0.6708 GB, free: 15.07 MB / 0.5137 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)