Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.75/1.75, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.145e-05, allocations: 4 kB / 225 MB, free: 2.348 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2118, allocations: 38.77 MB / 263.8 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1029/0.3148, allocations: 66.51 MB / 330.3 MB, free: 7.215 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.315, allocations: 63.97 kB / 330.3 MB, free: 7.152 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007101/0.3222, allocations: 1.654 MB / 332 MB, free: 5.496 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.915e-06/0.3222, allocations: 0 / 332 MB, free: 5.496 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.438e-06/0.3222, allocations: 0 / 332 MB, free: 5.496 MB / 282.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.0005594/0.3228, allocations: 433.8 kB / 332.4 MB, free: 5.016 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3228, allocations: 8.031 kB / 332.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.3229, allocations: 4 kB / 332.4 MB, free: 5.004 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.3231, allocations: 181.5 kB / 332.6 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.3231, allocations: 4 kB / 332.6 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.3232, allocations: 11.98 kB / 332.6 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002127/0.3234, allocations: 93.02 kB / 332.7 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3234, allocations: 0 / 332.7 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.3234, allocations: 7.938 kB / 332.7 MB, free: 4.656 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.248e-06/0.3235, allocations: 3.984 kB / 332.7 MB, free: 4.652 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.3236, allocations: 28 kB / 332.8 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005686/0.3242, allocations: 390.8 kB / 333.1 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.3244, allocations: 95.73 kB / 333.2 MB, free: 4.062 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.3245, allocations: 50.52 kB / 333.3 MB, free: 4.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.3245, allocations: 0 / 333.3 MB, free: 4.004 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.3248, allocations: 147.6 kB / 333.4 MB, free: 3.832 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 2.569e-06/0.3248, allocations: 0 / 333.4 MB, free: 3.832 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003952/0.3252, allocations: 151.2 kB / 333.6 MB, free: 3.672 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.3253, allocations: 162.2 kB / 333.7 MB, free: 3.477 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.3255, allocations: 129.2 kB / 333.9 MB, free: 3.34 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.3255, allocations: 33.7 kB / 333.9 MB, free: 3.301 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.3256, allocations: 92.33 kB / 334 MB, free: 3.203 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.3257, allocations: 19.8 kB / 334 MB, free: 3.184 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.836e-06/0.3257, allocations: 0 / 334 MB, free: 3.184 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.3259, allocations: 318.8 kB / 334.3 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.881e-05/0.326, allocations: 27.98 kB / 334.3 MB, free: 2.836 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.671e-05/0.3261, allocations: 55.44 kB / 334.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.3262, allocations: 83.38 kB / 334.5 MB, free: 2.676 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3262, allocations: 0 / 334.5 MB, free: 2.676 MB / 282.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000345/0.3266, allocations: 184.9 kB / 334.6 MB, free: 2.477 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.519e-05/0.3267, allocations: 63.39 kB / 334.7 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.04e-06/0.3267, allocations: 0 / 334.7 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3267, allocations: 4 kB / 334.7 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.534e-05/0.3268, allocations: 7.938 kB / 334.7 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.677e-06/0.3268, allocations: 4.062 kB / 334.7 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.3269, allocations: 23.83 kB / 334.8 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.327, allocations: 7.984 kB / 334.8 MB, free: 2.355 MB / 282.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.0001389/0.3271, allocations: 142.7 kB / 334.9 MB, free: 2.203 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.3272, allocations: 15.84 kB / 334.9 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.668e-05/0.3272, allocations: 12.09 kB / 334.9 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.073e-06/0.3272, allocations: 0 / 334.9 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.3273, allocations: 8 kB / 334.9 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3273, allocations: 3.938 kB / 334.9 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.3276, allocations: 193.5 kB / 335.1 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.78e-06/0.3276, allocations: 0 / 335.1 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.866e-05/0.3276, allocations: 7.938 kB / 335.1 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.3276, allocations: 3.953 kB / 335.1 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.3277, allocations: 8 kB / 335.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.723e-06/0.3277, allocations: 0 / 335.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.998e-06/0.3277, allocations: 0 / 335.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000428/0.3281, allocations: 239.1 kB / 335.4 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.644e-05/0.3282, allocations: 85.02 kB / 335.5 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.3283, allocations: 8.172 kB / 335.5 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.3284, allocations: 15.98 kB / 335.5 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.001e-05/0.3285, allocations: 19.98 kB / 335.5 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.3285, allocations: 4 kB / 335.5 MB, free: 1.477 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001001/0.3286, allocations: 106.4 kB / 335.6 MB, free: 1.375 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.55e-07/0.3286, allocations: 0 / 335.6 MB, free: 1.375 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003469/0.329, allocations: 32 kB / 335.6 MB, free: 1.344 MB / 282.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.0002239/0.3292, allocations: 123.2 kB / 335.8 MB, free: 1.215 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003238/0.3296, allocations: 190.7 kB / 336 MB, free: 1.004 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3296, allocations: 0 / 336 MB, free: 1.004 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.3298, allocations: 115.3 kB / 336.1 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.33, allocations: 15.94 kB / 336.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004252/0.3305, allocations: 158.8 kB / 336.2 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.3309, allocations: 0.6969 MB / 336.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.565e-05/0.3309, allocations: 8.656 kB / 336.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.337e-05/0.331, allocations: 11.44 kB / 337 MB, free: 15.93 MB / 298.7 MB Notification: Performance of SimCode: time 1.392e-06/0.331, allocations: 0 / 337 MB, free: 15.93 MB / 298.7 MB Notification: Performance of Templates: time 0.004838/0.3358, allocations: 1.212 MB / 338.2 MB, free: 14.73 MB / 298.7 MB