Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.383e-05/2.406e-05, allocations: 0 / 292.6 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0969/0.09695, allocations: 50.42 MB / 343.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4071/0.5041, allocations: 80.86 MB / 423.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.5043, allocations: 68.16 kB / 424 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02428/0.5286, allocations: 5.818 MB / 429.8 MB, free: 8.438 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.547e-06/0.5287, allocations: 0 / 429.8 MB, free: 8.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.758e-05/0.5287, allocations: 4 kB / 429.8 MB, free: 8.434 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007739/0.5295, allocations: 498.6 kB / 430.3 MB, free: 7.906 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.5296, allocations: 8.031 kB / 430.3 MB, free: 7.898 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.112e-05/0.5296, allocations: 19.77 kB / 430.3 MB, free: 7.879 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004803/0.5301, allocations: 259.7 kB / 430.6 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.5302, allocations: 4 kB / 430.6 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.5302, allocations: 11.69 kB / 430.6 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.5305, allocations: 108 kB / 430.7 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.5305, allocations: 4 kB / 430.7 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.5305, allocations: 0 / 430.7 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.872e-06/0.5305, allocations: 0 / 430.7 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.5307, allocations: 50.12 kB / 430.8 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008837/0.5316, allocations: 0.6205 MB / 431.4 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.5319, allocations: 124.8 kB / 431.5 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.532, allocations: 41.33 kB / 431.5 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.532, allocations: 4 kB / 431.5 MB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.5323, allocations: 127.8 kB / 431.7 MB, free: 6.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 3.055e-06/0.5323, allocations: 0 / 431.7 MB, free: 6.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.000379/0.5327, allocations: 125.8 kB / 431.8 MB, free: 6.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.975e-05/0.5328, allocations: 132.5 kB / 431.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/0.5332, allocations: 266.1 kB / 432.2 MB, free: 6.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.5333, allocations: 29.52 kB / 432.2 MB, free: 6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.5334, allocations: 125.7 kB / 432.3 MB, free: 5.895 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.5335, allocations: 30.33 kB / 432.4 MB, free: 5.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.615e-06/0.5335, allocations: 32 / 432.4 MB, free: 5.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.5337, allocations: 333.2 kB / 432.7 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.226e-05/0.5338, allocations: 30.25 kB / 432.7 MB, free: 5.527 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.534, allocations: 80.23 kB / 432.8 MB, free: 5.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.38e-05/0.5341, allocations: 35.27 kB / 432.8 MB, free: 5.414 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.161e-06/0.5341, allocations: 0 / 432.8 MB, free: 5.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003229/0.5344, allocations: 134.5 kB / 433 MB, free: 5.301 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.5344, allocations: 8 kB / 433 MB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.5345, allocations: 3.953 kB / 433 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.5345, allocations: 0 / 433 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.5346, allocations: 15.98 kB / 433 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.5347, allocations: 4 kB / 433 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/0.5348, allocations: 26.95 kB / 433 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.5349, allocations: 4 kB / 433 MB, free: 5.242 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001198/0.535, allocations: 111.9 kB / 433.1 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.011e-05/0.5351, allocations: 23.72 kB / 433.2 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.5354, allocations: 111.5 kB / 433.3 MB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.5354, allocations: 7.953 kB / 433.3 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.123e-06/0.5354, allocations: 3.938 kB / 433.3 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.718e-06/0.5355, allocations: 7.984 kB / 433.3 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003459/0.5358, allocations: 243.8 kB / 433.5 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5358, allocations: 0 / 433.5 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.043e-05/0.5359, allocations: 11.98 kB / 433.5 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.734e-06/0.5359, allocations: 0 / 433.5 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.5359, allocations: 6.812 kB / 433.5 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.413e-06/0.536, allocations: 128 / 433.5 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.464e-06/0.536, allocations: 7.953 kB / 433.5 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004085/0.5364, allocations: 215.4 kB / 433.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.5365, allocations: 104 kB / 433.9 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.067e-05/0.5366, allocations: 7.375 kB / 433.9 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.5368, allocations: 15.92 kB / 433.9 MB, free: 4.363 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.5369, allocations: 19.23 kB / 433.9 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.5369, allocations: 4 kB / 433.9 MB, free: 4.344 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000313/0.5372, allocations: 215.3 kB / 434.1 MB, free: 4.172 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.7e-07/0.5372, allocations: 0 / 434.1 MB, free: 4.172 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004027/0.5377, allocations: 39.81 kB / 434.2 MB, free: 4.137 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001461/0.5391, allocations: 409.8 kB / 434.6 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003117/0.5395, allocations: 89.78 kB / 434.6 MB, free: 3.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.114e-06/0.5395, allocations: 0 / 434.6 MB, free: 3.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.5396, allocations: 50.81 kB / 434.7 MB, free: 3.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.54, allocations: 46.91 kB / 434.7 MB, free: 3.719 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007134/0.5408, allocations: 268.5 kB / 435 MB, free: 3.461 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/0.5413, allocations: 0.7471 MB / 435.7 MB, free: 2.691 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.5414, allocations: 25.69 kB / 435.8 MB, free: 2.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.735e-05/0.5415, allocations: 19.44 kB / 435.8 MB, free: 2.648 MB / 346.7 MB Notification: Performance of SimCode: time 1.513e-06/0.5415, allocations: 0 / 435.8 MB, free: 2.648 MB / 346.7 MB Notification: Performance of Templates: time 0.008373/0.5499, allocations: 2.619 MB / 438.4 MB, free: 60 kB / 346.7 MB