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.0009351/0.0009352, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.00637/0.006371, allocations: 171.2 kB / 16.27 MB, free: 6.652 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.51/1.51, 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.8004/0.8004, allocations: 132.4 MB / 423.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004186/0.0004185, allocations: 12 kB / 0.504 GB, free: 3.879 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4662/0.4666, allocations: 81.58 MB / 0.5837 GB, free: 4.035 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001026/0.4677, allocations: 311.5 kB / 0.584 GB, free: 3.828 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004262/0.4682, allocations: 56.27 kB / 0.584 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.43e-05/0.4682, allocations: 0.5 kB / 0.584 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.95e-05/0.4682, allocations: 1.156 kB / 0.584 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.385e-06/0.4682, allocations: 0 / 0.584 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.4685, allocations: 5.625 kB / 0.584 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.309e-05/0.4686, allocations: 11.11 kB / 0.5841 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.977e-05/0.4687, allocations: 1.797 kB / 0.5841 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.126e-05/0.4687, allocations: 2.016 kB / 0.5841 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.549e-05/0.4688, allocations: 0.9688 kB / 0.5841 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.4688, allocations: 6.312 kB / 0.5841 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.941e-05/0.4689, allocations: 6.625 kB / 0.5841 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.835e-05/0.4689, allocations: 4.75 kB / 0.5841 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.278e-05/0.469, allocations: 30.61 kB / 0.5841 GB, free: 3.738 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.4691, allocations: 11.23 kB / 0.5841 GB, free: 3.734 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4691, allocations: 0 / 0.5841 GB, free: 3.734 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.997e-06/0.4691, allocations: 0.75 kB / 0.5841 GB, free: 3.734 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.4691, allocations: 0 / 0.5841 GB, free: 3.734 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003719/0.4695, allocations: 318.7 kB / 0.5844 GB, free: 3.379 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.009e-05/0.4696, allocations: 10.11 kB / 0.5844 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.4696, allocations: 4.938 kB / 0.5844 GB, free: 3.375 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.015e-05/0.4697, allocations: 162.7 kB / 0.5846 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.4697, allocations: 384 / 0.5846 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.4698, allocations: 1.531 kB / 0.5846 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000147/0.4699, allocations: 30.86 kB / 0.5846 GB, free: 3.148 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.4699, allocations: 1.156 kB / 0.5846 GB, free: 3.148 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.4699, allocations: 3.938 kB / 0.5846 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.47, allocations: 5.859 kB / 0.5846 GB, free: 3.141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.695e-05/0.47, allocations: 8.109 kB / 0.5846 GB, free: 3.137 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.4702, allocations: 148.5 kB / 0.5848 GB, free: 2.945 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.864e-05/0.4703, allocations: 21.36 kB / 0.5848 GB, free: 2.922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.615e-05/0.4703, allocations: 15.95 kB / 0.5848 GB, free: 2.906 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002116/0.4705, allocations: 81.11 kB / 0.5849 GB, free: 2.812 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.4706, allocations: 36.45 kB / 0.5849 GB, free: 2.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.4706, allocations: 0 / 0.5849 GB, free: 2.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001862/0.4708, allocations: 48.61 kB / 0.585 GB, free: 2.727 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.4708, allocations: 53.58 kB / 0.585 GB, free: 2.664 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.963e-05/0.4708, allocations: 94.66 kB / 0.5851 GB, free: 2.562 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.4709, allocations: 25.7 kB / 0.5851 GB, free: 2.531 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.794e-05/0.4709, allocations: 80.14 kB / 0.5852 GB, free: 2.449 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.4709, allocations: 0.9375 kB / 0.5852 GB, free: 2.449 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/0.4709, allocations: 19.31 kB / 0.5852 GB, free: 2.426 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.471, allocations: 317.5 kB / 0.5855 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.471, allocations: 1.422 kB / 0.5855 GB, free: 2.109 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.885e-06/0.471, allocations: 2.312 kB / 0.5855 GB, free: 2.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.696e-05/0.4711, allocations: 10.61 kB / 0.5856 GB, free: 2.102 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.4711, allocations: 0 / 0.5856 GB, free: 2.102 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.163e-05/0.4712, allocations: 44.58 kB / 0.5856 GB, free: 2.062 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.4712, allocations: 5.375 kB / 0.5856 GB, free: 2.062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.4712, allocations: 4.094 kB / 0.5856 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4712, allocations: 5.938 kB / 0.5856 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.721e-05/0.4713, allocations: 2.797 kB / 0.5856 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.4713, allocations: 0.7031 kB / 0.5856 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.488e-05/0.4713, allocations: 1.344 kB / 0.5856 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-06/0.4713, allocations: 0 / 0.5856 GB, free: 2.055 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 (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 5.885e-05/0.4714, allocations: 112.1 kB / 0.5857 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-06/0.4714, allocations: 1.672 kB / 0.5857 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.998e-05/0.4715, allocations: 57.22 kB / 0.5858 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4715, allocations: 1.062 kB / 0.5858 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4715, allocations: 0 / 0.5858 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4715, allocations: 1.328 kB / 0.5858 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.846e-05/0.4716, allocations: 150 kB / 0.5859 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.4716, allocations: 0 / 0.5859 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.273e-05/0.4717, allocations: 4.297 kB / 0.5859 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.4717, allocations: 0 / 0.5859 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.4717, allocations: 5.172 kB / 0.5859 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4717, allocations: 0.6562 kB / 0.5859 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.4717, allocations: 3.938 kB / 0.5859 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.021e-05/0.4718, allocations: 70.03 kB / 0.586 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.093e-05/0.4718, allocations: 81.67 kB / 0.5861 GB, free: 1.516 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.4718, allocations: 5.609 kB / 0.5861 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.082e-05/0.4719, allocations: 0 / 0.5861 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.4719, allocations: 7.062 kB / 0.5861 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.4719, allocations: 1.625 kB / 0.5861 GB, free: 1.508 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.067e-05/0.4719, allocations: 75.31 kB / 0.5862 GB, free: 1.434 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4719, allocations: 4 kB / 0.5862 GB, free: 1.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002271/0.4722, allocations: 8.031 kB / 0.5862 GB, free: 1.426 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,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.0002127/0.4724, allocations: 100.6 kB / 0.5863 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.4725, allocations: 8.906 kB / 0.5863 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4725, allocations: 0 / 0.5863 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.863e-05/0.4725, allocations: 3.875 kB / 0.5863 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.4727, allocations: 5.516 kB / 0.5863 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002152/0.4729, allocations: 91.41 kB / 0.5864 GB, free: 1.234 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/0.4731, allocations: 0.6763 MB / 0.587 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.801e-05/0.4731, allocations: 2.547 kB / 0.587 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.669e-05/0.4731, allocations: 8.922 kB / 0.587 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4731, allocations: 0 / 0.587 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of Templates: time 0.002848/0.476, allocations: 310 kB / 0.5873 GB, free: 476 kB / 430.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)