Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.351e-05/3.354e-05, allocations: 11.98 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.094, allocations: 44.51 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3858/0.4799, allocations: 71.81 MB / 371.8 MB, free: 21.33 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.4802, allocations: 65.5 kB / 371.8 MB, free: 21.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008262/0.4885, allocations: 1.66 MB / 373.5 MB, free: 20.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4885, allocations: 0 / 373.5 MB, free: 20.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.4885, allocations: 1.188 kB / 373.5 MB, free: 20.96 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.0005895/0.4891, allocations: 425 kB / 373.9 MB, free: 20.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.4892, allocations: 10.19 kB / 373.9 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.4893, allocations: 39.61 kB / 374 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.037e-05/0.4893, allocations: 9.094 kB / 374 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.4895, allocations: 179.6 kB / 374.1 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.4895, allocations: 2.156 kB / 374.1 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.4896, allocations: 7.781 kB / 374.1 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.4898, allocations: 94.44 kB / 374.2 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4898, allocations: 1.531 kB / 374.2 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.4898, allocations: 7.25 kB / 374.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.4899, allocations: 0.5156 kB / 374.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.49, allocations: 34.84 kB / 374.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005545/0.4906, allocations: 381.2 kB / 374.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.4908, allocations: 98.5 kB / 374.8 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.969e-05/0.4909, allocations: 45.17 kB / 374.8 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.4909, allocations: 2.719 kB / 374.8 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.4912, allocations: 144.5 kB / 374.9 MB, free: 19.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.615e-06/0.4912, allocations: 0 / 374.9 MB, free: 19.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004187/0.4916, allocations: 156.6 kB / 375.1 MB, free: 19.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.4917, allocations: 161.9 kB / 375.3 MB, free: 19.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.4919, allocations: 122.3 kB / 375.4 MB, free: 19.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.4919, allocations: 30.42 kB / 375.4 MB, free: 19.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.716e-05/0.4919, allocations: 159.6 kB / 375.6 MB, free: 19.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.882e-05/0.492, allocations: 27.84 kB / 375.6 MB, free: 19.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-06/0.492, allocations: 3.75 kB / 375.6 MB, free: 19.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.12e-05/0.4921, allocations: 318.5 kB / 375.9 MB, free: 18.76 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.048e-05/0.4922, allocations: 22.8 kB / 375.9 MB, free: 18.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.391e-05/0.4923, allocations: 52.25 kB / 376 MB, free: 18.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.4924, allocations: 81.5 kB / 376.1 MB, free: 18.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4924, allocations: 5.156 kB / 376.1 MB, free: 18.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003207/0.4928, allocations: 171.7 kB / 376.2 MB, free: 18.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.059e-05/0.4928, allocations: 62.5 kB / 376.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.4928, allocations: 1.156 kB / 376.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.4929, allocations: 1.156 kB / 376.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.973e-05/0.4929, allocations: 5.938 kB / 376.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.493, allocations: 1.312 kB / 376.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.4931, allocations: 27.3 kB / 376.3 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.4932, allocations: 5.891 kB / 376.3 MB, free: 18.49 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.0001123/0.4933, allocations: 155.9 kB / 376.5 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.4934, allocations: 10.92 kB / 376.5 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.01e-05/0.4934, allocations: 11.19 kB / 376.5 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4934, allocations: 2.062 kB / 376.5 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.4935, allocations: 5.203 kB / 376.5 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4935, allocations: 0.5625 kB / 376.5 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.4937, allocations: 192.4 kB / 376.7 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4937, allocations: 4.969 kB / 376.7 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.58e-05/0.4937, allocations: 6.562 kB / 376.7 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.4937, allocations: 1.969 kB / 376.7 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.4938, allocations: 7.125 kB / 376.7 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.4938, allocations: 1.641 kB / 376.7 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4938, allocations: 1 kB / 376.7 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.4942, allocations: 241.9 kB / 377 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.003e-05/0.4943, allocations: 85.59 kB / 377 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.4943, allocations: 5.172 kB / 377 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.4945, allocations: 12.67 kB / 377.1 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/0.4946, allocations: 17.39 kB / 377.1 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.4946, allocations: 4.969 kB / 377.1 MB, free: 17.87 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.667e-05/0.4947, allocations: 106.7 kB / 377.2 MB, free: 17.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4947, allocations: 0 / 377.2 MB, free: 17.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000396/0.4951, allocations: 37.56 kB / 377.2 MB, free: 17.79 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.0007529/0.4959, allocations: 0.922 MB / 378.1 MB, free: 16.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003279/0.4963, allocations: 185.5 kB / 378.3 MB, free: 16.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4963, allocations: 0 / 378.3 MB, free: 16.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.4965, allocations: 120.4 kB / 378.4 MB, free: 16.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.4968, allocations: 10.22 kB / 378.4 MB, free: 16.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006859/0.4975, allocations: 231.3 kB / 378.7 MB, free: 16.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007791/0.4983, allocations: 0.6998 MB / 379.4 MB, free: 31.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.166e-05/0.4984, allocations: 21.19 kB / 379.4 MB, free: 31.9 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4984, allocations: 0 / 379.4 MB, free: 31.9 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.55/3.048, allocations: 1.758 MB / 381.2 MB, free: 31.75 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat