Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.948/1.948, allocations: 194.9 MB / 208 MB, free: 3.234 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.207e-05/3.234e-05, allocations: 4 kB / 255.4 MB, free: 2.715 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.08302, allocations: 44.5 MB / 299.9 MB, free: 6.148 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3702/0.4533, allocations: 71.81 MB / 371.7 MB, free: 22.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/0.4537, allocations: 62.75 kB / 371.7 MB, free: 22.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01148/0.4652, allocations: 1.661 MB / 373.4 MB, free: 21.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.62e-06/0.4652, allocations: 1.781 kB / 373.4 MB, free: 21.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.4653, allocations: 0.9375 kB / 373.4 MB, free: 21.75 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006551/0.4659, allocations: 422 kB / 373.8 MB, free: 21.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.466, allocations: 13.81 kB / 373.8 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.949e-05/0.4661, allocations: 9.875 kB / 373.8 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.4663, allocations: 179.3 kB / 374 MB, free: 21.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.4664, allocations: 6.281 kB / 374 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.4664, allocations: 4.438 kB / 374 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.4667, allocations: 91.77 kB / 374.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.4668, allocations: 0 / 374.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.4668, allocations: 6.031 kB / 374.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.007e-06/0.4668, allocations: 5.75 kB / 374.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.467, allocations: 34.02 kB / 374.2 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000641/0.4677, allocations: 384.5 kB / 374.5 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002435/0.468, allocations: 93.83 kB / 374.6 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.4681, allocations: 44.19 kB / 374.7 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.4682, allocations: 1.156 kB / 374.7 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003508/0.4686, allocations: 149.9 kB / 374.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 5.044e-06/0.4686, allocations: 1.031 kB / 374.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006189/0.4693, allocations: 153.1 kB / 375 MB, free: 20.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.602e-05/0.4694, allocations: 163.4 kB / 375.1 MB, free: 20.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.4696, allocations: 122.8 kB / 375.2 MB, free: 20.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.4696, allocations: 26.95 kB / 375.3 MB, free: 20.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.4697, allocations: 92.02 kB / 375.4 MB, free: 19.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.507e-05/0.4698, allocations: 36.78 kB / 375.4 MB, free: 19.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.484e-05/0.4698, allocations: 1 kB / 375.4 MB, free: 19.97 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.4699, allocations: 324.7 kB / 375.7 MB, free: 19.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.4701, allocations: 23.2 kB / 375.7 MB, free: 19.65 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.4702, allocations: 55.7 kB / 375.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.4704, allocations: 80.95 kB / 375.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.756e-06/0.4704, allocations: 4 kB / 375.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005209/0.471, allocations: 179.9 kB / 376.1 MB, free: 19.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.704e-05/0.4711, allocations: 64.52 kB / 376.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.933e-06/0.4711, allocations: 0.7031 kB / 376.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.4711, allocations: 2.344 kB / 376.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.074e-05/0.4712, allocations: 4.422 kB / 376.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.4713, allocations: 1.906 kB / 376.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.4715, allocations: 15.8 kB / 376.1 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.4716, allocations: 12.59 kB / 376.2 MB, free: 19.38 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001346/0.4717, allocations: 149.3 kB / 376.3 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.825e-05/0.4718, allocations: 11.03 kB / 376.3 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.4719, allocations: 11.58 kB / 376.3 MB, free: 19.22 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.679e-06/0.4719, allocations: 2.125 kB / 376.3 MB, free: 19.22 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.472, allocations: 1.766 kB / 376.3 MB, free: 19.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.745e-06/0.472, allocations: 1.719 kB / 376.3 MB, free: 19.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.4723, allocations: 196.5 kB / 376.5 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.978e-06/0.4723, allocations: 5.219 kB / 376.5 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.234e-05/0.4724, allocations: 1.984 kB / 376.5 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.358e-06/0.4724, allocations: 5.188 kB / 376.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.4724, allocations: 4.578 kB / 376.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.914e-06/0.4725, allocations: 1.641 kB / 376.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.572e-06/0.4725, allocations: 4.984 kB / 376.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.4731, allocations: 244 kB / 376.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.049e-05/0.4732, allocations: 83.72 kB / 376.9 MB, free: 18.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/0.4733, allocations: 13.19 kB / 376.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.4735, allocations: 14.36 kB / 376.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.4736, allocations: 14.11 kB / 376.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.4737, allocations: 7.75 kB / 376.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001214/0.4738, allocations: 107.1 kB / 377 MB, free: 18.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.474e-06/0.4739, allocations: 1.031 kB / 377 MB, free: 18.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006577/0.4745, allocations: 31.78 kB / 377 MB, free: 18.67 MB / 314.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,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.0003111/0.4749, allocations: 126.7 kB / 377.2 MB, free: 18.58 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004565/0.4754, allocations: 185.5 kB / 377.4 MB, free: 18.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.557e-06/0.4754, allocations: 3.938 kB / 377.4 MB, free: 18.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.4757, allocations: 117.2 kB / 377.5 MB, free: 18.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.4761, allocations: 13.06 kB / 377.5 MB, free: 18.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006141/0.4767, allocations: 149.5 kB / 377.6 MB, free: 18.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.477, allocations: 0.7 MB / 378.3 MB, free: 17.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.356e-05/0.4771, allocations: 9.953 kB / 378.3 MB, free: 17.58 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.581e-05/0.4771, allocations: 11.94 kB / 378.4 MB, free: 17.57 MB / 314.7 MB Notification: Performance of SimCode: time 2.235e-06/0.4771, allocations: 0 / 378.4 MB, free: 17.57 MB / 314.7 MB Notification: Performance of Templates: time 0.00731/0.4845, allocations: 1.202 MB / 379.6 MB, free: 17.47 MB / 314.7 MB