Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.000716/0.000716, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.0008195/0.0008194, allocations: 172.7 kB / 15.95 MB, free: 208 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.161/1.161, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6697/0.6697, allocations: 132.3 MB / 423.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002899/0.0002899, allocations: 8.906 kB / 0.5034 GB, free: 4.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3333, allocations: 81.58 MB / 0.5831 GB, free: 3.988 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001293/0.3346, allocations: 1.222 MB / 0.5843 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002702/0.3349, allocations: 114.1 kB / 0.5844 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.735e-05/0.3349, allocations: 3.562 kB / 0.5844 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.482e-05/0.3349, allocations: 4.641 kB / 0.5844 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.282e-05/0.335, allocations: 1.031 kB / 0.5844 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001607/0.3351, allocations: 17 kB / 0.5844 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.464e-05/0.3352, allocations: 29.22 kB / 0.5844 GB, free: 2.992 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.874e-05/0.3353, allocations: 13.66 kB / 0.5844 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.355e-05/0.3353, allocations: 18.16 kB / 0.5845 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.032e-05/0.3354, allocations: 8.047 kB / 0.5845 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.3354, allocations: 1.656 kB / 0.5845 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.3354, allocations: 9.938 kB / 0.5845 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.3355, allocations: 6.312 kB / 0.5845 GB, free: 2.965 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.631e-05/0.3355, allocations: 28.42 kB / 0.5845 GB, free: 2.934 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 6.742e-05/0.3356, allocations: 27.28 kB / 0.5845 GB, free: 2.922 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3356, allocations: 1.062 kB / 0.5845 GB, free: 2.922 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3356, allocations: 0 / 0.5845 GB, free: 2.922 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.3356, allocations: 0 / 0.5845 GB, free: 2.922 MB / 430.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.0003102/0.3359, allocations: 348.3 kB / 0.5849 GB, free: 2.562 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.3359, allocations: 9.469 kB / 0.5849 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.562e-05/0.336, allocations: 2.203 kB / 0.5849 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.888e-05/0.336, allocations: 169.8 kB / 0.585 GB, free: 2.359 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3361, allocations: 1.562 kB / 0.585 GB, free: 2.359 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.3361, allocations: 1.469 kB / 0.585 GB, free: 2.359 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.3362, allocations: 70.7 kB / 0.5851 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.3363, allocations: 0 / 0.5851 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.3363, allocations: 1 kB / 0.5851 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.3363, allocations: 0.9062 kB / 0.5851 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.3365, allocations: 55.69 kB / 0.5852 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002708/0.3367, allocations: 265 kB / 0.5854 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.337, allocations: 64.52 kB / 0.5855 GB, free: 1.984 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.609e-05/0.3371, allocations: 35.02 kB / 0.5855 GB, free: 1.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.474e-05/0.3372, allocations: 85.73 kB / 0.5856 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.191e-05/0.3372, allocations: 33.05 kB / 0.5856 GB, free: 1.832 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3372, allocations: 0 / 0.5856 GB, free: 1.832 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003387/0.3376, allocations: 106.4 kB / 0.5857 GB, free: 1.789 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.786e-05/0.3376, allocations: 56.64 kB / 0.5858 GB, free: 1.723 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.812e-05/0.3376, allocations: 101.5 kB / 0.5859 GB, free: 1.621 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-06/0.3377, allocations: 29.64 kB / 0.5859 GB, free: 1.586 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.277e-05/0.3377, allocations: 94.08 kB / 0.586 GB, free: 1.492 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.271e-05/0.3377, allocations: 6.047 kB / 0.586 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-06/0.3377, allocations: 0 / 0.586 GB, free: 1.488 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.499e-05/0.3378, allocations: 317.2 kB / 0.5863 GB, free: 1.172 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.811e-05/0.3378, allocations: 24.73 kB / 0.5863 GB, free: 1.168 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-05/0.3379, allocations: 30.16 kB / 0.5864 GB, free: 1.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.787e-05/0.338, allocations: 25.11 kB / 0.5864 GB, free: 1.156 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.338, allocations: 0 / 0.5864 GB, free: 1.156 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001876/0.3382, allocations: 86.3 kB / 0.5865 GB, free: 1.113 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.3382, allocations: 5.344 kB / 0.5865 GB, free: 1.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3382, allocations: 3.938 kB / 0.5865 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.3382, allocations: 1.812 kB / 0.5865 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.499e-05/0.3383, allocations: 13.41 kB / 0.5865 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.3383, allocations: 4.828 kB / 0.5865 GB, free: 1.105 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.153e-05/0.3384, allocations: 12.52 kB / 0.5865 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.3384, allocations: 5.719 kB / 0.5865 GB, free: 1.098 MB / 430.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 (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 4.554e-05/0.3385, allocations: 112.2 kB / 0.5866 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.3385, allocations: 3.016 kB / 0.5866 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002231/0.3387, allocations: 100.4 kB / 0.5867 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3387, allocations: 0 / 0.5867 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3387, allocations: 0 / 0.5867 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.3387, allocations: 5.844 kB / 0.5867 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.3388, allocations: 158.5 kB / 0.5869 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.3389, allocations: 0 / 0.5869 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.818e-05/0.3389, allocations: 14.7 kB / 0.5869 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3389, allocations: 0 / 0.5869 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.3389, allocations: 1.688 kB / 0.5869 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.339, allocations: 0 / 0.5869 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.339, allocations: 4.562 kB / 0.5869 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002031/0.3392, allocations: 183.6 kB / 0.5871 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.3392, allocations: 90.44 kB / 0.5872 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.3392, allocations: 5.312 kB / 0.5872 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.53e-05/0.3393, allocations: 8.391 kB / 0.5872 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.3393, allocations: 13.92 kB / 0.5872 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.3393, allocations: 2.141 kB / 0.5872 GB, free: 468 kB / 430.1 MB Notification: Performance of sorting global known variables: time 2.045e-05/0.3394, allocations: 83.59 kB / 0.5873 GB, free: 388 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3394, allocations: 0 / 0.5873 GB, free: 388 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002095/0.3396, allocations: 6.906 kB / 0.5873 GB, free: 388 kB / 430.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.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.0001025/0.3397, allocations: 102.5 kB / 0.5874 GB, free: 296 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.3399, allocations: 58.81 kB / 0.5874 GB, free: 284 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3399, allocations: 1.281 kB / 0.5874 GB, free: 284 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.222e-05/0.34, allocations: 33.11 kB / 0.5875 GB, free: 276 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.3403, allocations: 7.453 kB / 0.5875 GB, free: 272 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002254/0.3405, allocations: 114.8 kB / 0.5876 GB, free: 152 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/0.3407, allocations: 0.6782 MB / 0.5882 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.03e-05/0.3407, allocations: 7.125 kB / 0.5882 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.088e-05/0.3407, allocations: 9.766 kB / 0.5883 GB, free: 15.44 MB / 446.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3407, allocations: 0 / 0.5883 GB, free: 15.44 MB / 446.1 MB Notification: Performance of Templates: time 0.002484/0.3432, allocations: 0.5954 MB / 0.5888 GB, free: 15.37 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)