Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.117e-05/2.122e-05, allocations: 4 kB / 249.6 MB, free: 15.31 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2463, allocations: 44.5 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.3556, allocations: 71.15 MB / 365.2 MB, free: 10.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.3559, allocations: 63.97 kB / 365.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006938/0.3628, allocations: 1.657 MB / 367 MB, free: 9.129 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.989e-06/0.3629, allocations: 0 / 367 MB, free: 9.129 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.471e-06/0.3629, allocations: 0 / 367 MB, free: 9.129 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.0005618/0.3634, allocations: 421.9 kB / 367.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3635, allocations: 8.031 kB / 367.4 MB, free: 8.652 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.85e-05/0.3636, allocations: 7.906 kB / 367.4 MB, free: 8.645 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.3637, allocations: 186.9 kB / 367.6 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.3638, allocations: 0 / 367.6 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.3638, allocations: 4 kB / 367.6 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001234/0.3639, allocations: 27.98 kB / 367.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.3641, allocations: 93.05 kB / 367.7 MB, free: 8.281 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.3642, allocations: 0 / 367.7 MB, free: 8.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.3642, allocations: 0 / 367.7 MB, free: 8.281 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.68e-06/0.3642, allocations: 0 / 367.7 MB, free: 8.281 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005066/0.3647, allocations: 367.2 kB / 368.1 MB, free: 7.875 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.3649, allocations: 83.83 kB / 368.1 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.236e-05/0.365, allocations: 46.52 kB / 368.2 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3651, allocations: 4.125 kB / 368.2 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/0.3653, allocations: 131.7 kB / 368.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.62e-06/0.3653, allocations: 0 / 368.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.000355/0.3657, allocations: 125.5 kB / 368.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.3658, allocations: 162.2 kB / 368.6 MB, free: 7.227 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.366, allocations: 117.5 kB / 368.7 MB, free: 7.105 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.366, allocations: 25.7 kB / 368.7 MB, free: 7.074 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.3661, allocations: 158.6 kB / 368.9 MB, free: 6.918 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.3662, allocations: 27.64 kB / 368.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.073e-06/0.3662, allocations: 0 / 368.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3664, allocations: 326.8 kB / 369.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.871e-05/0.3665, allocations: 20 kB / 369.3 MB, free: 6.543 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.619e-05/0.3666, allocations: 51.36 kB / 369.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.3667, allocations: 23.98 kB / 369.3 MB, free: 6.457 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.438e-06/0.3667, allocations: 4 kB / 369.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002998/0.367, allocations: 105.6 kB / 369.4 MB, free: 6.344 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.539e-05/0.3671, allocations: 67.45 kB / 369.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.354e-06/0.3671, allocations: 192 / 369.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3671, allocations: 0 / 369.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.803e-05/0.3672, allocations: 11.94 kB / 369.5 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.718e-06/0.3672, allocations: 7.938 kB / 369.5 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.3674, allocations: 23.83 kB / 369.5 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.3674, allocations: 4 kB / 369.6 MB, free: 6.219 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.000155/0.3676, allocations: 149.3 kB / 369.7 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.92e-05/0.3676, allocations: 19.89 kB / 369.7 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.362e-05/0.3677, allocations: 4.406 kB / 369.7 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.288e-06/0.3677, allocations: 4 kB / 369.7 MB, free: 6.039 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3677, allocations: 0 / 369.7 MB, free: 6.039 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.935e-06/0.3677, allocations: 0 / 369.7 MB, free: 6.039 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.368, allocations: 174.2 kB / 369.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.789e-06/0.368, allocations: 0 / 369.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.205e-05/0.368, allocations: 11.94 kB / 369.9 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.368, allocations: 3.938 kB / 369.9 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.3681, allocations: 8 kB / 369.9 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.073e-06/0.3681, allocations: 0 / 369.9 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3681, allocations: 0 / 369.9 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.3685, allocations: 194.1 kB / 370.1 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.249e-05/0.3685, allocations: 88.95 kB / 370.2 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.3686, allocations: 4 kB / 370.2 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.3687, allocations: 15.98 kB / 370.2 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.197e-05/0.3688, allocations: 7.984 kB / 370.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.3688, allocations: 8 kB / 370.2 MB, free: 5.441 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.875e-05/0.3689, allocations: 96.67 kB / 370.3 MB, free: 5.348 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.55e-07/0.369, allocations: 0 / 370.3 MB, free: 5.348 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003398/0.3693, allocations: 32 kB / 370.4 MB, free: 5.316 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.0002363/0.3696, allocations: 129.3 kB / 370.5 MB, free: 5.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002991/0.3699, allocations: 186.7 kB / 370.7 MB, free: 4.973 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.703e-06/0.3699, allocations: 0 / 370.7 MB, free: 4.973 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.3701, allocations: 115.3 kB / 370.8 MB, free: 4.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.3703, allocations: 16.52 kB / 370.8 MB, free: 4.832 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.3708, allocations: 181 kB / 371 MB, free: 4.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.3712, allocations: 0.6963 MB / 371.7 MB, free: 3.902 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.61e-05/0.3712, allocations: 11.44 kB / 371.7 MB, free: 3.891 MB / 314.7 MB Notification: Performance of SimCode: time 1.381e-06/0.3712, allocations: 0 / 371.7 MB, free: 3.891 MB / 314.7 MB Notification: Performance of Templates: time 0.003721/0.375, allocations: 1.33 MB / 373 MB, free: 2.562 MB / 314.7 MB