Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001778/0.001778, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002561/0.002561, allocations: 194.4 kB / 16.14 MB, free: 6.711 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9535/0.9535, allocations: 135.1 MB / 425.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 62.84 kB / 0.5047 GB, free: 5.754 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.199, allocations: 80.93 MB / 0.5837 GB, free: 4.996 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001814/0.2008, allocations: 0.6271 MB / 0.5843 GB, free: 4.359 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002777/0.2011, allocations: 59.78 kB / 0.5844 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.049e-05/0.2011, allocations: 0 / 0.5844 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.691e-05/0.2012, allocations: 0 / 0.5844 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.2012, allocations: 0 / 0.5844 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.2014, allocations: 11.98 kB / 0.5844 GB, free: 4.289 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.674e-05/0.2014, allocations: 4 kB / 0.5844 GB, free: 4.285 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.2015, allocations: 4 kB / 0.5844 GB, free: 4.281 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.419e-05/0.2015, allocations: 3.938 kB / 0.5844 GB, free: 4.277 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.093e-05/0.2015, allocations: 0 / 0.5844 GB, free: 4.277 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.307e-06/0.2015, allocations: 3.938 kB / 0.5844 GB, free: 4.273 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.69e-05/0.2016, allocations: 7.984 kB / 0.5844 GB, free: 4.266 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.185e-05/0.2016, allocations: 8 kB / 0.5844 GB, free: 4.258 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.952e-05/0.2017, allocations: 0 / 0.5844 GB, free: 4.258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.734e-05/0.2017, allocations: 11.97 kB / 0.5845 GB, free: 4.246 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2017, allocations: 0 / 0.5845 GB, free: 4.246 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.2018, allocations: 4 kB / 0.5845 GB, free: 4.242 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.2018, allocations: 3.938 kB / 0.5845 GB, free: 4.238 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.0002846/0.2021, allocations: 315.6 kB / 0.5848 GB, free: 3.879 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2021, allocations: 8.031 kB / 0.5848 GB, free: 3.871 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.837e-05/0.2021, allocations: 4.938 kB / 0.5848 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.152e-05/0.2022, allocations: 164.4 kB / 0.5849 GB, free: 3.668 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.2022, allocations: 384 / 0.5849 GB, free: 3.668 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.2023, allocations: 4.312 kB / 0.5849 GB, free: 3.664 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.314e-05/0.2024, allocations: 30.27 kB / 0.585 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.2024, allocations: 4.188 kB / 0.585 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.2024, allocations: 3.938 kB / 0.585 GB, free: 3.621 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2024, allocations: 0 / 0.585 GB, free: 3.621 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.042e-05/0.2024, allocations: 11.98 kB / 0.585 GB, free: 3.609 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.2026, allocations: 145.7 kB / 0.5851 GB, free: 3.418 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.086e-05/0.2027, allocations: 22.58 kB / 0.5851 GB, free: 3.387 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.951e-05/0.2027, allocations: 8.797 kB / 0.5852 GB, free: 3.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001723/0.2029, allocations: 89.16 kB / 0.5852 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2029, allocations: 34.56 kB / 0.5853 GB, free: 3.227 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.2029, allocations: 0 / 0.5853 GB, free: 3.227 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001548/0.2031, allocations: 49.62 kB / 0.5853 GB, free: 3.172 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.2031, allocations: 51.41 kB / 0.5854 GB, free: 3.109 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.044e-05/0.2032, allocations: 89.86 kB / 0.5855 GB, free: 3.012 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.2032, allocations: 25.7 kB / 0.5855 GB, free: 2.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.959e-05/0.2032, allocations: 80.27 kB / 0.5856 GB, free: 2.898 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.808e-05/0.2032, allocations: 7.906 kB / 0.5856 GB, free: 2.891 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.2033, allocations: 17.72 kB / 0.5856 GB, free: 2.867 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.2034, allocations: 310.8 kB / 0.5859 GB, free: 2.555 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.477e-05/0.2034, allocations: 7.938 kB / 0.5859 GB, free: 2.547 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.926e-06/0.2034, allocations: 3.984 kB / 0.5859 GB, free: 2.543 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.183e-05/0.2035, allocations: 12.86 kB / 0.5859 GB, free: 2.527 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2035, allocations: 0 / 0.5859 GB, free: 2.527 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.877e-05/0.2035, allocations: 37.77 kB / 0.5859 GB, free: 2.484 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.2036, allocations: 8 kB / 0.5859 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.2036, allocations: 0 / 0.5859 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.2036, allocations: 7.922 kB / 0.5859 GB, free: 2.469 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.889e-05/0.2037, allocations: 7.938 kB / 0.586 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2037, allocations: 3.938 kB / 0.586 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.2037, allocations: 4 kB / 0.586 GB, free: 2.453 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.2037, allocations: 0 / 0.586 GB, free: 2.453 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.027e-05/0.2038, allocations: 113.8 kB / 0.5861 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-06/0.2038, allocations: 4.031 kB / 0.5861 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.264e-05/0.2039, allocations: 49.03 kB / 0.5861 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2039, allocations: 0 / 0.5861 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2039, allocations: 0 / 0.5861 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2039, allocations: 0 / 0.5861 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.936e-05/0.204, allocations: 149.6 kB / 0.5863 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.204, allocations: 4 kB / 0.5863 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.296e-05/0.2041, allocations: 0 / 0.5863 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.2041, allocations: 4 kB / 0.5863 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.2041, allocations: 7.938 kB / 0.5863 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2041, allocations: 4.031 kB / 0.5863 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2041, allocations: 0 / 0.5863 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.366e-05/0.2042, allocations: 65.06 kB / 0.5863 GB, free: 1.977 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.195e-05/0.2042, allocations: 81.11 kB / 0.5864 GB, free: 1.879 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.2042, allocations: 3.938 kB / 0.5864 GB, free: 1.875 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.233e-05/0.2043, allocations: 4 kB / 0.5864 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.67e-05/0.2043, allocations: 0 / 0.5864 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-06/0.2043, allocations: 8.016 kB / 0.5864 GB, free: 1.863 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.616e-05/0.2043, allocations: 75.28 kB / 0.5865 GB, free: 1.789 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2043, allocations: 0 / 0.5865 GB, free: 1.789 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001853/0.2045, allocations: 4 kB / 0.5865 GB, free: 1.785 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.000153/0.2047, allocations: 99.25 kB / 0.5866 GB, free: 1.676 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.005e-05/0.2048, allocations: 11.94 kB / 0.5866 GB, free: 1.664 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2048, allocations: 4 kB / 0.5866 GB, free: 1.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.697e-05/0.2048, allocations: 12.05 kB / 0.5866 GB, free: 1.648 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.2049, allocations: 6.031 kB / 0.5866 GB, free: 1.645 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001914/0.2051, allocations: 86.61 kB / 0.5867 GB, free: 1.535 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.2054, allocations: 0.6809 MB / 0.5874 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.472e-05/0.2054, allocations: 0 / 0.5874 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.72e-05/0.2054, allocations: 11.44 kB / 0.5874 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2054, allocations: 0 / 0.5874 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of Templates: time 0.002254/0.2077, allocations: 314.6 kB / 0.5877 GB, free: 0.5117 MB / 494.1 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)