Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.834/1.834, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.264e-05, allocations: 4 kB / 225.1 MB, free: 2.727 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2862, allocations: 38.77 MB / 263.9 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.4319, allocations: 83.47 MB / 347.3 MB, free: 6.168 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/0.4323, allocations: 79.95 kB / 347.4 MB, free: 6.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3241/0.7564, allocations: 23.02 MB / 370.4 MB, free: 82.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.7564, allocations: 0.5 kB / 370.4 MB, free: 82.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.136e-05/0.7565, allocations: 22.02 kB / 370.5 MB, free: 82.75 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002853/0.7594, allocations: 0.9729 MB / 371.4 MB, free: 82.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.7595, allocations: 9.375 kB / 371.4 MB, free: 82.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003459/0.7598, allocations: 125.5 kB / 371.6 MB, free: 82.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009171/0.7607, allocations: 150.8 kB / 371.7 MB, free: 82.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.7629, allocations: 0.6826 MB / 372.4 MB, free: 81.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.453e-05/0.7629, allocations: 60.56 kB / 372.4 MB, free: 81.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.7631, allocations: 85.14 kB / 372.5 MB, free: 81.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.7648, allocations: 0.7274 MB / 373.3 MB, free: 81.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.07e-05/0.7649, allocations: 3.812 kB / 373.3 MB, free: 81.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.765, allocations: 29.12 kB / 373.3 MB, free: 81.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.765, allocations: 25.8 kB / 373.3 MB, free: 81.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.7663, allocations: 466.1 kB / 373.8 MB, free: 81.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006038/0.7724, allocations: 3.465 MB / 377.2 MB, free: 80.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.773, allocations: 199.1 kB / 377.4 MB, free: 80.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.7732, allocations: 98.22 kB / 377.5 MB, free: 80.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.09e-05/0.7732, allocations: 0 / 377.5 MB, free: 80.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.7733, allocations: 41.97 kB / 377.6 MB, free: 79.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.7733, allocations: 3.375 kB / 377.6 MB, free: 79.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001953/0.7753, allocations: 0.8031 MB / 378.4 MB, free: 79.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.7753, allocations: 81.25 kB / 378.4 MB, free: 79.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.7764, allocations: 0.6114 MB / 379.1 MB, free: 79.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.7765, allocations: 35.64 kB / 379.1 MB, free: 79.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.7768, allocations: 0.5117 MB / 379.6 MB, free: 78.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.7769, allocations: 111 kB / 379.7 MB, free: 78.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/0.7769, allocations: 7.375 kB / 379.7 MB, free: 78.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.777, allocations: 336 kB / 380.1 MB, free: 78.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.7773, allocations: 101.8 kB / 380.1 MB, free: 78.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/0.7777, allocations: 406.3 kB / 380.5 MB, free: 78.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.7781, allocations: 179.2 kB / 380.7 MB, free: 78.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.7781, allocations: 0 / 380.7 MB, free: 78.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001134/0.7793, allocations: 0.4988 MB / 381.2 MB, free: 78.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.7793, allocations: 11.81 kB / 381.2 MB, free: 78.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.7794, allocations: 11.22 kB / 381.2 MB, free: 78.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000207/0.7796, allocations: 39.22 kB / 381.3 MB, free: 78.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008208/0.7804, allocations: 143.4 kB / 381.4 MB, free: 78.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009705/0.7814, allocations: 1.286 MB / 382.7 MB, free: 76.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000928/0.7823, allocations: 35.12 kB / 382.7 MB, free: 76.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.454e-05/0.7824, allocations: 38.81 kB / 382.8 MB, free: 76.88 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001478/0.7826, allocations: 145.9 kB / 382.9 MB, free: 76.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.7827, allocations: 73.78 kB / 383 MB, free: 76.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007297/0.7835, allocations: 290.2 kB / 383.3 MB, free: 76.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.7835, allocations: 0 / 383.3 MB, free: 76.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7835, allocations: 3.75 kB / 383.3 MB, free: 76.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.7835, allocations: 3.891 kB / 383.3 MB, free: 76.65 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.7855, allocations: 1.049 MB / 384.3 MB, free: 76.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.7855, allocations: 0 / 384.3 MB, free: 76.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005124/0.786, allocations: 67.22 kB / 384.4 MB, free: 76.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001316/0.7862, allocations: 24.33 kB / 384.4 MB, free: 76.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.7862, allocations: 7.969 kB / 384.4 MB, free: 76.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008923/0.7871, allocations: 1.274 MB / 385.7 MB, free: 74.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.7872, allocations: 0 / 385.7 MB, free: 74.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009316/0.7881, allocations: 0.5894 MB / 386.3 MB, free: 74.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.7885, allocations: 176.2 kB / 386.5 MB, free: 74.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.7886, allocations: 7.969 kB / 386.5 MB, free: 74.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005569/0.7892, allocations: 23.31 kB / 386.5 MB, free: 74.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.186e-05/0.7893, allocations: 35.2 kB / 386.5 MB, free: 74.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.7893, allocations: 7.781 kB / 386.5 MB, free: 74.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008256/0.7901, allocations: 474.9 kB / 387 MB, free: 74.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7902, allocations: 0 / 387 MB, free: 74.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001178/0.7913, allocations: 199.1 kB / 387.2 MB, free: 73.98 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001539/0.7929, allocations: 1.782 MB / 389 MB, free: 72.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009104/0.7938, allocations: 403.9 kB / 389.4 MB, free: 72.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.7938, allocations: 0 / 389.4 MB, free: 72.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.7942, allocations: 208.3 kB / 389.6 MB, free: 72.15 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.7956, allocations: 173.5 kB / 389.7 MB, free: 72.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.7989, allocations: 1.19 MB / 390.9 MB, free: 71.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.7994, allocations: 0.9542 MB / 391.9 MB, free: 70.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005155/0.8, allocations: 309.3 kB / 392.2 MB, free: 70.48 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.8, allocations: 0 / 392.2 MB, free: 70.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.87/3.67, allocations: 17.42 MB / 409.6 MB, free: 60.34 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat