Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.622e-05/2.632e-05, allocations: 4 kB / 269.3 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0854/0.08544, allocations: 47.57 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3419/0.4274, allocations: 79.27 MB / 396.2 MB, free: 8.844 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.4277, allocations: 68.03 kB / 396.3 MB, free: 8.812 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02384/0.4515, allocations: 5.661 MB / 401.9 MB, free: 4.039 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.906e-06/0.4516, allocations: 0 / 401.9 MB, free: 4.039 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.425e-05/0.4516, allocations: 4 kB / 401.9 MB, free: 4.035 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007812/0.4524, allocations: 489 kB / 402.4 MB, free: 3.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.4525, allocations: 8.031 kB / 402.4 MB, free: 3.512 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.215e-05/0.4526, allocations: 15.81 kB / 402.4 MB, free: 3.496 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000494/0.4531, allocations: 265.6 kB / 402.7 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.4531, allocations: 7.375 kB / 402.7 MB, free: 3.211 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.4532, allocations: 4 kB / 402.7 MB, free: 3.207 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.4534, allocations: 134 kB / 402.8 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.215e-06/0.4535, allocations: 0 / 402.8 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.4535, allocations: 0 / 402.8 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.382e-06/0.4535, allocations: 0 / 402.8 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.4536, allocations: 49.73 kB / 402.9 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008835/0.4545, allocations: 0.6136 MB / 403.5 MB, free: 2.414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.4548, allocations: 125.9 kB / 403.6 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.4549, allocations: 47.12 kB / 403.7 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.455, allocations: 4 kB / 403.7 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002378/0.4552, allocations: 109.5 kB / 403.8 MB, free: 2.129 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 5.944e-06/0.4553, allocations: 0 / 403.8 MB, free: 2.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003849/0.4557, allocations: 138.8 kB / 403.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.4558, allocations: 136.5 kB / 404 MB, free: 1.848 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.4562, allocations: 254.8 kB / 404.3 MB, free: 1.637 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.4563, allocations: 33.64 kB / 404.3 MB, free: 1.598 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.4564, allocations: 128.3 kB / 404.4 MB, free: 1.492 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.716e-05/0.4564, allocations: 26.38 kB / 404.5 MB, free: 1.473 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.798e-06/0.4565, allocations: 4.031 kB / 404.5 MB, free: 1.469 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.4567, allocations: 336.6 kB / 404.8 MB, free: 1.141 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.928e-05/0.4568, allocations: 30.31 kB / 404.8 MB, free: 1.121 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.4569, allocations: 75.94 kB / 404.9 MB, free: 1.039 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.861e-05/0.457, allocations: 38.47 kB / 404.9 MB, free: 1.012 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.103e-06/0.4571, allocations: 0 / 404.9 MB, free: 1.012 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003218/0.4574, allocations: 128.2 kB / 405.1 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.4574, allocations: 8 kB / 405.1 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.4575, allocations: 3.938 kB / 405.1 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.4575, allocations: 4 kB / 405.1 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.4576, allocations: 15.98 kB / 405.1 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.748e-06/0.4576, allocations: 4.344 kB / 405.1 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.4578, allocations: 19.3 kB / 405.1 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.4579, allocations: 8 kB / 405.1 MB, free: 0.8438 MB / 314.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.0001208/0.458, allocations: 123.9 kB / 405.3 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.067e-05/0.4581, allocations: 23.72 kB / 405.3 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000286/0.4584, allocations: 109.5 kB / 405.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.069e-06/0.4584, allocations: 4 kB / 405.4 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.092e-06/0.4584, allocations: 4 kB / 405.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.836e-06/0.4584, allocations: 0 / 405.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.4588, allocations: 250 kB / 405.6 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-06/0.4588, allocations: 7.953 kB / 405.6 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.012e-05/0.4589, allocations: 4 kB / 405.6 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.055e-06/0.4589, allocations: 0 / 405.6 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.4589, allocations: 11.05 kB / 405.7 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.062e-06/0.4589, allocations: 0 / 405.7 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.9e-06/0.4589, allocations: 4 kB / 405.7 MB, free: 324 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.4593, allocations: 196.9 kB / 405.9 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.4595, allocations: 104.5 kB / 406 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.989e-05/0.4595, allocations: 7.938 kB / 406 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.4597, allocations: 15.98 kB / 406 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.4598, allocations: 19.47 kB / 406 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.4598, allocations: 4 kB / 406 MB, free: 15.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003045/0.4601, allocations: 211.6 kB / 406.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.23e-07/0.4602, allocations: 0 / 406.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000402/0.4606, allocations: 39.44 kB / 406.2 MB, free: 15.75 MB / 330.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.001443/0.462, allocations: 411.3 kB / 406.7 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003029/0.4623, allocations: 88.8 kB / 406.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.401e-06/0.4624, allocations: 0 / 406.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.4625, allocations: 52.67 kB / 406.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.4629, allocations: 49.05 kB / 406.8 MB, free: 15.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006976/0.4636, allocations: 269.2 kB / 407.1 MB, free: 15.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004504/0.4641, allocations: 0.7354 MB / 407.8 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.4643, allocations: 25.55 kB / 407.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.049e-05/0.4644, allocations: 26.8 kB / 407.9 MB, free: 14.21 MB / 330.7 MB Notification: Performance of SimCode: time 1.6e-06/0.4644, allocations: 0 / 407.9 MB, free: 14.21 MB / 330.7 MB Notification: Performance of Templates: time 0.008924/0.4733, allocations: 2.621 MB / 410.5 MB, free: 11.6 MB / 330.7 MB