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.001116/0.001116, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001053/0.001053, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8077/0.8077, allocations: 132.2 MB / 423.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 59.91 kB / 0.5032 GB, free: 10.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3531, allocations: 80.19 MB / 0.5815 GB, free: 27.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002797/0.3559, allocations: 1.504 MB / 0.583 GB, free: 26.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003707/0.3563, allocations: 125.4 kB / 0.5831 GB, free: 26.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.329e-05/0.3564, allocations: 1.75 kB / 0.5831 GB, free: 26.31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.544e-05/0.3564, allocations: 6.969 kB / 0.5831 GB, free: 26.3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.734e-05/0.3565, allocations: 5.156 kB / 0.5831 GB, free: 26.3 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.3567, allocations: 17.89 kB / 0.5831 GB, free: 26.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.343e-05/0.3568, allocations: 35.94 kB / 0.5831 GB, free: 26.27 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.3569, allocations: 12.36 kB / 0.5832 GB, free: 26.26 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.816e-05/0.357, allocations: 9.016 kB / 0.5832 GB, free: 26.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.445e-05/0.357, allocations: 12.28 kB / 0.5832 GB, free: 26.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.3571, allocations: 3.844 kB / 0.5832 GB, free: 26.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.421e-05/0.3571, allocations: 18.83 kB / 0.5832 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.531e-05/0.3572, allocations: 5.906 kB / 0.5832 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.992e-05/0.3572, allocations: 19.25 kB / 0.5832 GB, free: 26.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.3573, allocations: 27.97 kB / 0.5832 GB, free: 26.2 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3573, allocations: 2.469 kB / 0.5832 GB, free: 26.2 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3573, allocations: 0 / 0.5832 GB, free: 26.2 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3573, allocations: 3.938 kB / 0.5833 GB, free: 26.19 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.000448/0.3578, allocations: 348.4 kB / 0.5836 GB, free: 25.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3579, allocations: 8 kB / 0.5836 GB, free: 25.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3579, allocations: 3.812 kB / 0.5836 GB, free: 25.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.763e-05/0.358, allocations: 173.4 kB / 0.5838 GB, free: 25.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.358, allocations: 5.438 kB / 0.5838 GB, free: 25.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.358, allocations: 6.219 kB / 0.5838 GB, free: 25.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.3582, allocations: 62.53 kB / 0.5838 GB, free: 25.56 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3582, allocations: 1.625 kB / 0.5838 GB, free: 25.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.3582, allocations: 3.938 kB / 0.5838 GB, free: 25.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3583, allocations: 1.438 kB / 0.5838 GB, free: 25.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.3584, allocations: 45.42 kB / 0.5839 GB, free: 25.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/0.3588, allocations: 257.5 kB / 0.5841 GB, free: 25.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.3591, allocations: 63.59 kB / 0.5842 GB, free: 25.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.239e-05/0.3592, allocations: 26.16 kB / 0.5842 GB, free: 25.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001068/0.3593, allocations: 87.33 kB / 0.5843 GB, free: 25.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.587e-05/0.3593, allocations: 30.56 kB / 0.5843 GB, free: 25.04 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3593, allocations: 5.062 kB / 0.5843 GB, free: 25.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003519/0.3597, allocations: 95.47 kB / 0.5844 GB, free: 24.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.3597, allocations: 53.47 kB / 0.5845 GB, free: 24.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.609e-05/0.3598, allocations: 103.7 kB / 0.5846 GB, free: 24.81 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.3598, allocations: 25.7 kB / 0.5846 GB, free: 24.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.649e-05/0.3599, allocations: 85.19 kB / 0.5847 GB, free: 24.69 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.3599, allocations: 6.188 kB / 0.5847 GB, free: 24.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.139e-05/0.3599, allocations: 17.78 kB / 0.5847 GB, free: 24.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.164e-05/0.36, allocations: 313 kB / 0.585 GB, free: 24.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.682e-05/0.3601, allocations: 23.66 kB / 0.585 GB, free: 24.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.147e-05/0.3602, allocations: 18.98 kB / 0.585 GB, free: 24.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.3603, allocations: 52 kB / 0.5851 GB, free: 24.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3603, allocations: 3.938 kB / 0.5851 GB, free: 24.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000186/0.3605, allocations: 69.12 kB / 0.5852 GB, free: 24.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3606, allocations: 5.031 kB / 0.5852 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3606, allocations: 2.906 kB / 0.5852 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3606, allocations: 0.5156 kB / 0.5852 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.48e-05/0.3607, allocations: 12.2 kB / 0.5852 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.3607, allocations: 0 / 0.5852 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.365e-05/0.3607, allocations: 8.297 kB / 0.5852 GB, free: 24.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.3607, allocations: 5.938 kB / 0.5852 GB, free: 24.24 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.493e-05/0.3608, allocations: 113.7 kB / 0.5853 GB, free: 24.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.432e-05/0.3608, allocations: 1.469 kB / 0.5853 GB, free: 24.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002255/0.3611, allocations: 90.75 kB / 0.5854 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3611, allocations: 1.969 kB / 0.5854 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.3611, allocations: 0 / 0.5854 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3611, allocations: 6.141 kB / 0.5854 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.3612, allocations: 171.8 kB / 0.5856 GB, free: 23.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3612, allocations: 1.5 kB / 0.5856 GB, free: 23.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.95e-05/0.3613, allocations: 10.8 kB / 0.5856 GB, free: 23.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3613, allocations: 1.375 kB / 0.5856 GB, free: 23.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.3613, allocations: 1.594 kB / 0.5856 GB, free: 23.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.3613, allocations: 7.922 kB / 0.5856 GB, free: 23.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3613, allocations: 1.312 kB / 0.5856 GB, free: 23.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.3615, allocations: 174 kB / 0.5857 GB, free: 23.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.035e-05/0.3616, allocations: 81.05 kB / 0.5858 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.3616, allocations: 1.25 kB / 0.5858 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.053e-05/0.3617, allocations: 11.08 kB / 0.5858 GB, free: 23.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.3617, allocations: 8.703 kB / 0.5858 GB, free: 23.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.3617, allocations: 1.125 kB / 0.5858 GB, free: 23.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.424e-05/0.3618, allocations: 81.88 kB / 0.5859 GB, free: 23.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3618, allocations: 1.875 kB / 0.5859 GB, free: 23.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002201/0.362, allocations: 7.25 kB / 0.5859 GB, free: 23.48 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.0001343/0.3621, allocations: 103.4 kB / 0.586 GB, free: 23.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.3624, allocations: 46.42 kB / 0.5861 GB, free: 23.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3624, allocations: 0 / 0.5861 GB, free: 23.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.72e-05/0.3625, allocations: 29.55 kB / 0.5861 GB, free: 23.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/0.3627, allocations: 5.594 kB / 0.5861 GB, free: 23.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002581/0.363, allocations: 117.9 kB / 0.5862 GB, free: 23.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.3631, allocations: 0.6855 MB / 0.5869 GB, free: 22.53 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.629e-05/0.3631, allocations: 3.5 kB / 0.5869 GB, free: 22.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.158e-05/0.3632, allocations: 7.438 kB / 0.5869 GB, free: 22.52 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3632, allocations: 6.094 kB / 0.5869 GB, free: 22.52 MB / 446.1 MB Notification: Performance of Templates: time 0.002676/0.3658, allocations: 0.7026 MB / 0.5876 GB, free: 22.18 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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)