Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.662/1.662, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.054e-05/3.073e-05, allocations: 4 kB / 225 MB, free: 2.348 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2103, allocations: 38.77 MB / 263.8 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.3182, allocations: 66.23 MB / 330 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.3185, allocations: 67.91 kB / 330.1 MB, free: 7.426 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008778/0.3273, allocations: 2.072 MB / 332.1 MB, free: 5.348 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.227e-06/0.3274, allocations: 0 / 332.1 MB, free: 5.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3274, allocations: 4 kB / 332.1 MB, free: 5.344 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005376/0.3279, allocations: 481 kB / 332.6 MB, free: 4.805 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.328, allocations: 8.031 kB / 332.6 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.974e-05/0.3281, allocations: 11.91 kB / 332.6 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.3282, allocations: 182.9 kB / 332.8 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.3283, allocations: 8 kB / 332.8 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.3283, allocations: 15.94 kB / 332.8 MB, free: 4.543 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.3286, allocations: 89.62 kB / 332.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.33e-06/0.3286, allocations: 0 / 332.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.3286, allocations: 8 kB / 332.9 MB, free: 4.441 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.965e-06/0.3286, allocations: 0 / 332.9 MB, free: 4.441 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001394/0.3288, allocations: 43.98 kB / 333 MB, free: 4.398 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.3294, allocations: 348.7 kB / 333.3 MB, free: 4.008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.3296, allocations: 66.58 kB / 333.4 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.3297, allocations: 48.84 kB / 333.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.3297, allocations: 0 / 333.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.33, allocations: 162.8 kB / 333.6 MB, free: 3.699 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.827e-06/0.33, allocations: 0 / 333.6 MB, free: 3.699 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004725/0.3305, allocations: 225 kB / 333.8 MB, free: 3.461 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.3306, allocations: 162.2 kB / 334 MB, free: 3.266 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.3308, allocations: 125.1 kB / 334.1 MB, free: 3.133 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.3308, allocations: 29.7 kB / 334.1 MB, free: 3.098 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.587e-05/0.3309, allocations: 100 kB / 334.2 MB, free: 2.996 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.331, allocations: 27.8 kB / 334.2 MB, free: 2.969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.144e-06/0.331, allocations: 0 / 334.2 MB, free: 2.969 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3312, allocations: 330.8 kB / 334.6 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.3313, allocations: 39.84 kB / 334.6 MB, free: 2.598 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.3314, allocations: 39.92 kB / 334.6 MB, free: 2.559 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.3316, allocations: 143.6 kB / 334.8 MB, free: 2.395 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.682e-06/0.3316, allocations: 0 / 334.8 MB, free: 2.395 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004487/0.3321, allocations: 270.2 kB / 335 MB, free: 2.102 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.3322, allocations: 114.8 kB / 335.2 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.386e-06/0.3322, allocations: 0 / 335.2 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3322, allocations: 0 / 335.2 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.082e-05/0.3323, allocations: 11.97 kB / 335.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.162e-06/0.3323, allocations: 4 kB / 335.2 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.3324, allocations: 8 kB / 335.2 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.3325, allocations: 8 kB / 335.2 MB, free: 1.934 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001739/0.3327, allocations: 185 kB / 335.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.3327, allocations: 11.91 kB / 335.4 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.577e-05/0.3328, allocations: 8.609 kB / 335.4 MB, free: 1.715 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3328, allocations: 4 kB / 335.4 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.3328, allocations: 4 kB / 335.4 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3328, allocations: 0 / 335.4 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.333, allocations: 209.5 kB / 335.6 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-06/0.3331, allocations: 3.938 kB / 335.6 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.4e-05/0.3331, allocations: 8 kB / 335.6 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.549e-06/0.3331, allocations: 0 / 335.6 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.3331, allocations: 4 kB / 335.6 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.263e-06/0.3331, allocations: 0 / 335.6 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.576e-06/0.3331, allocations: 0 / 335.6 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005023/0.3337, allocations: 276.3 kB / 335.9 MB, free: 1.137 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.736e-05/0.3337, allocations: 93.05 kB / 336 MB, free: 1.027 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.3338, allocations: 4 kB / 336 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.3339, allocations: 11.98 kB / 336 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.407e-05/0.334, allocations: 11.98 kB / 336 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.334, allocations: 4 kB / 336 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.407e-05/0.3341, allocations: 99.27 kB / 336.1 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.3341, allocations: 0 / 336.1 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003811/0.3345, allocations: 56 kB / 336.2 MB, free: 0.8438 MB / 282.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: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0002953/0.3348, allocations: 143.2 kB / 336.3 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004465/0.3353, allocations: 329.5 kB / 336.6 MB, free: 328 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.842e-06/0.3353, allocations: 0 / 336.6 MB, free: 328 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.3356, allocations: 194.7 kB / 336.8 MB, free: 108 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.3357, allocations: 4 kB / 336.8 MB, free: 104 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004495/0.3362, allocations: 169.4 kB / 337 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.3366, allocations: 0.7043 MB / 337.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.142e-05/0.3366, allocations: 4 kB / 337.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.25e-05/0.3367, allocations: 11.44 kB / 337.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of SimCode: time 1.44e-06/0.3367, allocations: 0 / 337.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of Templates: time 0.005615/0.3423, allocations: 1.434 MB / 339.1 MB, free: 13.75 MB / 298.7 MB