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.2_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 194.9 MB / 208 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.589e-05/3.6e-05, allocations: 0 / 255.4 MB, free: 2.695 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.132, allocations: 44.51 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3607/0.4927, allocations: 71.53 MB / 371.4 MB, free: 21.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.4931, allocations: 63.41 kB / 371.5 MB, free: 21.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01658/0.5097, allocations: 2.068 MB / 373.5 MB, free: 21.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.379e-06/0.5097, allocations: 1.219 kB / 373.5 MB, free: 21.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.681e-06/0.5098, allocations: 1.031 kB / 373.5 MB, free: 21.56 MB / 314.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.0003628/0.5101, allocations: 473.2 kB / 374 MB, free: 21.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.5102, allocations: 10.97 kB / 374 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.749e-05/0.5103, allocations: 11.72 kB / 374 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.037e-05/0.5104, allocations: 188.3 kB / 374.2 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.5104, allocations: 11.66 kB / 374.2 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.5104, allocations: 7.5 kB / 374.2 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.5107, allocations: 88.02 kB / 374.3 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.5107, allocations: 4 kB / 374.3 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.5107, allocations: 8.031 kB / 374.3 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.568e-06/0.5107, allocations: 1.375 kB / 374.3 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.5109, allocations: 48.8 kB / 374.4 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004876/0.5114, allocations: 345.2 kB / 374.7 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.5116, allocations: 68.25 kB / 374.8 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.5117, allocations: 52.19 kB / 374.8 MB, free: 20.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.5117, allocations: 1.281 kB / 374.8 MB, free: 20.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.5119, allocations: 159.9 kB / 375 MB, free: 20.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.648e-06/0.512, allocations: 0 / 375 MB, free: 20.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004274/0.5124, allocations: 223.6 kB / 375.2 MB, free: 20.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.5125, allocations: 162.7 kB / 375.4 MB, free: 20.1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.5126, allocations: 119.2 kB / 375.5 MB, free: 20.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.5126, allocations: 34.3 kB / 375.5 MB, free: 19.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.057e-05/0.5127, allocations: 98.61 kB / 375.6 MB, free: 19.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.5127, allocations: 22.98 kB / 375.6 MB, free: 19.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.5128, allocations: 5.719 kB / 375.6 MB, free: 19.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.5128, allocations: 323.5 kB / 376 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.831e-05/0.5129, allocations: 43.55 kB / 376 MB, free: 19.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.763e-05/0.513, allocations: 33.39 kB / 376 MB, free: 19.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.5132, allocations: 142.4 kB / 376.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.741e-06/0.5132, allocations: 0 / 376.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003709/0.5136, allocations: 271.2 kB / 376.4 MB, free: 19.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.247e-05/0.5136, allocations: 115.5 kB / 376.5 MB, free: 19.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.432e-06/0.5137, allocations: 0 / 376.5 MB, free: 19.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.5137, allocations: 1.062 kB / 376.5 MB, free: 19.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.565e-05/0.5137, allocations: 2.125 kB / 376.5 MB, free: 19.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.841e-06/0.5137, allocations: 8.672 kB / 376.6 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.798e-05/0.5138, allocations: 13.73 kB / 376.6 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.5139, allocations: 6.938 kB / 376.6 MB, free: 19.13 MB / 314.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.0001096/0.514, allocations: 183 kB / 376.8 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.5141, allocations: 11.59 kB / 376.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.109e-05/0.5141, allocations: 11.47 kB / 376.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.73e-06/0.5141, allocations: 4 kB / 376.8 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.015e-06/0.5141, allocations: 0.875 kB / 376.8 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.404e-06/0.5141, allocations: 3.953 kB / 376.8 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.5143, allocations: 203.2 kB / 377 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.207e-06/0.5143, allocations: 0 / 377 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.647e-06/0.5143, allocations: 1.031 kB / 377 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.5143, allocations: 1.062 kB / 377 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.5144, allocations: 6.812 kB / 377 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.331e-06/0.5144, allocations: 2.484 kB / 377 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5144, allocations: 0 / 377 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004445/0.5149, allocations: 279.7 kB / 377.3 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.877e-05/0.5149, allocations: 92.88 kB / 377.4 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.515, allocations: 4.344 kB / 377.4 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.5151, allocations: 10.69 kB / 377.4 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.5151, allocations: 11 kB / 377.4 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.5152, allocations: 14.03 kB / 377.4 MB, free: 18.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.051e-05/0.5152, allocations: 94.52 kB / 377.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.72e-07/0.5153, allocations: 0 / 377.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003836/0.5157, allocations: 58.42 kB / 377.5 MB, free: 18.42 MB / 314.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.0002559/0.5159, allocations: 142.6 kB / 377.7 MB, free: 18.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003445/0.5163, allocations: 328.4 kB / 378 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.73e-06/0.5163, allocations: 0 / 378 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.5165, allocations: 192.3 kB / 378.2 MB, free: 17.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.5167, allocations: 8.641 kB / 378.2 MB, free: 17.95 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004098/0.5171, allocations: 175.1 kB / 378.4 MB, free: 17.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001519/0.5172, allocations: 0.7048 MB / 379.1 MB, free: 17.16 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.386e-05/0.5173, allocations: 4.266 kB / 379.1 MB, free: 17.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.166e-05/0.5173, allocations: 10.19 kB / 379.1 MB, free: 17.15 MB / 314.7 MB Notification: Performance of SimCode: time 1.324e-06/0.5173, allocations: 0 / 379.1 MB, free: 17.15 MB / 314.7 MB Notification: Performance of Templates: time 0.00534/0.5227, allocations: 1.424 MB / 380.5 MB, free: 17.01 MB / 314.7 MB