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.001081/0.001081, allocations: 102.6 kB / 15.98 MB, free: 6.348 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.001029/0.001029, allocations: 199.8 kB / 16.91 MB, free: 6.184 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.308/1.308, allocations: 222.9 MB / 240.6 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8111/0.8111, allocations: 135.1 MB / 425.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 63.91 kB / 0.5055 GB, free: 8.773 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3508, allocations: 80.91 MB / 0.5845 GB, free: 25.35 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002573/0.3534, allocations: 1.574 MB / 0.586 GB, free: 24.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003167/0.3537, allocations: 120 kB / 0.5862 GB, free: 24.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.54e-05/0.3538, allocations: 2.656 kB / 0.5862 GB, free: 24.04 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.452e-05/0.3538, allocations: 3.984 kB / 0.5862 GB, free: 24.03 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.816e-05/0.3539, allocations: 3.938 kB / 0.5862 GB, free: 24.03 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001993/0.3541, allocations: 20.11 kB / 0.5862 GB, free: 24.02 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.095e-05/0.3542, allocations: 27.97 kB / 0.5862 GB, free: 24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.095e-05/0.3542, allocations: 17.94 kB / 0.5862 GB, free: 23.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.911e-05/0.3543, allocations: 13.45 kB / 0.5862 GB, free: 23.98 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.052e-05/0.3543, allocations: 11.22 kB / 0.5863 GB, free: 23.97 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.3544, allocations: 2.969 kB / 0.5863 GB, free: 23.97 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.472e-05/0.3544, allocations: 12.48 kB / 0.5863 GB, free: 23.97 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.3544, allocations: 5.156 kB / 0.5863 GB, free: 23.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.3545, allocations: 18.59 kB / 0.5863 GB, free: 23.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.479e-05/0.3545, allocations: 23.75 kB / 0.5863 GB, free: 23.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3546, allocations: 0 / 0.5863 GB, free: 23.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3546, allocations: 0 / 0.5863 GB, free: 23.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3546, allocations: 1.438 kB / 0.5863 GB, free: 23.93 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.0003658/0.3549, allocations: 349.3 kB / 0.5867 GB, free: 23.56 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.355, allocations: 11.11 kB / 0.5867 GB, free: 23.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.355, allocations: 7.844 kB / 0.5867 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.6e-05/0.3551, allocations: 173.7 kB / 0.5868 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.3551, allocations: 2.594 kB / 0.5868 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.3551, allocations: 2.188 kB / 0.5868 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.3553, allocations: 61.17 kB / 0.5869 GB, free: 23.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.3553, allocations: 1.25 kB / 0.5869 GB, free: 23.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.3553, allocations: 4.562 kB / 0.5869 GB, free: 23.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3554, allocations: 2.188 kB / 0.5869 GB, free: 23.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.3555, allocations: 39.36 kB / 0.5869 GB, free: 23.28 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002906/0.3558, allocations: 262.3 kB / 0.5872 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.3562, allocations: 65.52 kB / 0.5873 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.021e-05/0.3563, allocations: 27.73 kB / 0.5873 GB, free: 22.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001068/0.3564, allocations: 84.83 kB / 0.5874 GB, free: 22.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.257e-05/0.3564, allocations: 33.28 kB / 0.5874 GB, free: 22.78 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.413e-06/0.3564, allocations: 1.188 kB / 0.5874 GB, free: 22.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003601/0.3568, allocations: 89.25 kB / 0.5875 GB, free: 22.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/0.3568, allocations: 54.59 kB / 0.5875 GB, free: 22.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.777e-05/0.3569, allocations: 106.8 kB / 0.5876 GB, free: 22.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.3569, allocations: 25.7 kB / 0.5877 GB, free: 22.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.002e-05/0.3569, allocations: 90.42 kB / 0.5877 GB, free: 22.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.3569, allocations: 12.73 kB / 0.5878 GB, free: 22.42 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.357, allocations: 18.23 kB / 0.5878 GB, free: 22.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.803e-05/0.357, allocations: 316.7 kB / 0.5881 GB, free: 22.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.599e-05/0.3571, allocations: 15.61 kB / 0.5881 GB, free: 22.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.914e-05/0.3572, allocations: 23.34 kB / 0.5881 GB, free: 22.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.3574, allocations: 44.95 kB / 0.5882 GB, free: 22.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3574, allocations: 3.938 kB / 0.5882 GB, free: 22.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001918/0.3576, allocations: 75.7 kB / 0.5882 GB, free: 21.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.3576, allocations: 5.938 kB / 0.5882 GB, free: 21.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3576, allocations: 0 / 0.5882 GB, free: 21.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3576, allocations: 7.312 kB / 0.5882 GB, free: 21.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.016e-05/0.3577, allocations: 14.77 kB / 0.5883 GB, free: 21.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.3577, allocations: 1.562 kB / 0.5883 GB, free: 21.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.389e-05/0.3578, allocations: 2.875 kB / 0.5883 GB, free: 21.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.3578, allocations: 5.797 kB / 0.5883 GB, free: 21.97 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 5.526e-05/0.3578, allocations: 114.9 kB / 0.5884 GB, free: 21.85 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.3579, allocations: 1.344 kB / 0.5884 GB, free: 21.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002342/0.3581, allocations: 84.52 kB / 0.5885 GB, free: 21.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3581, allocations: 0 / 0.5885 GB, free: 21.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3581, allocations: 1.625 kB / 0.5885 GB, free: 21.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.3581, allocations: 0 / 0.5885 GB, free: 21.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.3583, allocations: 163.2 kB / 0.5886 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3583, allocations: 10.16 kB / 0.5886 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.495e-05/0.3583, allocations: 11.73 kB / 0.5886 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3584, allocations: 5.25 kB / 0.5886 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.3584, allocations: 0 / 0.5886 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3584, allocations: 2.438 kB / 0.5886 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3584, allocations: 0 / 0.5886 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.3586, allocations: 180.3 kB / 0.5888 GB, free: 21.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.612e-05/0.3586, allocations: 82.42 kB / 0.5889 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.3587, allocations: 2.312 kB / 0.5889 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.3587, allocations: 6.672 kB / 0.5889 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.3588, allocations: 8.156 kB / 0.5889 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.3588, allocations: 1.5 kB / 0.5889 GB, free: 21.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.048e-05/0.3588, allocations: 83.5 kB / 0.589 GB, free: 21.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3588, allocations: 0 / 0.589 GB, free: 21.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.3591, allocations: 7.5 kB / 0.589 GB, free: 21.22 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.0001121/0.3592, allocations: 100.3 kB / 0.5891 GB, free: 21.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002226/0.3594, allocations: 54.69 kB / 0.5892 GB, free: 21.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3594, allocations: 0 / 0.5892 GB, free: 21.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.244e-05/0.3595, allocations: 29.16 kB / 0.5892 GB, free: 21.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.3598, allocations: 10.23 kB / 0.5892 GB, free: 21.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002552/0.36, allocations: 141.5 kB / 0.5893 GB, free: 20.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.121e-05/0.3601, allocations: 0.6823 MB / 0.59 GB, free: 20.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.018e-05/0.3602, allocations: 9.906 kB / 0.59 GB, free: 20.23 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3602, allocations: 4.438 kB / 0.59 GB, free: 20.22 MB / 446.1 MB Notification: Performance of Templates: time 0.002119/0.3623, allocations: 0.738 MB / 0.5907 GB, free: 19.88 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)