Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.654/1.654, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.088e-05/3.102e-05, allocations: 4 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2118, allocations: 38.77 MB / 263.7 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.3141, allocations: 66.51 MB / 330.3 MB, free: 7.273 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/0.3145, allocations: 59.97 kB / 330.3 MB, free: 7.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01082/0.3254, allocations: 1.657 MB / 332 MB, free: 5.555 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.16e-06/0.3254, allocations: 0 / 332 MB, free: 5.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.3255, allocations: 4 kB / 332 MB, free: 5.551 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.0008207/0.3263, allocations: 425.8 kB / 332.4 MB, free: 5.078 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.3264, allocations: 12.03 kB / 332.4 MB, free: 5.066 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.614e-05/0.3265, allocations: 4 kB / 332.4 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.3267, allocations: 181.2 kB / 332.6 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.3268, allocations: 8 kB / 332.6 MB, free: 4.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.3268, allocations: 8 kB / 332.6 MB, free: 4.832 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.3272, allocations: 93.06 kB / 332.7 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.3273, allocations: 0 / 332.7 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.3273, allocations: 3.984 kB / 332.7 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.3273, allocations: 4 kB / 332.7 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000211/0.3276, allocations: 35.88 kB / 332.7 MB, free: 4.68 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009139/0.3285, allocations: 382.8 kB / 333.1 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.3289, allocations: 99.7 kB / 333.2 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.3291, allocations: 42.58 kB / 333.2 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.453e-05/0.3292, allocations: 0 / 333.2 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004434/0.3296, allocations: 151.6 kB / 333.4 MB, free: 3.895 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 4.834e-06/0.3297, allocations: 0 / 333.4 MB, free: 3.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007251/0.3304, allocations: 155.2 kB / 333.5 MB, free: 3.73 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/0.3306, allocations: 170.2 kB / 333.7 MB, free: 3.527 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.3309, allocations: 117.3 kB / 333.8 MB, free: 3.402 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/0.331, allocations: 33.7 kB / 333.9 MB, free: 3.363 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.3311, allocations: 154.8 kB / 334 MB, free: 3.207 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.099e-05/0.3312, allocations: 15.81 kB / 334 MB, free: 3.191 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.948e-05/0.3313, allocations: 4 kB / 334 MB, free: 3.188 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002298/0.3315, allocations: 322.9 kB / 334.3 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.3317, allocations: 23.94 kB / 334.4 MB, free: 2.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.3319, allocations: 59.42 kB / 334.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.3321, allocations: 79.39 kB / 334.5 MB, free: 2.68 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.902e-06/0.3322, allocations: 0 / 334.5 MB, free: 2.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006651/0.3329, allocations: 184.9 kB / 334.7 MB, free: 2.48 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.304e-05/0.333, allocations: 59.41 kB / 334.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.333, allocations: 4 kB / 334.8 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.3331, allocations: 0 / 334.8 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.27e-05/0.3332, allocations: 4 kB / 334.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.3332, allocations: 3.938 kB / 334.8 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.3335, allocations: 19.92 kB / 334.8 MB, free: 2.379 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.3336, allocations: 8 kB / 334.8 MB, free: 2.371 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.0002322/0.3338, allocations: 150.7 kB / 334.9 MB, free: 2.211 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.948e-05/0.3339, allocations: 15.86 kB / 334.9 MB, free: 2.195 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.897e-05/0.334, allocations: 8.094 kB / 335 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.3341, allocations: 4 kB / 335 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.059e-06/0.3341, allocations: 3.938 kB / 335 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3341, allocations: 3.984 kB / 335 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004167/0.3345, allocations: 185.6 kB / 335.1 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.3346, allocations: 4 kB / 335.2 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.224e-05/0.3346, allocations: 0 / 335.2 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.3346, allocations: 3.953 kB / 335.2 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-05/0.3347, allocations: 15.98 kB / 335.2 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.933e-06/0.3347, allocations: 7.875 kB / 335.2 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.935e-06/0.3348, allocations: 4 kB / 335.2 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007333/0.3355, allocations: 224 kB / 335.4 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.3356, allocations: 89.02 kB / 335.5 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.818e-05/0.3357, allocations: 8 kB / 335.5 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.336, allocations: 15.98 kB / 335.5 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.3362, allocations: 15.92 kB / 335.5 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/0.3362, allocations: 4 kB / 335.5 MB, free: 1.496 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001711/0.3364, allocations: 106.4 kB / 335.6 MB, free: 1.395 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.848e-06/0.3365, allocations: 0 / 335.6 MB, free: 1.395 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007157/0.3372, allocations: 36 kB / 335.7 MB, free: 1.359 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.000376/0.3376, allocations: 119.2 kB / 335.8 MB, free: 1.234 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000589/0.3382, allocations: 194.7 kB / 336 MB, free: 1.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.943e-06/0.3382, allocations: 0 / 336 MB, free: 1.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003659/0.3386, allocations: 119.3 kB / 336.1 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.3391, allocations: 17.59 kB / 336.1 MB, free: 0.875 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007633/0.3399, allocations: 184.5 kB / 336.3 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005647/0.3405, allocations: 0.7004 MB / 337 MB, free: 15.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.5e-05/0.3406, allocations: 15.44 kB / 337 MB, free: 15.92 MB / 298.7 MB Notification: Performance of SimCode: time 2.37e-06/0.3406, allocations: 0 / 337 MB, free: 15.92 MB / 298.7 MB Notification: Performance of Templates: time 0.006536/0.3471, allocations: 1.344 MB / 338.4 MB, free: 14.58 MB / 298.7 MB