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 2.051/2.051, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.217e-05, allocations: 7.906 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3081, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002109/0.3103, allocations: 1.151 MB / 304.4 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.3115, allocations: 0.4905 MB / 304.9 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.078e-05/0.3116, allocations: 1.094 kB / 304.9 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.539e-05/0.3116, allocations: 7.922 kB / 304.9 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.3118, allocations: 13.86 kB / 305 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.3122, allocations: 76.45 kB / 305 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.3123, allocations: 37.12 kB / 305.1 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.919e-05/0.3124, allocations: 1.25 kB / 305.1 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.81e-05/0.3125, allocations: 27.11 kB / 305.1 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.349e-05/0.3126, allocations: 29.16 kB / 305.1 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.3127, allocations: 45.33 kB / 305.2 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.3128, allocations: 9.969 kB / 305.2 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.463e-05/0.3129, allocations: 8.344 kB / 305.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.75e-05/0.3129, allocations: 6.594 kB / 305.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.3131, allocations: 67.45 kB / 305.3 MB, free: 11.2 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3131, allocations: 0 / 305.3 MB, free: 11.2 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.917e-06/0.3132, allocations: 1.219 kB / 305.3 MB, free: 11.2 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.3132, allocations: 0 / 305.3 MB, free: 11.2 MB / 250.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.0007409/0.3139, allocations: 433 kB / 305.7 MB, free: 10.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.314, allocations: 8.875 kB / 305.7 MB, free: 10.75 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.749e-05/0.3141, allocations: 12.36 kB / 305.7 MB, free: 10.74 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.3143, allocations: 176.3 kB / 305.9 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.3143, allocations: 7.219 kB / 305.9 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.194e-05/0.3143, allocations: 8.844 kB / 305.9 MB, free: 10.52 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.3146, allocations: 96.25 kB / 306 MB, free: 10.43 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3147, allocations: 4 kB / 306 MB, free: 10.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.3147, allocations: 2.125 kB / 306 MB, free: 10.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3147, allocations: 1.062 kB / 306 MB, free: 10.43 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.3149, allocations: 39.48 kB / 306 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005961/0.3155, allocations: 392.8 kB / 306.4 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.3158, allocations: 94.75 kB / 306.5 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.3158, allocations: 1.031 kB / 306.5 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.3161, allocations: 150 kB / 306.6 MB, free: 9.754 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 2.675e-06/0.3162, allocations: 0 / 306.6 MB, free: 9.754 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007384/0.3169, allocations: 279.6 kB / 306.9 MB, free: 9.535 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.3171, allocations: 166.4 kB / 307.1 MB, free: 9.34 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.3172, allocations: 126 kB / 307.2 MB, free: 9.23 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.3173, allocations: 35.12 kB / 307.2 MB, free: 9.191 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.3174, allocations: 156.2 kB / 307.4 MB, free: 9.039 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.005e-05/0.3174, allocations: 22.66 kB / 307.4 MB, free: 9.02 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.3174, allocations: 1.406 kB / 307.4 MB, free: 9.02 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3176, allocations: 316.2 kB / 307.7 MB, free: 8.703 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.3177, allocations: 28.02 kB / 307.8 MB, free: 8.691 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.3179, allocations: 66.22 kB / 307.8 MB, free: 8.633 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.318, allocations: 77.56 kB / 307.9 MB, free: 8.562 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3181, allocations: 1.312 kB / 307.9 MB, free: 8.562 MB / 250.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004154/0.3185, allocations: 178 kB / 308.1 MB, free: 8.43 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.949e-05/0.3186, allocations: 63 kB / 308.1 MB, free: 8.363 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.3186, allocations: 5.281 kB / 308.1 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3186, allocations: 1.531 kB / 308.1 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.925e-05/0.3187, allocations: 11.27 kB / 308.1 MB, free: 8.352 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3187, allocations: 2.25 kB / 308.1 MB, free: 8.352 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.3189, allocations: 13.41 kB / 308.2 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.3189, allocations: 8.391 kB / 308.2 MB, free: 8.344 MB / 250.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.0001749/0.3191, allocations: 154.2 kB / 308.3 MB, free: 8.188 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/0.3191, allocations: 14.34 kB / 308.3 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.772e-05/0.3192, allocations: 14.73 kB / 308.4 MB, free: 8.164 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3192, allocations: 6.062 kB / 308.4 MB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3192, allocations: 1.125 kB / 308.4 MB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3193, allocations: 1.031 kB / 308.4 MB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002576/0.3195, allocations: 206.9 kB / 308.6 MB, free: 7.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3195, allocations: 0 / 308.6 MB, free: 7.926 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.704e-05/0.3196, allocations: 6.625 kB / 308.6 MB, free: 7.922 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.3196, allocations: 1.219 kB / 308.6 MB, free: 7.922 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.3196, allocations: 7.656 kB / 308.6 MB, free: 7.918 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.3196, allocations: 9.234 kB / 308.6 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3196, allocations: 0 / 308.6 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005259/0.3202, allocations: 239 kB / 308.8 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.086e-05/0.3203, allocations: 93 kB / 308.9 MB, free: 7.566 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.243e-05/0.3203, allocations: 4 kB / 308.9 MB, free: 7.562 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.3205, allocations: 11.98 kB / 308.9 MB, free: 7.551 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.038e-05/0.3206, allocations: 19.94 kB / 308.9 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.3206, allocations: 4 kB / 308.9 MB, free: 7.527 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001088/0.3208, allocations: 104.4 kB / 309 MB, free: 7.426 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3208, allocations: 0 / 309 MB, free: 7.426 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003398/0.3211, allocations: 32 kB / 309.1 MB, free: 7.395 MB / 250.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.0002453/0.3214, allocations: 120.6 kB / 309.2 MB, free: 7.266 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004326/0.3218, allocations: 194.7 kB / 309.4 MB, free: 7.051 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3218, allocations: 0 / 309.4 MB, free: 7.051 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.3221, allocations: 127.2 kB / 309.5 MB, free: 6.914 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.3224, allocations: 20.94 kB / 309.5 MB, free: 6.895 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006021/0.323, allocations: 256.4 kB / 309.8 MB, free: 6.605 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.3234, allocations: 0.7004 MB / 310.5 MB, free: 5.879 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.856e-05/0.3234, allocations: 11.44 kB / 310.5 MB, free: 5.867 MB / 250.7 MB Notification: Performance of SimCode: time 1.223e-06/0.3234, allocations: 0 / 310.5 MB, free: 5.867 MB / 250.7 MB Notification: Performance of Templates: time 0.004629/0.3281, allocations: 1.355 MB / 311.9 MB, free: 4.516 MB / 250.7 MB