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.001116/0.00112, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001088/0.001088, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.365/1.365, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8127/0.8127, allocations: 135.1 MB / 426.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 63.91 kB / 0.506 GB, free: 8.414 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3367, allocations: 80.9 MB / 0.585 GB, free: 25.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002338/0.3391, allocations: 1.504 MB / 0.5865 GB, free: 24.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002983/0.3394, allocations: 124.2 kB / 0.5866 GB, free: 24.13 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.308e-05/0.3394, allocations: 1.156 kB / 0.5866 GB, free: 24.13 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.282e-05/0.3395, allocations: 4.5 kB / 0.5866 GB, free: 24.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.041e-05/0.3395, allocations: 5.906 kB / 0.5866 GB, free: 24.12 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.3397, allocations: 26.58 kB / 0.5866 GB, free: 24.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.307e-05/0.3398, allocations: 31.86 kB / 0.5867 GB, free: 24.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.736e-05/0.3399, allocations: 14.62 kB / 0.5867 GB, free: 24.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.757e-05/0.3399, allocations: 15.7 kB / 0.5867 GB, free: 24.06 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.485e-05/0.34, allocations: 22.78 kB / 0.5867 GB, free: 24.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.472e-05/0.34, allocations: 2.469 kB / 0.5867 GB, free: 24.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.453e-05/0.3401, allocations: 6.469 kB / 0.5867 GB, free: 24.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.293e-05/0.3401, allocations: 5.094 kB / 0.5867 GB, free: 24.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.3401, allocations: 15.42 kB / 0.5867 GB, free: 24.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.38e-05/0.3402, allocations: 33.23 kB / 0.5868 GB, free: 24.01 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3402, allocations: 1.125 kB / 0.5868 GB, free: 24.01 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3402, allocations: 0 / 0.5868 GB, free: 24.01 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3403, allocations: 0 / 0.5868 GB, free: 24.01 MB / 446.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.0003831/0.3406, allocations: 347.3 kB / 0.5871 GB, free: 23.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3407, allocations: 10.08 kB / 0.5871 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.239e-05/0.3407, allocations: 8.094 kB / 0.5871 GB, free: 23.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.963e-05/0.3408, allocations: 173.6 kB / 0.5873 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.3408, allocations: 2.469 kB / 0.5873 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.3408, allocations: 1.594 kB / 0.5873 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.341, allocations: 66.28 kB / 0.5874 GB, free: 23.37 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.341, allocations: 192 / 0.5874 GB, free: 23.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.3411, allocations: 9.938 kB / 0.5874 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3411, allocations: 0 / 0.5874 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.3413, allocations: 39.89 kB / 0.5874 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002777/0.3415, allocations: 261.4 kB / 0.5877 GB, free: 23.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.3419, allocations: 62.03 kB / 0.5877 GB, free: 23.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.755e-05/0.342, allocations: 26.31 kB / 0.5877 GB, free: 23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.928e-05/0.3421, allocations: 83.88 kB / 0.5878 GB, free: 22.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.236e-05/0.3421, allocations: 35.69 kB / 0.5879 GB, free: 22.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.3421, allocations: 1.062 kB / 0.5879 GB, free: 22.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003622/0.3425, allocations: 95.12 kB / 0.5879 GB, free: 22.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.3425, allocations: 52.81 kB / 0.588 GB, free: 22.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.222e-05/0.3425, allocations: 98.73 kB / 0.5881 GB, free: 22.63 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.3426, allocations: 27.98 kB / 0.5881 GB, free: 22.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.451e-05/0.3426, allocations: 89.38 kB / 0.5882 GB, free: 22.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.376e-05/0.3426, allocations: 9.125 kB / 0.5882 GB, free: 22.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.3426, allocations: 14 kB / 0.5882 GB, free: 22.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.863e-05/0.3427, allocations: 316.2 kB / 0.5885 GB, free: 22.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-05/0.3428, allocations: 18.88 kB / 0.5885 GB, free: 22.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.322e-05/0.3429, allocations: 21.45 kB / 0.5886 GB, free: 22.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.343, allocations: 50.33 kB / 0.5886 GB, free: 22.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3431, allocations: 4.531 kB / 0.5886 GB, free: 22.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002076/0.3433, allocations: 73.19 kB / 0.5887 GB, free: 22.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.3433, allocations: 4.5 kB / 0.5887 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.3433, allocations: 1.938 kB / 0.5887 GB, free: 22.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3433, allocations: 8.453 kB / 0.5887 GB, free: 22.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.142e-05/0.3434, allocations: 12.94 kB / 0.5887 GB, free: 22.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3434, allocations: 0 / 0.5887 GB, free: 22.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.757e-05/0.3435, allocations: 8.078 kB / 0.5887 GB, free: 22.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.3435, allocations: 2.219 kB / 0.5887 GB, free: 22.05 MB / 446.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 4.899e-05/0.3435, allocations: 114.1 kB / 0.5888 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.479e-05/0.3436, allocations: 1.312 kB / 0.5888 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002421/0.3438, allocations: 87.83 kB / 0.5889 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.3438, allocations: 4.766 kB / 0.5889 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3439, allocations: 1.188 kB / 0.5889 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3439, allocations: 6.344 kB / 0.5889 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.344, allocations: 159.7 kB / 0.5891 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.344, allocations: 1.375 kB / 0.5891 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.568e-05/0.3441, allocations: 10.73 kB / 0.5891 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3441, allocations: 0 / 0.5891 GB, free: 21.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.3441, allocations: 9.453 kB / 0.5891 GB, free: 21.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.3441, allocations: 0.5625 kB / 0.5891 GB, free: 21.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3441, allocations: 2.656 kB / 0.5891 GB, free: 21.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.3443, allocations: 175 kB / 0.5893 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.58e-05/0.3444, allocations: 84.2 kB / 0.5893 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.3444, allocations: 3.984 kB / 0.5894 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.521e-05/0.3445, allocations: 4.094 kB / 0.5894 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.3445, allocations: 11.98 kB / 0.5894 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.3445, allocations: 1.219 kB / 0.5894 GB, free: 21.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.09e-05/0.3446, allocations: 82.59 kB / 0.5894 GB, free: 21.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3446, allocations: 0.8125 kB / 0.5894 GB, free: 21.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.3448, allocations: 7.062 kB / 0.5895 GB, free: 21.3 MB / 446.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 (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.0001145/0.3449, allocations: 104.6 kB / 0.5896 GB, free: 21.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002326/0.3452, allocations: 45.02 kB / 0.5896 GB, free: 21.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3452, allocations: 0 / 0.5896 GB, free: 21.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.605e-05/0.3453, allocations: 25.95 kB / 0.5896 GB, free: 21.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.3455, allocations: 10.53 kB / 0.5896 GB, free: 21.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000253/0.3458, allocations: 141.1 kB / 0.5898 GB, free: 21.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.939e-05/0.3459, allocations: 0.6781 MB / 0.5904 GB, free: 20.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.669e-05/0.3459, allocations: 10.34 kB / 0.5904 GB, free: 20.32 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3459, allocations: 0.5312 kB / 0.5904 GB, free: 20.32 MB / 446.1 MB Notification: Performance of Templates: time 0.001974/0.3479, allocations: 0.7442 MB / 0.5912 GB, free: 19.92 MB / 446.1 MB 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)