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.865/1.865, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.663e-05/2.677e-05, allocations: 4 kB / 255.3 MB, free: 3.219 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07773/0.07778, allocations: 44.5 MB / 299.8 MB, free: 6.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.317/0.3948, allocations: 71.81 MB / 371.6 MB, free: 21.69 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.3951, allocations: 64.72 kB / 371.7 MB, free: 21.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007289/0.4024, allocations: 1.65 MB / 373.4 MB, free: 21.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.82e-06/0.4024, allocations: 0 / 373.4 MB, free: 21.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.435e-06/0.4025, allocations: 4.812 kB / 373.4 MB, free: 21.33 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.0004495/0.4029, allocations: 428.7 kB / 373.8 MB, free: 20.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.403, allocations: 9.469 kB / 373.8 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.403, allocations: 12.59 kB / 373.8 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.4032, allocations: 176.5 kB / 374 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.4032, allocations: 1.906 kB / 374 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.4032, allocations: 5.312 kB / 374 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.4034, allocations: 94.86 kB / 374.1 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.4035, allocations: 3.938 kB / 374.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.4035, allocations: 1.438 kB / 374.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.4035, allocations: 3.188 kB / 374.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.4036, allocations: 36.17 kB / 374.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004192/0.4041, allocations: 389.5 kB / 374.5 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.4042, allocations: 90.48 kB / 374.6 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.659e-05/0.4043, allocations: 44.53 kB / 374.6 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.4044, allocations: 1.812 kB / 374.6 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.4046, allocations: 154.1 kB / 374.8 MB, free: 20.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.744e-06/0.4046, allocations: 0 / 374.8 MB, free: 20.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003607/0.405, allocations: 154.5 kB / 374.9 MB, free: 19.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.4051, allocations: 163.6 kB / 375.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.4052, allocations: 127.3 kB / 375.2 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.4052, allocations: 31.56 kB / 375.2 MB, free: 19.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.089e-05/0.4053, allocations: 157.1 kB / 375.4 MB, free: 19.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.4053, allocations: 28.45 kB / 375.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.769e-06/0.4053, allocations: 4.156 kB / 375.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.4054, allocations: 322.3 kB / 375.7 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.406e-05/0.4055, allocations: 22.83 kB / 375.8 MB, free: 19.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.372e-05/0.4056, allocations: 55.64 kB / 375.8 MB, free: 19.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.225e-05/0.4057, allocations: 86.38 kB / 375.9 MB, free: 19.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.797e-06/0.4057, allocations: 0 / 375.9 MB, free: 19.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002969/0.406, allocations: 169.3 kB / 376.1 MB, free: 18.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.4061, allocations: 65.23 kB / 376.1 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.735e-06/0.4061, allocations: 0.7031 kB / 376.1 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.4061, allocations: 1.656 kB / 376.1 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.124e-05/0.4062, allocations: 9.281 kB / 376.1 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.4062, allocations: 5.156 kB / 376.1 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.4063, allocations: 16.09 kB / 376.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.4064, allocations: 8.938 kB / 376.2 MB, free: 18.88 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 9.194e-05/0.4065, allocations: 145.5 kB / 376.3 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.4065, allocations: 13.78 kB / 376.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.967e-05/0.4066, allocations: 12.41 kB / 376.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-06/0.4066, allocations: 5.062 kB / 376.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.517e-06/0.4066, allocations: 1.906 kB / 376.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.26e-06/0.4066, allocations: 1.312 kB / 376.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001772/0.4068, allocations: 197.6 kB / 376.5 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.778e-06/0.4068, allocations: 0 / 376.5 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.627e-05/0.4069, allocations: 7.328 kB / 376.5 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.354e-06/0.4069, allocations: 0.5625 kB / 376.5 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.4069, allocations: 8.031 kB / 376.6 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.34e-06/0.4069, allocations: 1.656 kB / 376.6 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.849e-06/0.4069, allocations: 0 / 376.6 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.4073, allocations: 239 kB / 376.8 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.321e-05/0.4073, allocations: 95.8 kB / 376.9 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.4074, allocations: 5 kB / 376.9 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.4075, allocations: 23 kB / 376.9 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.4076, allocations: 13.45 kB / 376.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.4076, allocations: 6.922 kB / 376.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.095e-05/0.4077, allocations: 102.4 kB / 377 MB, free: 18.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.4077, allocations: 0 / 377 MB, free: 18.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003573/0.4081, allocations: 28.34 kB / 377.1 MB, free: 18.18 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.0001922/0.4083, allocations: 123.9 kB / 377.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002785/0.4086, allocations: 195 kB / 377.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.215e-06/0.4086, allocations: 0 / 377.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.4088, allocations: 119.4 kB / 377.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.409, allocations: 12.44 kB / 377.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.4094, allocations: 181.8 kB / 377.7 MB, free: 17.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.4096, allocations: 0.7003 MB / 378.4 MB, free: 17.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.4097, allocations: 11.42 kB / 378.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of SimCode: time 1.678e-06/0.4097, allocations: 1.094 kB / 378.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of Templates: time 0.00358/0.4133, allocations: 1.338 MB / 379.7 MB, free: 16.96 MB / 314.7 MB