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.001093/0.001093, allocations: 107.3 kB / 16.36 MB, free: 5.824 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.00111/0.001111, allocations: 189.7 kB / 17.29 MB, free: 5.48 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8238/0.8238, allocations: 135.1 MB / 426.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 63.89 kB / 0.5068 GB, free: 7.648 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3376, allocations: 80.92 MB / 0.5858 GB, free: 25.56 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.002014/0.3396, allocations: 0.5737 MB / 0.5863 GB, free: 25.14 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000259/0.3399, allocations: 54.81 kB / 0.5864 GB, free: 25.1 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.136e-05/0.34, allocations: 1.062 kB / 0.5864 GB, free: 25.1 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.201e-05/0.34, allocations: 0 / 0.5864 GB, free: 25.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.999e-06/0.34, allocations: 0.5938 kB / 0.5864 GB, free: 25.1 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.3403, allocations: 13.61 kB / 0.5864 GB, free: 25.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.159e-05/0.3403, allocations: 5.188 kB / 0.5864 GB, free: 25.09 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.007e-05/0.3404, allocations: 2.531 kB / 0.5864 GB, free: 25.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.32e-05/0.3404, allocations: 1.281 kB / 0.5864 GB, free: 25.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.141e-05/0.3404, allocations: 5.234 kB / 0.5864 GB, free: 25.08 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.926e-06/0.3405, allocations: 0.6562 kB / 0.5864 GB, free: 25.08 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.657e-05/0.3405, allocations: 13.58 kB / 0.5864 GB, free: 25.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.3405, allocations: 4.875 kB / 0.5864 GB, free: 25.07 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.713e-05/0.3406, allocations: 1.438 kB / 0.5864 GB, free: 25.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.262e-05/0.3406, allocations: 7.281 kB / 0.5864 GB, free: 25.07 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3407, allocations: 5.141 kB / 0.5864 GB, free: 25.06 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3407, allocations: 1.344 kB / 0.5864 GB, free: 25.06 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.3407, allocations: 3.938 kB / 0.5864 GB, free: 25.06 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002272/0.3409, allocations: 315.1 kB / 0.5867 GB, free: 24.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.3409, allocations: 10.61 kB / 0.5868 GB, free: 24.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.389e-05/0.341, allocations: 0.9375 kB / 0.5868 GB, free: 24.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.221e-05/0.341, allocations: 165.7 kB / 0.5869 GB, free: 24.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.3411, allocations: 384 / 0.5869 GB, free: 24.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.3411, allocations: 1.844 kB / 0.5869 GB, free: 24.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.306e-05/0.3412, allocations: 33.61 kB / 0.587 GB, free: 24.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3412, allocations: 0.9062 kB / 0.587 GB, free: 24.47 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.3412, allocations: 3.938 kB / 0.587 GB, free: 24.47 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3412, allocations: 2.531 kB / 0.587 GB, free: 24.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.696e-05/0.3413, allocations: 6.781 kB / 0.587 GB, free: 24.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001088/0.3414, allocations: 152.7 kB / 0.5871 GB, free: 24.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.555e-05/0.3414, allocations: 24.86 kB / 0.5871 GB, free: 24.24 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.655e-05/0.3414, allocations: 6.859 kB / 0.5871 GB, free: 24.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001627/0.3416, allocations: 88.56 kB / 0.5872 GB, free: 24.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.824e-05/0.3416, allocations: 34.12 kB / 0.5873 GB, free: 24.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3416, allocations: 0 / 0.5873 GB, free: 24.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001523/0.3418, allocations: 46.62 kB / 0.5873 GB, free: 24.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.3418, allocations: 51.41 kB / 0.5874 GB, free: 23.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.692e-05/0.3419, allocations: 99.45 kB / 0.5874 GB, free: 23.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.3419, allocations: 26.36 kB / 0.5875 GB, free: 23.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.401e-05/0.3419, allocations: 80.67 kB / 0.5875 GB, free: 23.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.343e-05/0.3419, allocations: 5.109 kB / 0.5876 GB, free: 23.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.762e-05/0.342, allocations: 13.62 kB / 0.5876 GB, free: 23.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.781e-05/0.342, allocations: 316.9 kB / 0.5879 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.272e-05/0.342, allocations: 1.156 kB / 0.5879 GB, free: 23.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-06/0.3421, allocations: 7.484 kB / 0.5879 GB, free: 23.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.437e-05/0.3421, allocations: 10.61 kB / 0.5879 GB, free: 23.42 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3421, allocations: 0 / 0.5879 GB, free: 23.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.048e-05/0.3422, allocations: 42.45 kB / 0.5879 GB, free: 23.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3422, allocations: 13.31 kB / 0.5879 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.279e-06/0.3422, allocations: 0 / 0.5879 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3422, allocations: 3.938 kB / 0.5879 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.228e-05/0.3423, allocations: 8.078 kB / 0.588 GB, free: 23.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.3423, allocations: 1.25 kB / 0.588 GB, free: 23.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.525e-05/0.3423, allocations: 4 kB / 0.588 GB, free: 23.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.3423, allocations: 1.5 kB / 0.588 GB, free: 23.37 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 (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 4.92e-05/0.3424, allocations: 109.7 kB / 0.5881 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.3424, allocations: 0 / 0.5881 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.392e-05/0.3425, allocations: 49.31 kB / 0.5881 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3425, allocations: 0.5625 kB / 0.5881 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3425, allocations: 1.156 kB / 0.5881 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3425, allocations: 0.7188 kB / 0.5881 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.611e-05/0.3426, allocations: 157.8 kB / 0.5883 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3426, allocations: 0.5625 kB / 0.5883 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.458e-05/0.3426, allocations: 4.406 kB / 0.5883 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3426, allocations: 4.906 kB / 0.5883 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.3426, allocations: 3.938 kB / 0.5883 GB, free: 23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3426, allocations: 1.062 kB / 0.5883 GB, free: 23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3427, allocations: 1.719 kB / 0.5883 GB, free: 23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.535e-05/0.3427, allocations: 63.25 kB / 0.5883 GB, free: 22.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.078e-05/0.3428, allocations: 86.06 kB / 0.5884 GB, free: 22.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.3428, allocations: 5.5 kB / 0.5884 GB, free: 22.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.048e-05/0.3428, allocations: 0.9375 kB / 0.5884 GB, free: 22.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.543e-05/0.3428, allocations: 1.344 kB / 0.5884 GB, free: 22.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.3428, allocations: 3.031 kB / 0.5884 GB, free: 22.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.245e-05/0.3428, allocations: 78.02 kB / 0.5885 GB, free: 22.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3428, allocations: 0 / 0.5885 GB, free: 22.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001949/0.343, allocations: 7.359 kB / 0.5885 GB, free: 22.75 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,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.0001423/0.3432, allocations: 110.3 kB / 0.5886 GB, free: 22.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.498e-05/0.3433, allocations: 6.656 kB / 0.5886 GB, free: 22.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3433, allocations: 3.188 kB / 0.5886 GB, free: 22.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.689e-05/0.3433, allocations: 7.547 kB / 0.5886 GB, free: 22.65 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.3435, allocations: 1.344 kB / 0.5886 GB, free: 22.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002014/0.3437, allocations: 84.8 kB / 0.5887 GB, free: 22.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.3438, allocations: 0.6712 MB / 0.5894 GB, free: 21.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.513e-05/0.3438, allocations: 5.172 kB / 0.5894 GB, free: 21.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.3438, allocations: 10.03 kB / 0.5894 GB, free: 21.85 MB / 446.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3438, allocations: 1.375 kB / 0.5894 GB, free: 21.85 MB / 446.1 MB Notification: Performance of Templates: time 0.002396/0.3462, allocations: 320.3 kB / 0.5897 GB, free: 21.7 MB / 446.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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)