Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.411e-05/3.425e-05, allocations: 6.031 kB / 292.7 MB, free: 8.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09313, allocations: 50.41 MB / 343.1 MB, free: 5.941 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3926/0.4858, allocations: 80.58 MB / 423.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.4861, allocations: 77.58 kB / 423.7 MB, free: 13.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05963/0.5457, allocations: 9.203 MB / 432.9 MB, free: 5.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.108e-06/0.5458, allocations: 0 / 432.9 MB, free: 5.844 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.876e-05/0.5459, allocations: 4 kB / 432.9 MB, free: 5.84 MB / 346.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.001388/0.5473, allocations: 0.5757 MB / 433.5 MB, free: 5.223 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.5474, allocations: 8.031 kB / 433.5 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.5476, allocations: 39.48 kB / 433.5 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.5488, allocations: 327.1 kB / 433.9 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.5488, allocations: 15.73 kB / 433.9 MB, free: 4.836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.511e-05/0.5489, allocations: 10.5 kB / 433.9 MB, free: 4.828 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/0.5495, allocations: 149.3 kB / 434 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.5495, allocations: 0 / 434 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.5496, allocations: 3.312 kB / 434 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.5496, allocations: 7.953 kB / 434.1 MB, free: 4.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000358/0.55, allocations: 67.72 kB / 434.1 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.5517, allocations: 0.5095 MB / 434.6 MB, free: 4.176 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005491/0.5523, allocations: 120.9 kB / 434.7 MB, free: 4.086 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.5526, allocations: 50.28 kB / 434.8 MB, free: 4.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.5526, allocations: 4 kB / 434.8 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004315/0.5531, allocations: 120.7 kB / 434.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 5.577e-06/0.5531, allocations: 0 / 434.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007792/0.5539, allocations: 166.9 kB / 435.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.554, allocations: 106.8 kB / 435.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.5553, allocations: 393 kB / 435.6 MB, free: 3.367 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.393e-05/0.5554, allocations: 32.89 kB / 435.6 MB, free: 3.332 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.5556, allocations: 167.7 kB / 435.8 MB, free: 3.215 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.988e-05/0.5558, allocations: 42.47 kB / 435.8 MB, free: 3.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/0.5558, allocations: 0 / 435.8 MB, free: 3.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002764/0.5561, allocations: 352.1 kB / 436.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.5564, allocations: 40.88 kB / 436.2 MB, free: 2.816 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003378/0.5567, allocations: 102.7 kB / 436.3 MB, free: 2.715 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.557, allocations: 42.69 kB / 436.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.514e-06/0.557, allocations: 0 / 436.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000771/0.5578, allocations: 180.7 kB / 436.5 MB, free: 2.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.5579, allocations: 8 kB / 436.5 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.105e-06/0.5579, allocations: 0 / 436.5 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.5579, allocations: 0 / 436.5 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.5582, allocations: 27.92 kB / 436.5 MB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.341e-06/0.5582, allocations: 0 / 436.5 MB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.5584, allocations: 27.53 kB / 436.6 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.5584, allocations: 4 kB / 436.6 MB, free: 2.477 MB / 346.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.0001385/0.5586, allocations: 128 kB / 436.7 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.255e-05/0.5587, allocations: 27.62 kB / 436.7 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000512/0.5592, allocations: 194.1 kB / 436.9 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.792e-06/0.5592, allocations: 3.984 kB / 436.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.5592, allocations: 0 / 436.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.368e-06/0.5593, allocations: 11.98 kB / 436.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.5597, allocations: 317.8 kB / 437.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.126e-06/0.5597, allocations: 4 kB / 437.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.157e-05/0.5598, allocations: 11.94 kB / 437.3 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.5598, allocations: 0 / 437.3 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.5599, allocations: 7.984 kB / 437.3 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.669e-06/0.5599, allocations: 0 / 437.3 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.51e-06/0.5599, allocations: 0 / 437.3 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004556/0.5603, allocations: 216.9 kB / 437.5 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.5605, allocations: 127.3 kB / 437.6 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.352e-05/0.5606, allocations: 3.125 kB / 437.6 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.5608, allocations: 14.92 kB / 437.6 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.632e-05/0.5608, allocations: 14.55 kB / 437.6 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.5609, allocations: 7.938 kB / 437.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005435/0.5614, allocations: 313.2 kB / 437.9 MB, free: 1.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.55e-07/0.5615, allocations: 0 / 437.9 MB, free: 1.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004362/0.5619, allocations: 60.12 kB / 438 MB, free: 1.176 MB / 346.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.001511/0.5634, allocations: 429.7 kB / 438.4 MB, free: 0.875 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003965/0.5638, allocations: 121 kB / 438.5 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.094e-06/0.5639, allocations: 3.938 kB / 438.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.564, allocations: 61.8 kB / 438.6 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.5645, allocations: 70.89 kB / 438.7 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000973/0.5655, allocations: 397.1 kB / 439.1 MB, free: 348 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.5661, allocations: 0.7812 MB / 439.8 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002359/0.5663, allocations: 50.02 kB / 439.9 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.5665, allocations: 35.38 kB / 439.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.441e-06/0.5665, allocations: 0 / 439.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of Templates: time 0.01136/0.5778, allocations: 3.783 MB / 443.7 MB, free: 11.71 MB / 362.7 MB