Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.734e-05/3.743e-05, allocations: 0 / 225.1 MB, free: 2.625 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.264, allocations: 38.77 MB / 263.8 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1241/0.3882, allocations: 66.4 MB / 330.2 MB, free: 7.258 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.3885, allocations: 63.97 kB / 330.3 MB, free: 7.195 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006537/0.395, allocations: 1.445 MB / 331.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3951, allocations: 0 / 331.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.3951, allocations: 4 kB / 331.8 MB, free: 5.738 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006372/0.3958, allocations: 365.8 kB / 332.1 MB, free: 5.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.3959, allocations: 15.97 kB / 332.1 MB, free: 5.324 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.568e-05/0.3959, allocations: 38.55 kB / 332.2 MB, free: 5.277 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.128e-05/0.396, allocations: 7.906 kB / 332.2 MB, free: 5.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.3962, allocations: 178.8 kB / 332.3 MB, free: 5.055 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.3962, allocations: 4 kB / 332.3 MB, free: 5.051 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.3962, allocations: 8 kB / 332.4 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.3965, allocations: 109.9 kB / 332.5 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3965, allocations: 0 / 332.5 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.3965, allocations: 0 / 332.5 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.3966, allocations: 0 / 332.5 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.3967, allocations: 31.94 kB / 332.5 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000928/0.3976, allocations: 0.6497 MB / 333.1 MB, free: 4.168 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.3979, allocations: 105.1 kB / 333.2 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.88e-05/0.398, allocations: 36.3 kB / 333.3 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.398, allocations: 0 / 333.3 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.3981, allocations: 46.5 kB / 333.3 MB, free: 3.914 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.813e-06/0.3981, allocations: 0 / 333.3 MB, free: 3.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003481/0.3984, allocations: 69.53 kB / 333.4 MB, free: 3.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3986, allocations: 162.2 kB / 333.6 MB, free: 3.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.3987, allocations: 109.2 kB / 333.7 MB, free: 3.531 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.3988, allocations: 25.7 kB / 333.7 MB, free: 3.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.3989, allocations: 170.6 kB / 333.9 MB, free: 3.328 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.3989, allocations: 19.75 kB / 333.9 MB, free: 3.309 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-06/0.3989, allocations: 0 / 333.9 MB, free: 3.309 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3991, allocations: 314.8 kB / 334.2 MB, free: 2.992 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.22e-05/0.3992, allocations: 12 kB / 334.2 MB, free: 2.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.609e-05/0.3993, allocations: 44.28 kB / 334.2 MB, free: 2.922 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.554e-05/0.3993, allocations: 12 kB / 334.2 MB, free: 2.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3993, allocations: 0 / 334.2 MB, free: 2.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002124/0.3996, allocations: 69.75 kB / 334.3 MB, free: 2.836 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.3996, allocations: 7.938 kB / 334.3 MB, free: 2.828 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3996, allocations: 3.938 kB / 334.3 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.3997, allocations: 4 kB / 334.3 MB, free: 2.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.3999, allocations: 15.98 kB / 334.3 MB, free: 2.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.3999, allocations: 0 / 334.3 MB, free: 2.805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.4, allocations: 11.98 kB / 334.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.4001, allocations: 4 kB / 334.4 MB, free: 2.789 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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.0001122/0.4002, allocations: 113 kB / 334.5 MB, free: 2.672 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.4003, allocations: 7.906 kB / 334.5 MB, free: 2.664 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.714e-05/0.4004, allocations: 19.59 kB / 334.5 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4004, allocations: 0 / 334.5 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4004, allocations: 4 kB / 334.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4004, allocations: 3.938 kB / 334.5 MB, free: 2.633 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005619/0.401, allocations: 189.6 kB / 334.7 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.401, allocations: 4.125 kB / 334.7 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.4012, allocations: 19.92 kB / 334.7 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.4012, allocations: 8 kB / 334.7 MB, free: 2.367 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.4012, allocations: 4 kB / 334.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.4013, allocations: 0 / 334.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.4013, allocations: 4 kB / 334.7 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004344/0.4017, allocations: 0.5033 MB / 335.2 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.948e-05/0.4018, allocations: 89 kB / 335.3 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.4019, allocations: 7.953 kB / 335.3 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/0.4022, allocations: 11.98 kB / 335.3 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.4023, allocations: 8 kB / 335.3 MB, free: 1.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.4023, allocations: 4 kB / 335.4 MB, free: 1.676 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.137e-05/0.4024, allocations: 95.27 kB / 335.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4024, allocations: 4 kB / 335.4 MB, free: 1.578 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005675/0.403, allocations: 8 kB / 335.5 MB, free: 1.57 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000941/0.404, allocations: 1.324 MB / 336.8 MB, free: 204 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000195/0.4042, allocations: 35.92 kB / 336.8 MB, free: 168 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.4042, allocations: 0 / 336.8 MB, free: 168 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.962e-05/0.4043, allocations: 23.94 kB / 336.8 MB, free: 144 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004141/0.4047, allocations: 11.95 kB / 336.9 MB, free: 132 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000969/0.4057, allocations: 188 kB / 337 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.4062, allocations: 0.6926 MB / 337.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.985e-05/0.4063, allocations: 23.42 kB / 337.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of SimCode: time 1.363e-06/0.4063, allocations: 0 / 337.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.586/2.992, allocations: 1.21 MB / 339 MB, free: 13.94 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat