Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.038/1.038, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.652e-05/3.66e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2037, allocations: 25.15 MB / 176.6 MB, free: 36 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07074/0.2745, allocations: 33.93 MB / 210.6 MB, free: 15.54 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.2748, allocations: 59.92 kB / 210.6 MB, free: 15.48 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009302/0.2842, allocations: 1.562 MB / 212.2 MB, free: 13.92 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2842, allocations: 0 / 212.2 MB, free: 13.92 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.2843, allocations: 4 kB / 212.2 MB, free: 13.92 MB / 186.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.0008002/0.2851, allocations: 425.9 kB / 212.6 MB, free: 13.45 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.2851, allocations: 11.97 kB / 212.6 MB, free: 13.43 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.338e-05/0.2852, allocations: 42.5 kB / 212.7 MB, free: 13.38 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.058e-05/0.2853, allocations: 15.91 kB / 212.7 MB, free: 13.37 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.2855, allocations: 167 kB / 212.8 MB, free: 13.16 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.2856, allocations: 4 kB / 212.8 MB, free: 13.16 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.2856, allocations: 7.984 kB / 212.8 MB, free: 13.15 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.2859, allocations: 97.05 kB / 212.9 MB, free: 13.04 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.286, allocations: 0 / 212.9 MB, free: 13.04 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.286, allocations: 4 kB / 212.9 MB, free: 13.04 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.2861, allocations: 7.953 kB / 212.9 MB, free: 13.03 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.2862, allocations: 31.98 kB / 213 MB, free: 13 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.287, allocations: 390.7 kB / 213.4 MB, free: 12.55 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002553/0.2873, allocations: 91.91 kB / 213.5 MB, free: 12.44 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.2874, allocations: 42.56 kB / 213.5 MB, free: 12.39 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.2875, allocations: 8 kB / 213.5 MB, free: 12.38 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003505/0.2878, allocations: 139.5 kB / 213.6 MB, free: 12.21 MB / 186.7 MB Notification: Performance of pre-optimization done (n=10): time 3.236e-06/0.2879, allocations: 0 / 213.6 MB, free: 12.21 MB / 186.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005713/0.2884, allocations: 155.3 kB / 213.8 MB, free: 12.05 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.2886, allocations: 170.2 kB / 214 MB, free: 11.85 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.2888, allocations: 118.7 kB / 214.1 MB, free: 11.72 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.2889, allocations: 33.7 kB / 214.1 MB, free: 11.68 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.289, allocations: 154.8 kB / 214.3 MB, free: 11.53 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/0.2891, allocations: 27.69 kB / 214.3 MB, free: 11.5 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.2891, allocations: 0 / 214.3 MB, free: 11.5 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.2893, allocations: 318.8 kB / 214.6 MB, free: 11.18 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.2894, allocations: 23.98 kB / 214.6 MB, free: 11.16 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.2896, allocations: 51.44 kB / 214.7 MB, free: 11.09 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.2897, allocations: 83.38 kB / 214.7 MB, free: 11 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2898, allocations: 3.938 kB / 214.8 MB, free: 11 MB / 186.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004639/0.2902, allocations: 169 kB / 214.9 MB, free: 10.81 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.58e-05/0.2903, allocations: 67.34 kB / 215 MB, free: 10.73 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.2904, allocations: 4.062 kB / 215 MB, free: 10.73 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.2904, allocations: 4 kB / 215 MB, free: 10.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.671e-05/0.2905, allocations: 7.938 kB / 215 MB, free: 10.72 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.2905, allocations: 0 / 215 MB, free: 10.72 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.2907, allocations: 15.98 kB / 215 MB, free: 10.7 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.2908, allocations: 4 kB / 215 MB, free: 10.7 MB / 186.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.0001739/0.291, allocations: 146.6 kB / 215.2 MB, free: 10.54 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.963e-05/0.2911, allocations: 19.89 kB / 215.2 MB, free: 10.52 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.824e-05/0.2911, allocations: 12.05 kB / 215.2 MB, free: 10.51 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.2912, allocations: 4 kB / 215.2 MB, free: 10.51 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2912, allocations: 7.875 kB / 215.2 MB, free: 10.5 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.2912, allocations: 0 / 215.2 MB, free: 10.5 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.2915, allocations: 193.5 kB / 215.4 MB, free: 10.26 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2915, allocations: 4.188 kB / 215.4 MB, free: 10.26 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.916e-05/0.2916, allocations: 4 kB / 215.4 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.2916, allocations: 0 / 215.4 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.2916, allocations: 4 kB / 215.4 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.289e-05/0.2916, allocations: 7.953 kB / 215.4 MB, free: 10.24 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2917, allocations: 4 kB / 215.4 MB, free: 10.24 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005841/0.2923, allocations: 227.8 kB / 215.6 MB, free: 9.973 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.2924, allocations: 88.97 kB / 215.7 MB, free: 9.867 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.358e-05/0.2924, allocations: 11.98 kB / 215.7 MB, free: 9.855 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.2927, allocations: 19.98 kB / 215.8 MB, free: 9.836 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.174e-05/0.2928, allocations: 11.98 kB / 215.8 MB, free: 9.824 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.2928, allocations: 7.984 kB / 215.8 MB, free: 9.816 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000129/0.2929, allocations: 104.7 kB / 215.9 MB, free: 9.715 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.293, allocations: 0 / 215.9 MB, free: 9.715 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005405/0.2935, allocations: 36 kB / 215.9 MB, free: 9.68 MB / 186.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.001188/0.2947, allocations: 0.9253 MB / 216.8 MB, free: 8.703 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004502/0.2952, allocations: 198.7 kB / 217 MB, free: 8.484 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.2952, allocations: 0 / 217 MB, free: 8.484 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.2955, allocations: 115.3 kB / 217.1 MB, free: 8.359 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.2959, allocations: 12 kB / 217.2 MB, free: 8.348 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009056/0.2968, allocations: 226.3 kB / 217.4 MB, free: 8.082 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.2973, allocations: 0.7045 MB / 218.1 MB, free: 7.352 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.999e-05/0.2974, allocations: 19.44 kB / 218.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of SimCode: time 1.363e-06/0.2974, allocations: 0 / 218.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.444/2.742, allocations: 1.764 MB / 219.9 MB, free: 5.566 MB / 186.7 MB