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.001435/0.001435, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001287/0.001287, allocations: 189.3 kB / 16.25 MB, free: 6.637 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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9442/0.9442, allocations: 135.6 MB / 425.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 67.23 kB / 0.5054 GB, free: 5.211 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1789, allocations: 81.02 MB / 0.5845 GB, free: 4.328 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003039/0.182, allocations: 1.576 MB / 0.586 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004506/0.1824, allocations: 120.5 kB / 0.5862 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.831e-05/0.1825, allocations: 0 / 0.5862 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.212e-05/0.1825, allocations: 3.938 kB / 0.5862 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.272e-05/0.1826, allocations: 0 / 0.5862 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002324/0.1828, allocations: 19.98 kB / 0.5862 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.5e-05/0.1829, allocations: 35.86 kB / 0.5862 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.642e-05/0.183, allocations: 4 kB / 0.5862 GB, free: 2.547 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.719e-05/0.1831, allocations: 15.97 kB / 0.5862 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.227e-05/0.1831, allocations: 15.92 kB / 0.5862 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.1831, allocations: 4 kB / 0.5862 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.931e-05/0.1832, allocations: 8 kB / 0.5863 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.1832, allocations: 11.98 kB / 0.5863 GB, free: 2.492 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.573e-05/0.1833, allocations: 7.938 kB / 0.5863 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.1834, allocations: 43.88 kB / 0.5863 GB, free: 2.441 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1834, allocations: 4 kB / 0.5863 GB, free: 2.438 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1834, allocations: 0 / 0.5863 GB, free: 2.438 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1834, allocations: 0 / 0.5863 GB, free: 2.438 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.0005083/0.1839, allocations: 343.7 kB / 0.5866 GB, free: 2.051 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.184, allocations: 8.031 kB / 0.5867 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.203e-05/0.184, allocations: 0.9375 kB / 0.5867 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.1842, allocations: 176.2 kB / 0.5868 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.1842, allocations: 4.375 kB / 0.5868 GB, free: 1.828 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.1842, allocations: 8.375 kB / 0.5868 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.1844, allocations: 54.17 kB / 0.5869 GB, free: 1.762 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1844, allocations: 4.125 kB / 0.5869 GB, free: 1.758 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.1844, allocations: 3.938 kB / 0.5869 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1845, allocations: 4 kB / 0.5869 GB, free: 1.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.1846, allocations: 39.95 kB / 0.5869 GB, free: 1.711 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003796/0.185, allocations: 268.9 kB / 0.5872 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.1854, allocations: 54.48 kB / 0.5872 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.636e-05/0.1855, allocations: 28.89 kB / 0.5873 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001374/0.1856, allocations: 81.11 kB / 0.5874 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.1857, allocations: 34.56 kB / 0.5874 GB, free: 1.164 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1857, allocations: 0 / 0.5874 GB, free: 1.164 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003712/0.186, allocations: 97.56 kB / 0.5875 GB, free: 1.062 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.1861, allocations: 55.41 kB / 0.5875 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.1862, allocations: 97.84 kB / 0.5876 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.1863, allocations: 29.7 kB / 0.5877 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.1863, allocations: 88.05 kB / 0.5877 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.1864, allocations: 15.83 kB / 0.5878 GB, free: 0.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.535e-05/0.1864, allocations: 17.72 kB / 0.5878 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.1866, allocations: 314.8 kB / 0.5881 GB, free: 420 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.767e-05/0.1867, allocations: 15.98 kB / 0.5881 GB, free: 404 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.226e-05/0.1868, allocations: 27.97 kB / 0.5881 GB, free: 376 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.187, allocations: 44.83 kB / 0.5882 GB, free: 328 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.187, allocations: 3.938 kB / 0.5882 GB, free: 324 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002128/0.1872, allocations: 78.05 kB / 0.5882 GB, free: 240 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.1872, allocations: 8 kB / 0.5882 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1872, allocations: 0 / 0.5882 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1873, allocations: 48 / 0.5882 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.029e-05/0.1873, allocations: 15.97 kB / 0.5883 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.1874, allocations: 3.984 kB / 0.5883 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.397e-05/0.1874, allocations: 8 kB / 0.5883 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.1874, allocations: 3.984 kB / 0.5883 GB, free: 200 kB / 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 (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.0001011/0.1875, allocations: 117.8 kB / 0.5884 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.1876, allocations: 0 / 0.5884 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.1878, allocations: 81.14 kB / 0.5885 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1878, allocations: 0 / 0.5885 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.1879, allocations: 11.94 kB / 0.5885 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.1879, allocations: 0 / 0.5885 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.1881, allocations: 165.5 kB / 0.5886 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1881, allocations: 0 / 0.5886 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.093e-05/0.1881, allocations: 11.98 kB / 0.5886 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1882, allocations: 0 / 0.5886 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.1882, allocations: 4 kB / 0.5886 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1882, allocations: 3.938 kB / 0.5886 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1882, allocations: 0 / 0.5886 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002742/0.1885, allocations: 179.3 kB / 0.5888 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.1885, allocations: 81.05 kB / 0.5889 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.1885, allocations: 0 / 0.5889 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.91e-05/0.1886, allocations: 4 kB / 0.5889 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.1887, allocations: 11.98 kB / 0.5889 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.1887, allocations: 0 / 0.5889 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.584e-05/0.1887, allocations: 83.27 kB / 0.589 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1887, allocations: 4 kB / 0.589 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002312/0.189, allocations: 12 kB / 0.589 GB, free: 15.34 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.0001637/0.1891, allocations: 95.25 kB / 0.5891 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000227/0.1894, allocations: 47.95 kB / 0.5891 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.1894, allocations: 0 / 0.5891 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.406e-05/0.1895, allocations: 27.91 kB / 0.5892 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.1898, allocations: 16.55 kB / 0.5892 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003781/0.1902, allocations: 117.5 kB / 0.5893 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.1905, allocations: 0.6768 MB / 0.59 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.282e-05/0.1906, allocations: 8 kB / 0.59 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.73e-05/0.1906, allocations: 15.44 kB / 0.59 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of SimCode: time 2e-07/0.1906, allocations: 0 / 0.59 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of Templates: time 0.003303/0.1939, allocations: 0.6394 MB / 0.5906 GB, free: 13.64 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)