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.001175/0.001174, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7273/0.7273, allocations: 132.2 MB / 422.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 69.78 kB / 0.5018 GB, free: 3.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.386, allocations: 80.2 MB / 0.5801 GB, free: 4.527 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002669/0.3887, allocations: 1.501 MB / 0.5816 GB, free: 3.488 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004555/0.3892, allocations: 130.7 kB / 0.5817 GB, free: 3.398 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.76e-05/0.3892, allocations: 0.7812 kB / 0.5817 GB, free: 3.398 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 3.258e-05/0.3893, allocations: 4.547 kB / 0.5817 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.809e-05/0.3893, allocations: 5.109 kB / 0.5817 GB, free: 3.391 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.3896, allocations: 22.89 kB / 0.5817 GB, free: 3.379 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 9.551e-05/0.3897, allocations: 31.56 kB / 0.5817 GB, free: 3.363 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.3899, allocations: 10.36 kB / 0.5817 GB, free: 3.359 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.617e-05/0.3899, allocations: 15.58 kB / 0.5818 GB, free: 3.352 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.124e-05/0.39, allocations: 21.36 kB / 0.5818 GB, free: 3.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.39, allocations: 2.656 kB / 0.5818 GB, free: 3.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.127e-05/0.3901, allocations: 10.86 kB / 0.5818 GB, free: 3.336 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.3902, allocations: 6.594 kB / 0.5818 GB, free: 3.332 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.801e-05/0.3902, allocations: 13.56 kB / 0.5818 GB, free: 3.324 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.3904, allocations: 33.53 kB / 0.5818 GB, free: 3.309 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3904, allocations: 1 kB / 0.5818 GB, free: 3.309 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3904, allocations: 0 / 0.5818 GB, free: 3.309 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.3904, allocations: 0 / 0.5818 GB, free: 3.309 MB / 430.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.0004797/0.3909, allocations: 347.1 kB / 0.5822 GB, free: 2.945 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3909, allocations: 9.344 kB / 0.5822 GB, free: 2.945 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/0.391, allocations: 6.781 kB / 0.5822 GB, free: 2.941 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.3911, allocations: 171.4 kB / 0.5824 GB, free: 2.738 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.3911, allocations: 9.438 kB / 0.5824 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.3912, allocations: 2.922 kB / 0.5824 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.3914, allocations: 58.25 kB / 0.5824 GB, free: 2.691 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3914, allocations: 192 / 0.5824 GB, free: 2.691 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.3914, allocations: 9.375 kB / 0.5824 GB, free: 2.684 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.3914, allocations: 0.8438 kB / 0.5824 GB, free: 2.684 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.3916, allocations: 45.17 kB / 0.5825 GB, free: 2.672 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003915/0.392, allocations: 256.8 kB / 0.5827 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/0.3924, allocations: 69.48 kB / 0.5828 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.3925, allocations: 26.06 kB / 0.5828 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.986e-05/0.3926, allocations: 81.42 kB / 0.5829 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.3926, allocations: 32.09 kB / 0.5829 GB, free: 2.211 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 9.31e-07/0.3926, allocations: 0 / 0.5829 GB, free: 2.211 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003949/0.393, allocations: 100.5 kB / 0.583 GB, free: 2.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.3931, allocations: 53.72 kB / 0.5831 GB, free: 2.098 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.849e-05/0.3931, allocations: 105.2 kB / 0.5832 GB, free: 1.992 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.766e-06/0.3932, allocations: 25.7 kB / 0.5832 GB, free: 1.961 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.3932, allocations: 85.91 kB / 0.5833 GB, free: 1.875 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.3932, allocations: 5.391 kB / 0.5833 GB, free: 1.871 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.3932, allocations: 19 kB / 0.5833 GB, free: 1.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.735e-05/0.3933, allocations: 317.6 kB / 0.5836 GB, free: 1.535 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.624e-05/0.3934, allocations: 19.42 kB / 0.5836 GB, free: 1.531 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.587e-05/0.3935, allocations: 20.8 kB / 0.5836 GB, free: 1.527 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001673/0.3937, allocations: 41.55 kB / 0.5837 GB, free: 1.516 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3937, allocations: 3.938 kB / 0.5837 GB, free: 1.512 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002019/0.3939, allocations: 77.88 kB / 0.5838 GB, free: 1.469 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.3939, allocations: 5.188 kB / 0.5838 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3939, allocations: 0 / 0.5838 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.3939, allocations: 1.453 kB / 0.5838 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.002e-05/0.394, allocations: 14.89 kB / 0.5838 GB, free: 1.465 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.394, allocations: 4.891 kB / 0.5838 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.601e-05/0.3941, allocations: 5.844 kB / 0.5838 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.3941, allocations: 1.719 kB / 0.5838 GB, free: 1.461 MB / 430.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.189e-05/0.3942, allocations: 121.5 kB / 0.5839 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.3942, allocations: 0.8438 kB / 0.5839 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002432/0.3944, allocations: 78.38 kB / 0.584 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3945, allocations: 1 kB / 0.584 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3945, allocations: 2.453 kB / 0.584 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3945, allocations: 0 / 0.584 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.3946, allocations: 170.5 kB / 0.5841 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3946, allocations: 4.75 kB / 0.5842 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.427e-05/0.3947, allocations: 22.28 kB / 0.5842 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3947, allocations: 5.312 kB / 0.5842 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3947, allocations: 1.062 kB / 0.5842 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.3947, allocations: 0.7031 kB / 0.5842 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3947, allocations: 1.062 kB / 0.5842 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/0.3949, allocations: 173.3 kB / 0.5843 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.395, allocations: 86.58 kB / 0.5844 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.395, allocations: 1.797 kB / 0.5844 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.3951, allocations: 9.406 kB / 0.5844 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.259e-05/0.3951, allocations: 5.344 kB / 0.5844 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.3951, allocations: 2.141 kB / 0.5844 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.119e-05/0.3952, allocations: 87 kB / 0.5845 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3952, allocations: 0 / 0.5845 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.3954, allocations: 7.938 kB / 0.5845 GB, free: 0.7305 MB / 430.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.0001269/0.3955, allocations: 107.3 kB / 0.5846 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002443/0.3958, allocations: 45.14 kB / 0.5847 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3958, allocations: 0.5938 kB / 0.5847 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.3959, allocations: 26.25 kB / 0.5847 GB, free: 0.625 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.3962, allocations: 5.766 kB / 0.5847 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002663/0.3965, allocations: 120.8 kB / 0.5848 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.3966, allocations: 0.6844 MB / 0.5855 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.861e-05/0.3967, allocations: 3.75 kB / 0.5855 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.224e-05/0.3967, allocations: 10.78 kB / 0.5855 GB, free: 15.79 MB / 446.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3967, allocations: 0 / 0.5855 GB, free: 15.79 MB / 446.1 MB Notification: Performance of Templates: time 0.002915/0.3996, allocations: 0.6999 MB / 0.5862 GB, free: 15.72 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 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)