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.001048/0.001048, allocations: 110.6 kB / 16.37 MB, free: 6.004 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.001066/0.001066, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7852/0.7852, allocations: 132.2 MB / 423.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 67.89 kB / 0.5032 GB, free: 10.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3481, allocations: 80.18 MB / 0.5815 GB, free: 27.51 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002324/0.3505, allocations: 1.515 MB / 0.583 GB, free: 26.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003217/0.3508, allocations: 129 kB / 0.5831 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.528e-05/0.3508, allocations: 0 / 0.5831 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.453e-05/0.3509, allocations: 4.562 kB / 0.5831 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.911e-05/0.3509, allocations: 4.75 kB / 0.5831 GB, free: 26.23 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.3511, allocations: 17.11 kB / 0.5831 GB, free: 26.22 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.096e-05/0.3512, allocations: 36.22 kB / 0.5832 GB, free: 26.2 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.587e-05/0.3513, allocations: 7.547 kB / 0.5832 GB, free: 26.19 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.954e-05/0.3514, allocations: 17.48 kB / 0.5832 GB, free: 26.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.329e-05/0.3514, allocations: 8.875 kB / 0.5832 GB, free: 26.18 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.3514, allocations: 5 kB / 0.5832 GB, free: 26.18 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.852e-05/0.3515, allocations: 19.08 kB / 0.5832 GB, free: 26.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.3515, allocations: 7.938 kB / 0.5832 GB, free: 26.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.3515, allocations: 19 kB / 0.5832 GB, free: 26.14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.363e-05/0.3516, allocations: 28.53 kB / 0.5833 GB, free: 26.12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3517, allocations: 2.281 kB / 0.5833 GB, free: 26.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3517, allocations: 0 / 0.5833 GB, free: 26.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.3517, allocations: 4.438 kB / 0.5833 GB, free: 26.12 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.0003477/0.352, allocations: 347.2 kB / 0.5836 GB, free: 25.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.3521, allocations: 9.188 kB / 0.5836 GB, free: 25.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.034e-05/0.3521, allocations: 2.406 kB / 0.5836 GB, free: 25.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.983e-05/0.3522, allocations: 169.6 kB / 0.5838 GB, free: 25.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.3522, allocations: 3.5 kB / 0.5838 GB, free: 25.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.3522, allocations: 5.5 kB / 0.5838 GB, free: 25.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.3524, allocations: 57.97 kB / 0.5838 GB, free: 25.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3524, allocations: 192 / 0.5838 GB, free: 25.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.3524, allocations: 6.938 kB / 0.5838 GB, free: 25.49 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3524, allocations: 0 / 0.5838 GB, free: 25.49 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.3526, allocations: 42.33 kB / 0.5839 GB, free: 25.47 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002621/0.3529, allocations: 264.1 kB / 0.5841 GB, free: 25.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.3531, allocations: 62.41 kB / 0.5842 GB, free: 25.13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.766e-05/0.3532, allocations: 26.06 kB / 0.5842 GB, free: 25.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.638e-05/0.3533, allocations: 83.38 kB / 0.5843 GB, free: 25.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.3534, allocations: 33.03 kB / 0.5843 GB, free: 24.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3534, allocations: 1.969 kB / 0.5843 GB, free: 24.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003376/0.3537, allocations: 101.9 kB / 0.5844 GB, free: 24.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.919e-05/0.3537, allocations: 53.62 kB / 0.5845 GB, free: 24.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.078e-05/0.3538, allocations: 102.8 kB / 0.5846 GB, free: 24.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.644e-06/0.3538, allocations: 25.7 kB / 0.5846 GB, free: 24.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.317e-05/0.3538, allocations: 85.88 kB / 0.5847 GB, free: 24.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.3539, allocations: 5.938 kB / 0.5847 GB, free: 24.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.3539, allocations: 17.66 kB / 0.5847 GB, free: 24.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.851e-05/0.3539, allocations: 318.2 kB / 0.585 GB, free: 24.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.425e-05/0.354, allocations: 22.25 kB / 0.585 GB, free: 24.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.208e-05/0.3541, allocations: 19.8 kB / 0.585 GB, free: 24.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.3543, allocations: 47.19 kB / 0.5851 GB, free: 24.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3543, allocations: 9.062 kB / 0.5851 GB, free: 24.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000186/0.3545, allocations: 72.55 kB / 0.5852 GB, free: 24.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.3545, allocations: 7.188 kB / 0.5852 GB, free: 24.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3545, allocations: 5.266 kB / 0.5852 GB, free: 24.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.3545, allocations: 0 / 0.5852 GB, free: 24.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.726e-05/0.3546, allocations: 11.73 kB / 0.5852 GB, free: 24.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3546, allocations: 3.984 kB / 0.5852 GB, free: 24.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.208e-05/0.3547, allocations: 9.453 kB / 0.5852 GB, free: 24.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.3547, allocations: 1.156 kB / 0.5852 GB, free: 24.16 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.865e-05/0.3547, allocations: 118.4 kB / 0.5853 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/0.3548, allocations: 1.094 kB / 0.5853 GB, free: 24.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.355, allocations: 82.27 kB / 0.5854 GB, free: 23.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.355, allocations: 2.25 kB / 0.5854 GB, free: 23.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.355, allocations: 0 / 0.5854 GB, free: 23.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.355, allocations: 5.141 kB / 0.5854 GB, free: 23.97 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.3551, allocations: 169.1 kB / 0.5856 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3551, allocations: 0 / 0.5856 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.182e-05/0.3552, allocations: 13.77 kB / 0.5856 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3552, allocations: 0 / 0.5856 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.3552, allocations: 0 / 0.5856 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.3552, allocations: 5.422 kB / 0.5856 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3553, allocations: 1.375 kB / 0.5856 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002044/0.3555, allocations: 172.3 kB / 0.5858 GB, free: 23.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.819e-05/0.3555, allocations: 82.36 kB / 0.5858 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.3555, allocations: 1.188 kB / 0.5858 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.298e-05/0.3556, allocations: 8.516 kB / 0.5858 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.3556, allocations: 10.45 kB / 0.5858 GB, free: 23.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.3557, allocations: 1.375 kB / 0.5859 GB, free: 23.49 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2e-05/0.3557, allocations: 83.78 kB / 0.5859 GB, free: 23.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3557, allocations: 0 / 0.5859 GB, free: 23.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002471/0.3559, allocations: 8.188 kB / 0.5859 GB, free: 23.41 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.000119/0.3561, allocations: 110.3 kB / 0.586 GB, free: 23.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.3563, allocations: 45.58 kB / 0.5861 GB, free: 23.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3563, allocations: 0.625 kB / 0.5861 GB, free: 23.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.136e-05/0.3564, allocations: 25.02 kB / 0.5861 GB, free: 23.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.3567, allocations: 9.812 kB / 0.5861 GB, free: 23.28 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002565/0.3569, allocations: 121.2 kB / 0.5862 GB, free: 23.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.357, allocations: 0.6793 MB / 0.5869 GB, free: 22.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.729e-05/0.3571, allocations: 4.844 kB / 0.5869 GB, free: 22.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.175e-05/0.3571, allocations: 15.53 kB / 0.5869 GB, free: 22.44 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3571, allocations: 1.844 kB / 0.5869 GB, free: 22.44 MB / 446.1 MB Notification: Performance of Templates: time 0.002807/0.3599, allocations: 0.6994 MB / 0.5876 GB, free: 22.11 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 gbode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)