Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001363/0.001363, allocations: 104.7 kB / 16.27 MB, free: 5.977 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.001172/0.001172, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7948/0.7948, allocations: 132.2 MB / 423.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 67.91 kB / 0.5024 GB, free: 11.63 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3378, allocations: 80.18 MB / 0.5807 GB, free: 27.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001684/0.3395, allocations: 0.5754 MB / 0.5813 GB, free: 26.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002417/0.3398, allocations: 59.78 kB / 0.5814 GB, free: 26.77 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.811e-05/0.3398, allocations: 1.906 kB / 0.5814 GB, free: 26.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.137e-05/0.3399, allocations: 0 / 0.5814 GB, free: 26.77 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.418e-06/0.3399, allocations: 0.625 kB / 0.5814 GB, free: 26.77 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.3401, allocations: 4.5 kB / 0.5814 GB, free: 26.77 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.193e-05/0.3401, allocations: 4.094 kB / 0.5814 GB, free: 26.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.603e-05/0.3402, allocations: 5.047 kB / 0.5814 GB, free: 26.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.508e-05/0.3402, allocations: 8.953 kB / 0.5814 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.829e-05/0.3402, allocations: 1.031 kB / 0.5814 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.147e-06/0.3402, allocations: 1.125 kB / 0.5814 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.708e-05/0.3403, allocations: 5.75 kB / 0.5814 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.138e-06/0.3403, allocations: 3.938 kB / 0.5814 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.951e-05/0.3403, allocations: 5 kB / 0.5814 GB, free: 26.75 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.489e-05/0.3404, allocations: 20 kB / 0.5814 GB, free: 26.74 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3404, allocations: 0.9062 kB / 0.5814 GB, free: 26.74 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3404, allocations: 1.156 kB / 0.5814 GB, free: 26.74 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3405, allocations: 0 / 0.5814 GB, free: 26.74 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.0002268/0.3407, allocations: 319.3 kB / 0.5817 GB, free: 26.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.3407, allocations: 8.75 kB / 0.5817 GB, free: 26.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.3408, allocations: 6.312 kB / 0.5817 GB, free: 26.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.196e-05/0.3408, allocations: 164.4 kB / 0.5819 GB, free: 26.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3408, allocations: 1.562 kB / 0.5819 GB, free: 26.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-06/0.3408, allocations: 384 / 0.5819 GB, free: 26.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.855e-05/0.3409, allocations: 34.47 kB / 0.5819 GB, free: 26.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.341, allocations: 2.344 kB / 0.5819 GB, free: 26.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.341, allocations: 3.938 kB / 0.5819 GB, free: 26.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.341, allocations: 0 / 0.5819 GB, free: 26.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.723e-05/0.341, allocations: 8.688 kB / 0.5819 GB, free: 26.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001084/0.3411, allocations: 154.2 kB / 0.5821 GB, free: 25.94 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.54e-05/0.3412, allocations: 32.59 kB / 0.5821 GB, free: 25.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.581e-05/0.3412, allocations: 6.172 kB / 0.5821 GB, free: 25.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.3414, allocations: 81.36 kB / 0.5822 GB, free: 25.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/0.3414, allocations: 30.56 kB / 0.5822 GB, free: 25.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3414, allocations: 0 / 0.5822 GB, free: 25.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001398/0.3415, allocations: 51.38 kB / 0.5823 GB, free: 25.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.3416, allocations: 53.97 kB / 0.5823 GB, free: 25.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.954e-05/0.3416, allocations: 89.86 kB / 0.5824 GB, free: 25.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-06/0.3416, allocations: 27.23 kB / 0.5824 GB, free: 25.53 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.718e-06/0.3416, allocations: 80.14 kB / 0.5825 GB, free: 25.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.3416, allocations: 1.062 kB / 0.5825 GB, free: 25.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/0.3417, allocations: 21.73 kB / 0.5825 GB, free: 25.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.438e-05/0.3417, allocations: 316.1 kB / 0.5828 GB, free: 25.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.3417, allocations: 1.406 kB / 0.5829 GB, free: 25.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.205e-06/0.3418, allocations: 3.375 kB / 0.5829 GB, free: 25.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.892e-05/0.3418, allocations: 16.3 kB / 0.5829 GB, free: 25.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3418, allocations: 0 / 0.5829 GB, free: 25.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.21e-05/0.3418, allocations: 41.44 kB / 0.5829 GB, free: 25.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3419, allocations: 6.188 kB / 0.5829 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3419, allocations: 0 / 0.5829 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.3419, allocations: 4.438 kB / 0.5829 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.24e-05/0.342, allocations: 2.781 kB / 0.5829 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.342, allocations: 2.375 kB / 0.5829 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.372e-05/0.342, allocations: 4 kB / 0.5829 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.342, allocations: 1.75 kB / 0.5829 GB, free: 25.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 (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.699e-05/0.3421, allocations: 109.4 kB / 0.583 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-06/0.3421, allocations: 3.984 kB / 0.583 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.096e-05/0.3421, allocations: 46.89 kB / 0.5831 GB, free: 24.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.3422, allocations: 3.938 kB / 0.5831 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3422, allocations: 1.875 kB / 0.5831 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3422, allocations: 0.5 kB / 0.5831 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.442e-05/0.3422, allocations: 151.1 kB / 0.5832 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3422, allocations: 2.25 kB / 0.5832 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.124e-05/0.3423, allocations: 2.781 kB / 0.5832 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.3423, allocations: 1.719 kB / 0.5832 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.3423, allocations: 5.438 kB / 0.5832 GB, free: 24.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3423, allocations: 7.938 kB / 0.5833 GB, free: 24.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3423, allocations: 0 / 0.5833 GB, free: 24.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.022e-05/0.3424, allocations: 64.09 kB / 0.5833 GB, free: 24.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.585e-05/0.3424, allocations: 77.11 kB / 0.5834 GB, free: 24.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.3424, allocations: 15.55 kB / 0.5834 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.108e-05/0.3424, allocations: 0 / 0.5834 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.791e-05/0.3425, allocations: 1.438 kB / 0.5834 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.3425, allocations: 1.125 kB / 0.5834 GB, free: 24.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.305e-05/0.3425, allocations: 75.28 kB / 0.5835 GB, free: 24.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3425, allocations: 5.969 kB / 0.5835 GB, free: 24.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002013/0.3427, allocations: 3.75 kB / 0.5835 GB, free: 24.42 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.0001267/0.3428, allocations: 100.2 kB / 0.5836 GB, free: 24.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.213e-05/0.3429, allocations: 15.58 kB / 0.5836 GB, free: 24.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3429, allocations: 2.031 kB / 0.5836 GB, free: 24.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.136e-05/0.3429, allocations: 3.875 kB / 0.5836 GB, free: 24.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.3431, allocations: 2.766 kB / 0.5836 GB, free: 24.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001675/0.3432, allocations: 117.7 kB / 0.5837 GB, free: 24.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.865e-05/0.3433, allocations: 0.6752 MB / 0.5844 GB, free: 23.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.55e-05/0.3434, allocations: 12.88 kB / 0.5844 GB, free: 23.48 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3434, allocations: 0.75 kB / 0.5844 GB, free: 23.48 MB / 446.1 MB Notification: Performance of Templates: time 0.001579/0.345, allocations: 449.2 kB / 0.5848 GB, free: 23.29 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)