Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.837e-05/2.846e-05, allocations: 0 / 292.1 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09069/0.09074, allocations: 50.43 MB / 342.6 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3647/0.4555, allocations: 80.85 MB / 423.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.4558, allocations: 74.28 kB / 423.5 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02479/0.4806, allocations: 5.815 MB / 429.3 MB, free: 8.434 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.96e-06/0.4806, allocations: 0 / 429.3 MB, free: 8.434 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.466e-05/0.4807, allocations: 4 kB / 429.3 MB, free: 8.43 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.0008159/0.4815, allocations: 0.4894 MB / 429.8 MB, free: 7.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4815, allocations: 8.031 kB / 429.8 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.782e-05/0.4816, allocations: 23.77 kB / 429.8 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000489/0.4821, allocations: 257.4 kB / 430.1 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.4822, allocations: 4 kB / 430.1 MB, free: 7.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.332e-05/0.4822, allocations: 7.25 kB / 430.1 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002589/0.4825, allocations: 110.7 kB / 430.2 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4825, allocations: 0 / 430.2 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.4825, allocations: 3.312 kB / 430.2 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.4826, allocations: 4 kB / 430.2 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.4827, allocations: 48.94 kB / 430.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009349/0.4837, allocations: 0.6099 MB / 430.8 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.484, allocations: 123.5 kB / 431 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.4841, allocations: 54.81 kB / 431 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.4841, allocations: 0 / 431 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.4844, allocations: 114.8 kB / 431.1 MB, free: 6.523 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.717e-06/0.4844, allocations: 0 / 431.1 MB, free: 6.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004141/0.4848, allocations: 128.1 kB / 431.3 MB, free: 6.414 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.485, allocations: 144.1 kB / 431.4 MB, free: 6.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.4854, allocations: 255.3 kB / 431.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.4855, allocations: 36.62 kB / 431.7 MB, free: 5.996 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.4856, allocations: 126.2 kB / 431.8 MB, free: 5.895 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.586e-05/0.4856, allocations: 27.02 kB / 431.8 MB, free: 5.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.772e-06/0.4857, allocations: 0 / 431.8 MB, free: 5.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.4859, allocations: 336.8 kB / 432.2 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.557e-05/0.486, allocations: 26.44 kB / 432.2 MB, free: 5.527 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.4861, allocations: 79.75 kB / 432.3 MB, free: 5.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.607e-05/0.4862, allocations: 34.55 kB / 432.3 MB, free: 5.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.107e-06/0.4862, allocations: 0 / 432.3 MB, free: 5.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003282/0.4866, allocations: 144.5 kB / 432.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4866, allocations: 4 kB / 432.4 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.834e-06/0.4866, allocations: 3.953 kB / 432.4 MB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.4867, allocations: 4 kB / 432.5 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.4868, allocations: 15.98 kB / 432.5 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.4868, allocations: 7.922 kB / 432.5 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.487, allocations: 19.92 kB / 432.5 MB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.4871, allocations: 8.094 kB / 432.5 MB, free: 5.234 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.0001233/0.4872, allocations: 113.4 kB / 432.6 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.4873, allocations: 19.72 kB / 432.6 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.4876, allocations: 112.2 kB / 432.7 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.914e-06/0.4876, allocations: 7.953 kB / 432.8 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.124e-06/0.4876, allocations: 0 / 432.8 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.397e-06/0.4876, allocations: 0 / 432.8 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.488, allocations: 257.2 kB / 433 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.488, allocations: 0 / 433 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.797e-05/0.4881, allocations: 11.98 kB / 433 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.518e-06/0.4881, allocations: 4 kB / 433 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.4882, allocations: 2.188 kB / 433 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.285e-06/0.4882, allocations: 0 / 433 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.84e-06/0.4882, allocations: 7.953 kB / 433 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003889/0.4886, allocations: 202.4 kB / 433.2 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.4887, allocations: 103.9 kB / 433.3 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/0.4888, allocations: 6.984 kB / 433.3 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.489, allocations: 19.61 kB / 433.4 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.064e-05/0.4891, allocations: 8.109 kB / 433.4 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.4891, allocations: 11.56 kB / 433.4 MB, free: 4.352 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003117/0.4894, allocations: 218.6 kB / 433.6 MB, free: 4.176 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.09e-07/0.4894, allocations: 0 / 433.6 MB, free: 4.176 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004126/0.4899, allocations: 43.11 kB / 433.6 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.00148/0.4913, allocations: 424.3 kB / 434 MB, free: 3.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.4917, allocations: 84.05 kB / 434.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.756e-06/0.4917, allocations: 3.938 kB / 434.1 MB, free: 3.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.4919, allocations: 50.48 kB / 434.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.4923, allocations: 38.03 kB / 434.2 MB, free: 3.711 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006948/0.493, allocations: 271.5 kB / 434.5 MB, free: 3.453 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/0.4935, allocations: 0.7435 MB / 435.2 MB, free: 2.688 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.4936, allocations: 33.67 kB / 435.3 MB, free: 2.656 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.047e-05/0.4937, allocations: 19.44 kB / 435.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of SimCode: time 1.894e-06/0.4937, allocations: 0 / 435.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of Templates: time 0.008623/0.5024, allocations: 2.618 MB / 437.9 MB, free: 56 kB / 346.7 MB