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.3_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.909e-05/2.919e-05, allocations: 4 kB / 269.3 MB, free: 6.418 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08536, allocations: 47.57 MB / 316.9 MB, free: 6.762 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3923/0.4777, allocations: 78.91 MB / 395.8 MB, free: 9.301 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.4781, allocations: 70.28 kB / 395.9 MB, free: 9.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03841/0.5165, allocations: 8.972 MB / 404.9 MB, free: 1.707 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.127e-06/0.5165, allocations: 4 kB / 404.9 MB, free: 1.703 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.607e-05/0.5166, allocations: 8 kB / 404.9 MB, free: 1.695 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009319/0.5175, allocations: 0.5672 MB / 405.5 MB, free: 1.086 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.5176, allocations: 8.031 kB / 405.5 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.731e-05/0.5177, allocations: 31.62 kB / 405.5 MB, free: 1.047 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000694/0.5184, allocations: 334.4 kB / 405.8 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.5185, allocations: 11.81 kB / 405.8 MB, free: 0.707 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.5185, allocations: 11.88 kB / 405.8 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.5188, allocations: 146.5 kB / 406 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.635e-06/0.5189, allocations: 3.938 kB / 406 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.5189, allocations: 4 kB / 406 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.649e-06/0.5189, allocations: 0 / 406 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.5191, allocations: 74.89 kB / 406.1 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009348/0.5201, allocations: 0.5082 MB / 406.6 MB, free: 48 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.5204, allocations: 133 kB / 406.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.5206, allocations: 52.16 kB / 406.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.5206, allocations: 0 / 406.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.5209, allocations: 106.7 kB / 406.9 MB, free: 15.81 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.782e-06/0.5209, allocations: 0 / 406.9 MB, free: 15.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.000437/0.5213, allocations: 168.4 kB / 407 MB, free: 15.67 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.5214, allocations: 110.8 kB / 407.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006699/0.5221, allocations: 398.6 kB / 407.5 MB, free: 15.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.5222, allocations: 29.64 kB / 407.5 MB, free: 15.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.5223, allocations: 167.3 kB / 407.7 MB, free: 15.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.651e-05/0.5224, allocations: 38.11 kB / 407.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.569e-06/0.5224, allocations: 0 / 407.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.5226, allocations: 344.1 kB / 408.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.5227, allocations: 44.75 kB / 408.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.5229, allocations: 106.9 kB / 408.2 MB, free: 14.58 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.5231, allocations: 48 kB / 408.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.5231, allocations: 0 / 408.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004132/0.5235, allocations: 175 kB / 408.5 MB, free: 14.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.5236, allocations: 8.062 kB / 408.5 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.727e-06/0.5236, allocations: 4 kB / 408.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.5236, allocations: 7.984 kB / 408.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.5238, allocations: 27.92 kB / 408.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.104e-06/0.5238, allocations: 0 / 408.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.524, allocations: 15.47 kB / 408.5 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.524, allocations: 4 kB / 408.5 MB, free: 14.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.0001309/0.5242, allocations: 125 kB / 408.6 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.263e-05/0.5243, allocations: 35.62 kB / 408.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004481/0.5247, allocations: 195.6 kB / 408.9 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.5247, allocations: 0 / 408.9 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.457e-06/0.5248, allocations: 7.891 kB / 408.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.201e-06/0.5248, allocations: 3.984 kB / 408.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004036/0.5252, allocations: 314.2 kB / 409.2 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.957e-06/0.5252, allocations: 0 / 409.2 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.349e-05/0.5253, allocations: 12 kB / 409.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.5253, allocations: 0 / 409.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.5253, allocations: 11.36 kB / 409.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.686e-06/0.5254, allocations: 4 kB / 409.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.969e-06/0.5254, allocations: 0 / 409.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000594/0.526, allocations: 209.8 kB / 409.4 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.5262, allocations: 123.5 kB / 409.5 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.5262, allocations: 11.38 kB / 409.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.5264, allocations: 15.11 kB / 409.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.68e-05/0.5265, allocations: 19.11 kB / 409.6 MB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.5265, allocations: 4 kB / 409.6 MB, free: 13.33 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004929/0.527, allocations: 320.8 kB / 409.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.527, allocations: 0 / 409.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004336/0.5275, allocations: 66.81 kB / 410 MB, free: 13.03 MB / 330.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 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001441/0.5289, allocations: 419.7 kB / 410.4 MB, free: 12.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003637/0.5293, allocations: 130.4 kB / 410.5 MB, free: 12.58 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.623e-06/0.5293, allocations: 0 / 410.5 MB, free: 12.58 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.5295, allocations: 60.11 kB / 410.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004398/0.53, allocations: 60.3 kB / 410.6 MB, free: 12.49 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009134/0.5309, allocations: 389.8 kB / 411 MB, free: 12.15 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.5314, allocations: 0.7845 MB / 411.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.5317, allocations: 54.03 kB / 411.8 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.5318, allocations: 26.25 kB / 411.9 MB, free: 11.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.822e-06/0.5318, allocations: 0 / 411.9 MB, free: 11.27 MB / 330.7 MB Notification: Performance of Templates: time 0.01147/0.5433, allocations: 3.801 MB / 415.7 MB, free: 7.48 MB / 330.7 MB