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.001023/0.001023, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008755/0.008755, allocations: 171.1 kB / 16.26 MB, free: 6.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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7608/0.7608, allocations: 132.4 MB / 423.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003357, allocations: 8.625 kB / 0.504 GB, free: 3.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4894/0.4898, allocations: 81.57 MB / 0.5837 GB, free: 4.059 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001815/0.4916, allocations: 1.235 MB / 0.5849 GB, free: 3.16 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004705/0.4921, allocations: 123.9 kB / 0.585 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.709e-05/0.4922, allocations: 0.9688 kB / 0.585 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.039e-05/0.4922, allocations: 2.125 kB / 0.585 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.515e-05/0.4923, allocations: 4.75 kB / 0.585 GB, free: 3.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.4926, allocations: 20.33 kB / 0.585 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 9.608e-05/0.4927, allocations: 35.28 kB / 0.5851 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.4928, allocations: 6.594 kB / 0.5851 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.975e-05/0.4929, allocations: 9.484 kB / 0.5851 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.737e-05/0.4929, allocations: 11.86 kB / 0.5851 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.493, allocations: 1.656 kB / 0.5851 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.16e-05/0.4931, allocations: 14.88 kB / 0.5851 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.943e-05/0.4931, allocations: 6.391 kB / 0.5851 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.918e-05/0.4931, allocations: 37.03 kB / 0.5851 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.4933, allocations: 27.77 kB / 0.5852 GB, free: 2.973 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.4933, allocations: 4.906 kB / 0.5852 GB, free: 2.969 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4933, allocations: 0 / 0.5852 GB, free: 2.969 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.4933, allocations: 0 / 0.5852 GB, free: 2.969 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.0004887/0.4938, allocations: 345 kB / 0.5855 GB, free: 2.609 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.4939, allocations: 9.25 kB / 0.5855 GB, free: 2.609 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.4939, allocations: 2.219 kB / 0.5855 GB, free: 2.609 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.4941, allocations: 175.5 kB / 0.5857 GB, free: 2.402 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.4941, allocations: 5.219 kB / 0.5857 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.4941, allocations: 2.094 kB / 0.5857 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002341/0.4944, allocations: 68.36 kB / 0.5857 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4944, allocations: 192 / 0.5857 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.4944, allocations: 5.094 kB / 0.5857 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.4944, allocations: 4.547 kB / 0.5858 GB, free: 2.348 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.4947, allocations: 56.22 kB / 0.5858 GB, free: 2.336 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003984/0.4951, allocations: 259.5 kB / 0.5861 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.4954, allocations: 78.81 kB / 0.5861 GB, free: 2.012 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.4956, allocations: 29.86 kB / 0.5862 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.4957, allocations: 82.42 kB / 0.5862 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.4957, allocations: 31.89 kB / 0.5863 GB, free: 1.867 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.4957, allocations: 4.719 kB / 0.5863 GB, free: 1.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004821/0.4962, allocations: 106.4 kB / 0.5864 GB, free: 1.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.4963, allocations: 57.22 kB / 0.5864 GB, free: 1.754 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.444e-05/0.4963, allocations: 101.3 kB / 0.5865 GB, free: 1.652 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.4964, allocations: 29.7 kB / 0.5866 GB, free: 1.617 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.292e-05/0.4964, allocations: 90.36 kB / 0.5866 GB, free: 1.527 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.4964, allocations: 1.281 kB / 0.5866 GB, free: 1.527 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.4965, allocations: 11.92 kB / 0.5867 GB, free: 1.512 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.72e-05/0.4965, allocations: 317.6 kB / 0.587 GB, free: 1.195 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.4966, allocations: 28.83 kB / 0.587 GB, free: 1.188 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.306e-05/0.4967, allocations: 21.78 kB / 0.587 GB, free: 1.188 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.4969, allocations: 55.08 kB / 0.5871 GB, free: 1.172 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.497, allocations: 7.938 kB / 0.5871 GB, free: 1.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002431/0.4972, allocations: 87.19 kB / 0.5871 GB, free: 1.121 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.4972, allocations: 9.25 kB / 0.5872 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4972, allocations: 0.7188 kB / 0.5872 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.777e-05/0.4973, allocations: 0.6875 kB / 0.5872 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.865e-05/0.4974, allocations: 17.53 kB / 0.5872 GB, free: 1.113 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.4974, allocations: 0.6094 kB / 0.5872 GB, free: 1.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.561e-05/0.4975, allocations: 9.031 kB / 0.5872 GB, free: 1.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.4975, allocations: 1.688 kB / 0.5872 GB, free: 1.113 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 7.096e-05/0.4976, allocations: 116.4 kB / 0.5873 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.4976, allocations: 2.031 kB / 0.5873 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002978/0.4979, allocations: 92.2 kB / 0.5874 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4979, allocations: 1.375 kB / 0.5874 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4979, allocations: 0.6562 kB / 0.5874 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4979, allocations: 0 / 0.5874 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.4981, allocations: 167.5 kB / 0.5875 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.4981, allocations: 3.938 kB / 0.5876 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-05/0.4982, allocations: 21.83 kB / 0.5876 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.4982, allocations: 1.281 kB / 0.5876 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.4982, allocations: 9.891 kB / 0.5876 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.4982, allocations: 0 / 0.5876 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4982, allocations: 0 / 0.5876 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.4985, allocations: 191.6 kB / 0.5878 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.806e-05/0.4985, allocations: 82.91 kB / 0.5878 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.4985, allocations: 0.8125 kB / 0.5878 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.4986, allocations: 8.641 kB / 0.5879 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.107e-05/0.4987, allocations: 6.188 kB / 0.5879 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.4987, allocations: 9.469 kB / 0.5879 GB, free: 472 kB / 430.1 MB Notification: Performance of sorting global known variables: time 2.58e-05/0.4987, allocations: 79.73 kB / 0.5879 GB, free: 396 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4987, allocations: 0 / 0.5879 GB, free: 396 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.499, allocations: 7.406 kB / 0.588 GB, free: 396 kB / 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.0001377/0.4991, allocations: 102.3 kB / 0.588 GB, free: 304 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.4994, allocations: 59.23 kB / 0.5881 GB, free: 292 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4994, allocations: 1.094 kB / 0.5881 GB, free: 292 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.4995, allocations: 29.66 kB / 0.5881 GB, free: 288 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.4998, allocations: 8.484 kB / 0.5881 GB, free: 284 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003036/0.5001, allocations: 123.2 kB / 0.5883 GB, free: 156 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.5005, allocations: 0.6818 MB / 0.5889 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.587e-05/0.5005, allocations: 7.422 kB / 0.5889 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.631e-05/0.5005, allocations: 10.8 kB / 0.5889 GB, free: 15.44 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.5006, allocations: 0 / 0.5889 GB, free: 15.44 MB / 446.1 MB Notification: Performance of Templates: time 0.003357/0.5039, allocations: 0.6069 MB / 0.5895 GB, free: 15.38 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)