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.001336/0.001336, 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.001206/0.001206, allocations: 190.9 kB / 16.53 MB, free: 6.391 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9242/0.9242, allocations: 135.1 MB / 425.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 65.94 kB / 0.5053 GB, free: 5.316 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1898, allocations: 80.92 MB / 0.5844 GB, free: 4.551 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003611/0.1935, allocations: 1.498 MB / 0.5858 GB, free: 3.031 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004528/0.194, allocations: 130.1 kB / 0.586 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.242e-05/0.194, allocations: 0 / 0.586 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.679e-05/0.1941, allocations: 0 / 0.586 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-05/0.1941, allocations: 3.938 kB / 0.586 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.1944, allocations: 19.92 kB / 0.586 GB, free: 2.879 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.279e-05/0.1945, allocations: 39.8 kB / 0.586 GB, free: 2.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.1946, allocations: 15.97 kB / 0.586 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.196e-05/0.1946, allocations: 8 kB / 0.586 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.97e-05/0.1947, allocations: 15.92 kB / 0.586 GB, free: 2.801 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.1947, allocations: 4 kB / 0.5861 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.714e-05/0.1948, allocations: 19.98 kB / 0.5861 GB, free: 2.777 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.482e-05/0.1948, allocations: 4 kB / 0.5861 GB, free: 2.773 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.1948, allocations: 11.94 kB / 0.5861 GB, free: 2.762 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.195, allocations: 35.88 kB / 0.5861 GB, free: 2.727 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.195, allocations: 4 kB / 0.5861 GB, free: 2.723 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.195, allocations: 0 / 0.5861 GB, free: 2.723 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.195, allocations: 0 / 0.5861 GB, free: 2.723 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.0004806/0.1955, allocations: 343.7 kB / 0.5865 GB, free: 2.336 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1955, allocations: 8.031 kB / 0.5865 GB, free: 2.328 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.744e-05/0.1956, allocations: 4.938 kB / 0.5865 GB, free: 2.324 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.1957, allocations: 168.3 kB / 0.5866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.1957, allocations: 384 / 0.5866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.1957, allocations: 8.375 kB / 0.5866 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.196, allocations: 58.23 kB / 0.5867 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.196, allocations: 8.062 kB / 0.5867 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.196, allocations: 7.938 kB / 0.5867 GB, free: 2.035 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.196, allocations: 0 / 0.5867 GB, free: 2.035 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.1962, allocations: 39.95 kB / 0.5867 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004265/0.1967, allocations: 265 kB / 0.587 GB, free: 1.688 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003878/0.1971, allocations: 62.53 kB / 0.5871 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.1972, allocations: 24.78 kB / 0.5871 GB, free: 1.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.1973, allocations: 81.11 kB / 0.5872 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.1974, allocations: 34.55 kB / 0.5872 GB, free: 1.449 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1974, allocations: 8 kB / 0.5872 GB, free: 1.441 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004144/0.1978, allocations: 85.64 kB / 0.5873 GB, free: 1.352 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.1978, allocations: 51.41 kB / 0.5873 GB, free: 1.289 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.932e-05/0.1979, allocations: 101.8 kB / 0.5874 GB, free: 1.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.1979, allocations: 25.7 kB / 0.5874 GB, free: 1.148 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.265e-05/0.198, allocations: 88.05 kB / 0.5875 GB, free: 1.059 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.198, allocations: 15.92 kB / 0.5875 GB, free: 1.043 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.1981, allocations: 21.7 kB / 0.5876 GB, free: 1.016 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1982, allocations: 314.8 kB / 0.5879 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.669e-05/0.1983, allocations: 19.98 kB / 0.5879 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.039e-05/0.1984, allocations: 15.97 kB / 0.5879 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.1986, allocations: 49.28 kB / 0.588 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1986, allocations: 7.938 kB / 0.588 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002219/0.1988, allocations: 77.55 kB / 0.588 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1988, allocations: 14.44 kB / 0.588 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1989, allocations: 0 / 0.588 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1989, allocations: 0 / 0.588 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.613e-05/0.199, allocations: 11.98 kB / 0.5881 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.199, allocations: 3.938 kB / 0.5881 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.837e-05/0.199, allocations: 7.984 kB / 0.5881 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1991, allocations: 4 kB / 0.5881 GB, free: 496 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 8.853e-05/0.1992, allocations: 117.8 kB / 0.5882 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.1992, allocations: 0 / 0.5882 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002822/0.1995, allocations: 77.14 kB / 0.5883 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1995, allocations: 4 kB / 0.5883 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1995, allocations: 3.938 kB / 0.5883 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1995, allocations: 4 kB / 0.5883 GB, free: 272 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.1997, allocations: 161.6 kB / 0.5884 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1997, allocations: 0 / 0.5884 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.776e-05/0.1998, allocations: 15.98 kB / 0.5884 GB, free: 44 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1998, allocations: 4 kB / 0.5884 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.1998, allocations: 4 kB / 0.5884 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1998, allocations: 3.938 kB / 0.5885 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1998, allocations: 0 / 0.5885 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003183/0.2002, allocations: 179.3 kB / 0.5886 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-05/0.2002, allocations: 77.11 kB / 0.5887 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.2002, allocations: 0 / 0.5887 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.562e-05/0.2003, allocations: 7.984 kB / 0.5887 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.2004, allocations: 8 kB / 0.5887 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-06/0.2004, allocations: 0 / 0.5887 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.74e-05/0.2004, allocations: 83.27 kB / 0.5888 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2004, allocations: 0 / 0.5888 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002294/0.2007, allocations: 12 kB / 0.5888 GB, free: 15.64 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.000166/0.2008, allocations: 99.25 kB / 0.5889 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.2011, allocations: 47.89 kB / 0.5889 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2011, allocations: 0 / 0.5889 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.2012, allocations: 27.97 kB / 0.589 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.2015, allocations: 7.938 kB / 0.589 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003151/0.2018, allocations: 121.5 kB / 0.5891 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.2021, allocations: 0.6772 MB / 0.5898 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.341e-05/0.2021, allocations: 0 / 0.5898 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.928e-05/0.2022, allocations: 15.42 kB / 0.5898 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of SimCode: time 1.914e-06/0.2022, allocations: 4 kB / 0.5898 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of Templates: time 0.003031/0.2052, allocations: 0.7099 MB / 0.5905 GB, free: 13.88 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)