Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadModel(ModelicaTest): time 2.294/2.294, allocations: 270 MB / 283.6 MB, free: 3.035 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.063e-05/3.077e-05, allocations: 6.75 kB / 348.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 61.89 MB / 410.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4021/0.5122, allocations: 85.82 MB / 496.1 MB, free: 2.363 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.5124, allocations: 59.97 kB / 496.1 MB, free: 2.305 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01488/0.5273, allocations: 3.326 MB / 499.5 MB, free: 14.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.911e-06/0.5274, allocations: 0 / 499.5 MB, free: 14.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.5274, allocations: 0 / 499.5 MB, free: 14.98 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004978/0.5279, allocations: 392 kB / 499.9 MB, free: 14.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.528, allocations: 8.031 kB / 499.9 MB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.528, allocations: 13.73 kB / 499.9 MB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.5283, allocations: 179 kB / 0.4883 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.5284, allocations: 0 / 0.4883 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.623e-05/0.5284, allocations: 11.95 kB / 0.4883 GB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.5286, allocations: 85.64 kB / 0.4884 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.5287, allocations: 0 / 0.4884 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.5287, allocations: 3.984 kB / 0.4884 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.852e-06/0.5287, allocations: 0 / 0.4884 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.76e-05/0.5288, allocations: 27.98 kB / 0.4885 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002412/0.529, allocations: 173.5 kB / 0.4886 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.5292, allocations: 54.5 kB / 0.4887 GB, free: 13.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.624e-05/0.5293, allocations: 20.8 kB / 0.4887 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.5293, allocations: 4 kB / 0.4887 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003076/0.5296, allocations: 135.2 kB / 0.4888 GB, free: 13.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.659e-06/0.5296, allocations: 0 / 0.4888 GB, free: 13.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003119/0.5299, allocations: 101.6 kB / 0.4889 GB, free: 13.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.53, allocations: 59.34 kB / 0.489 GB, free: 13.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.689e-05/0.5301, allocations: 96.91 kB / 0.4891 GB, free: 13.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.5302, allocations: 25.7 kB / 0.4891 GB, free: 13.42 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.757e-05/0.5302, allocations: 100.2 kB / 0.4892 GB, free: 13.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.5303, allocations: 19.95 kB / 0.4892 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.425e-06/0.5303, allocations: 0 / 0.4892 GB, free: 13.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.5305, allocations: 318.8 kB / 0.4895 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.225e-05/0.5306, allocations: 20 kB / 0.4895 GB, free: 12.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.5307, allocations: 79.66 kB / 0.4896 GB, free: 12.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.5308, allocations: 58.55 kB / 0.4897 GB, free: 12.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.02e-06/0.5308, allocations: 4 kB / 0.4897 GB, free: 12.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003191/0.5312, allocations: 155.2 kB / 0.4898 GB, free: 12.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.448e-05/0.5312, allocations: 37.66 kB / 0.4899 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.5312, allocations: 0 / 0.4899 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.5313, allocations: 4 kB / 0.4899 GB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.5314, allocations: 15.98 kB / 0.4899 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.5314, allocations: 4.062 kB / 0.4899 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.092e-05/0.5315, allocations: 15.84 kB / 0.4899 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.5316, allocations: 8 kB / 0.4899 GB, free: 12.54 MB / 410.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001661/0.5317, allocations: 133.8 kB / 0.49 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.036e-05/0.5318, allocations: 4 kB / 0.49 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.106e-05/0.5318, allocations: 12.05 kB / 0.49 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.498e-06/0.5319, allocations: 0 / 0.49 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.326e-06/0.5319, allocations: 0 / 0.49 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.596e-06/0.5319, allocations: 0 / 0.49 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.5321, allocations: 173.5 kB / 0.4902 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.401e-06/0.5321, allocations: 0 / 0.4902 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.681e-05/0.5322, allocations: 16.08 kB / 0.4902 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.801e-06/0.5322, allocations: 3.938 kB / 0.4902 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.5322, allocations: 4 kB / 0.4902 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.5322, allocations: 7.891 kB / 0.4902 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.64e-06/0.5323, allocations: 0 / 0.4902 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002719/0.5325, allocations: 125.1 kB / 0.4904 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.001e-05/0.5326, allocations: 81.02 kB / 0.4904 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.5327, allocations: 7.984 kB / 0.4904 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.5329, allocations: 31.92 kB / 0.4905 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.5329, allocations: 11.94 kB / 0.4905 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.5329, allocations: 4 kB / 0.4905 GB, free: 11.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.422e-05/0.533, allocations: 83.27 kB / 0.4906 GB, free: 11.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.97e-07/0.533, allocations: 0 / 0.4906 GB, free: 11.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004477/0.5335, allocations: 55.94 kB / 0.4906 GB, free: 11.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005535/0.534, allocations: 210.5 kB / 0.4908 GB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002606/0.5343, allocations: 127.3 kB / 0.4909 GB, free: 11.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.541e-06/0.5343, allocations: 0 / 0.4909 GB, free: 11.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.024e-05/0.5344, allocations: 31.98 kB / 0.491 GB, free: 11.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.5346, allocations: 8.281 kB / 0.491 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.535, allocations: 108.6 kB / 0.4911 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.5354, allocations: 0.6887 MB / 0.4918 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.268e-05/0.5355, allocations: 17.09 kB / 0.4918 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.8e-05/0.5355, allocations: 23.42 kB / 0.4918 GB, free: 10.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.305e-06/0.5355, allocations: 0 / 0.4918 GB, free: 10.44 MB / 410.7 MB Notification: Performance of Templates: time 0.006326/0.5419, allocations: 2.077 MB / 0.4938 GB, free: 8.367 MB / 410.7 MB