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.0008383/0.0008382, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0008568/0.0008571, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.3 MB / 240 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9482/0.9482, allocations: 135.3 MB / 426.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003312, allocations: 8 kB / 0.507 GB, free: 5.156 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.1951, allocations: 82.31 MB / 0.5874 GB, free: 3.008 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001765/0.1969, allocations: 1.21 MB / 0.5886 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003665/0.1973, allocations: 128.5 kB / 0.5887 GB, free: 1.652 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.834e-05/0.1973, allocations: 0 / 0.5887 GB, free: 1.652 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.985e-05/0.1974, allocations: 0 / 0.5887 GB, free: 1.652 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.649e-05/0.1974, allocations: 4 kB / 0.5887 GB, free: 1.648 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.1976, allocations: 23.91 kB / 0.5887 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.233e-05/0.1977, allocations: 23.92 kB / 0.5887 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.1978, allocations: 7.984 kB / 0.5887 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.339e-05/0.1979, allocations: 8 kB / 0.5887 GB, free: 1.586 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.554e-05/0.198, allocations: 15.91 kB / 0.5888 GB, free: 1.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.198, allocations: 8 kB / 0.5888 GB, free: 1.562 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.107e-05/0.198, allocations: 8 kB / 0.5888 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.1981, allocations: 3.984 kB / 0.5888 GB, free: 1.551 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.021e-05/0.1981, allocations: 33.7 kB / 0.5888 GB, free: 1.512 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.794e-05/0.1982, allocations: 15.97 kB / 0.5888 GB, free: 1.496 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1982, allocations: 0 / 0.5888 GB, free: 1.496 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1982, allocations: 0 / 0.5888 GB, free: 1.496 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1982, allocations: 0 / 0.5888 GB, free: 1.496 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.0006198/0.1989, allocations: 351.5 kB / 0.5892 GB, free: 1.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1989, allocations: 11.97 kB / 0.5892 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.1989, allocations: 4 kB / 0.5892 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.1992, allocations: 167 kB / 0.5893 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.1992, allocations: 0 / 0.5893 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.1992, allocations: 4 kB / 0.5893 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.1994, allocations: 69.61 kB / 0.5894 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.1994, allocations: 3.938 kB / 0.5894 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.1995, allocations: 0 / 0.5894 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1995, allocations: 0 / 0.5894 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1997, allocations: 51.95 kB / 0.5895 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004616/0.2001, allocations: 272.8 kB / 0.5897 GB, free: 448 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.2004, allocations: 62.53 kB / 0.5898 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.633e-05/0.2005, allocations: 36.91 kB / 0.5898 GB, free: 336 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.2007, allocations: 85.08 kB / 0.5899 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.2007, allocations: 34.56 kB / 0.5899 GB, free: 188 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.223e-06/0.2007, allocations: 0 / 0.5899 GB, free: 188 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003759/0.2011, allocations: 109.6 kB / 0.59 GB, free: 72 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.2011, allocations: 51.41 kB / 0.5901 GB, free: 8 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.529e-05/0.2012, allocations: 110 kB / 0.5902 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.2013, allocations: 29.7 kB / 0.5902 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.2013, allocations: 80.14 kB / 0.5903 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.2013, allocations: 7.844 kB / 0.5903 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-06/0.2013, allocations: 4 kB / 0.5903 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2015, allocations: 322.8 kB / 0.5906 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.506e-05/0.2016, allocations: 19.98 kB / 0.5906 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.537e-05/0.2016, allocations: 23.97 kB / 0.5907 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.686e-05/0.2017, allocations: 27.98 kB / 0.5907 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2017, allocations: 0 / 0.5907 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002141/0.202, allocations: 85.59 kB / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.202, allocations: 8 kB / 0.5908 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.202, allocations: 4 kB / 0.5908 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.202, allocations: 0 / 0.5908 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.729e-05/0.2021, allocations: 11.98 kB / 0.5908 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.2021, allocations: 4 kB / 0.5908 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.455e-05/0.2022, allocations: 11.89 kB / 0.5908 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.2022, allocations: 3.953 kB / 0.5908 GB, free: 15.23 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 (fac.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.64e-05/0.2023, allocations: 113.8 kB / 0.5909 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.2023, allocations: 0 / 0.5909 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002837/0.2026, allocations: 97.08 kB / 0.591 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.2026, allocations: 0 / 0.591 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.2026, allocations: 3.938 kB / 0.591 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2026, allocations: 7.984 kB / 0.591 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.2028, allocations: 161.6 kB / 0.5912 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2028, allocations: 0 / 0.5912 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.272e-05/0.2029, allocations: 15.98 kB / 0.5912 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2029, allocations: 4 kB / 0.5912 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.2029, allocations: 0 / 0.5912 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2029, allocations: 7.922 kB / 0.5912 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2029, allocations: 0 / 0.5912 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.2032, allocations: 183.5 kB / 0.5914 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.2033, allocations: 85.02 kB / 0.5915 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.2033, allocations: 0 / 0.5915 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.324e-05/0.2034, allocations: 15.92 kB / 0.5915 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.679e-05/0.2034, allocations: 7.984 kB / 0.5915 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.2034, allocations: 0 / 0.5915 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.469e-05/0.2035, allocations: 83.7 kB / 0.5916 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2035, allocations: 0 / 0.5916 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002269/0.2037, allocations: 8 kB / 0.5916 GB, free: 14.36 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000172/0.2039, allocations: 103.2 kB / 0.5917 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002297/0.2041, allocations: 56.09 kB / 0.5917 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2042, allocations: 0 / 0.5917 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.647e-05/0.2043, allocations: 28.08 kB / 0.5917 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.2045, allocations: 11.89 kB / 0.5918 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003041/0.2049, allocations: 128.7 kB / 0.5919 GB, free: 14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.2051, allocations: 0.6809 MB / 0.5925 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.043e-05/0.2052, allocations: 0 / 0.5925 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.556e-05/0.2052, allocations: 11.44 kB / 0.5926 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.2052, allocations: 0 / 0.5926 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of Templates: time 0.002727/0.2079, allocations: 0.6036 MB / 0.5931 GB, free: 12.69 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)