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_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.567/1.567, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.68e-05/2.693e-05, allocations: 4 kB / 225 MB, free: 2.797 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2901, allocations: 38.78 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1009/0.3911, allocations: 66.22 MB / 330 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.3914, allocations: 67.91 kB / 330 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00889/0.4003, allocations: 2.072 MB / 332.1 MB, free: 5.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.978e-06/0.4003, allocations: 4 kB / 332.1 MB, free: 5.406 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.4003, allocations: 0 / 332.1 MB, free: 5.406 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.0005589/0.4009, allocations: 481 kB / 332.6 MB, free: 4.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.401, allocations: 8.031 kB / 332.6 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.401, allocations: 11.91 kB / 332.6 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.4012, allocations: 186.9 kB / 332.8 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.4013, allocations: 4 kB / 332.8 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.4013, allocations: 15.94 kB / 332.8 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.4015, allocations: 89.62 kB / 332.9 MB, free: 4.512 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.492e-06/0.4016, allocations: 0 / 332.9 MB, free: 4.512 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.4016, allocations: 8 kB / 332.9 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.352e-06/0.4016, allocations: 4 kB / 332.9 MB, free: 4.5 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.4018, allocations: 44 kB / 332.9 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/0.4024, allocations: 344.7 kB / 333.3 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.4025, allocations: 66.58 kB / 333.3 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.4027, allocations: 52.84 kB / 333.4 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.205e-06/0.4027, allocations: 0 / 333.4 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.403, allocations: 162.8 kB / 333.6 MB, free: 3.758 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.637e-06/0.403, allocations: 3.938 kB / 333.6 MB, free: 3.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.000479/0.4035, allocations: 213 kB / 333.8 MB, free: 3.527 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.4036, allocations: 166.2 kB / 333.9 MB, free: 3.328 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.4038, allocations: 121.1 kB / 334.1 MB, free: 3.199 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.177e-05/0.4038, allocations: 41.69 kB / 334.1 MB, free: 3.152 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.4039, allocations: 166.4 kB / 334.3 MB, free: 2.988 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.404, allocations: 15.81 kB / 334.3 MB, free: 2.973 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/0.404, allocations: 8 kB / 334.3 MB, free: 2.965 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.4042, allocations: 322.8 kB / 334.6 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.669e-05/0.4043, allocations: 35.89 kB / 334.6 MB, free: 2.605 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-05/0.4044, allocations: 39.94 kB / 334.7 MB, free: 2.566 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.4046, allocations: 144.5 kB / 334.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.61e-06/0.4046, allocations: 0 / 334.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000437/0.405, allocations: 269.2 kB / 335.1 MB, free: 2.109 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.79e-05/0.4051, allocations: 114.8 kB / 335.2 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.962e-06/0.4052, allocations: 3.984 kB / 335.2 MB, free: 1.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.4052, allocations: 4 kB / 335.2 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.031e-05/0.4052, allocations: 4.062 kB / 335.2 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.431e-06/0.4052, allocations: 0 / 335.2 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.387e-05/0.4053, allocations: 8 kB / 335.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.4054, allocations: 4 kB / 335.2 MB, free: 1.949 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.0001744/0.4056, allocations: 188.3 kB / 335.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.4056, allocations: 11.91 kB / 335.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.602e-05/0.4057, allocations: 16.61 kB / 335.4 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.93e-06/0.4057, allocations: 3.984 kB / 335.4 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.073e-06/0.4057, allocations: 0 / 335.4 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.4057, allocations: 0 / 335.4 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.406, allocations: 209.5 kB / 335.6 MB, free: 1.465 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.358e-06/0.406, allocations: 7.938 kB / 335.6 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.914e-06/0.406, allocations: 0 / 335.6 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.409e-06/0.406, allocations: 4 kB / 335.6 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.406, allocations: 4 kB / 335.6 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.403e-06/0.406, allocations: 0 / 335.6 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4061, allocations: 0 / 335.6 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004843/0.4065, allocations: 272.3 kB / 335.9 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/0.4066, allocations: 93.05 kB / 336 MB, free: 1.043 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.4067, allocations: 4 kB / 336 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.4068, allocations: 15.98 kB / 336 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.376e-05/0.4069, allocations: 11.98 kB / 336 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.4069, allocations: 4 kB / 336 MB, free: 1.008 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.436e-05/0.407, allocations: 103.3 kB / 336.1 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.407, allocations: 0 / 336.1 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003673/0.4074, allocations: 55.94 kB / 336.2 MB, free: 0.8516 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.0002994/0.4077, allocations: 148.1 kB / 336.3 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000429/0.4082, allocations: 325.5 kB / 336.7 MB, free: 340 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.003e-06/0.4082, allocations: 4 kB / 336.7 MB, free: 336 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002381/0.4084, allocations: 194.7 kB / 336.8 MB, free: 116 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.4086, allocations: 8 kB / 336.9 MB, free: 108 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004685/0.4091, allocations: 191.2 kB / 337 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.4095, allocations: 0.7004 MB / 337.7 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.4095, allocations: 11.44 kB / 337.8 MB, free: 15.15 MB / 298.7 MB Notification: Performance of SimCode: time 1.626e-06/0.4095, allocations: 0 / 337.8 MB, free: 15.15 MB / 298.7 MB Notification: Performance of Templates: time 0.00407/0.4136, allocations: 1.568 MB / 339.3 MB, free: 13.59 MB / 298.7 MB