Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.721/1.721, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.747e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2923, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.169/0.4613, allocations: 84.07 MB / 342.4 MB, free: 9.727 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/0.4617, allocations: 79.95 kB / 342.5 MB, free: 9.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3806/0.8423, allocations: 40.19 MB / 382.7 MB, free: 81.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.8424, allocations: 0 / 382.7 MB, free: 81.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.999e-05/0.8425, allocations: 31.81 kB / 382.7 MB, free: 81.29 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003361/0.8459, allocations: 1.56 MB / 384.3 MB, free: 80.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.8459, allocations: 11.69 kB / 384.3 MB, free: 80.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.847, allocations: 260.4 kB / 384.5 MB, free: 80.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002608/0.8497, allocations: 1.097 MB / 385.6 MB, free: 79.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.354e-05/0.8497, allocations: 54.16 kB / 385.7 MB, free: 79.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002516/0.85, allocations: 96.78 kB / 385.8 MB, free: 79.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002165/0.8522, allocations: 0.8132 MB / 386.6 MB, free: 79.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002644/0.8548, allocations: 1.209 MB / 387.8 MB, free: 79.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-05/0.8549, allocations: 7.969 kB / 387.8 MB, free: 79.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.8551, allocations: 7.359 kB / 387.8 MB, free: 79.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.475e-05/0.8551, allocations: 39.09 kB / 387.8 MB, free: 79.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009791/0.8649, allocations: 6.355 MB / 394.2 MB, free: 74.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007455/0.8657, allocations: 343.1 kB / 394.5 MB, free: 74.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003958/0.8661, allocations: 188 kB / 394.7 MB, free: 74.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.323e-05/0.8662, allocations: 8.344 kB / 394.7 MB, free: 74.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004515/0.8667, allocations: 242.6 kB / 395 MB, free: 74.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.155e-06/0.8667, allocations: 3.891 kB / 395 MB, free: 74.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003037/0.8697, allocations: 1.496 MB / 396.5 MB, free: 73.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.8698, allocations: 187.3 kB / 396.6 MB, free: 73.31 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.8712, allocations: 0.8508 MB / 397.5 MB, free: 72.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.8713, allocations: 33.36 kB / 397.5 MB, free: 72.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005927/0.8719, allocations: 0.8722 MB / 398.4 MB, free: 72.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.872, allocations: 205.3 kB / 398.6 MB, free: 71.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.8721, allocations: 3.938 kB / 398.6 MB, free: 71.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.455e-05/0.8722, allocations: 354.8 kB / 398.9 MB, free: 71.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004325/0.8726, allocations: 193.6 kB / 399.1 MB, free: 71.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007196/0.8734, allocations: 0.7454 MB / 399.9 MB, free: 70.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006473/0.874, allocations: 331.8 kB / 400.2 MB, free: 70.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/0.8741, allocations: 7.375 kB / 400.2 MB, free: 70.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001872/0.8759, allocations: 0.8721 MB / 401.1 MB, free: 70.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.711e-05/0.876, allocations: 44.31 kB / 401.1 MB, free: 70.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/0.876, allocations: 18.91 kB / 401.1 MB, free: 70.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.8763, allocations: 78.52 kB / 401.2 MB, free: 70.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.8778, allocations: 266.3 kB / 401.5 MB, free: 70.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.8794, allocations: 2.478 MB / 404 MB, free: 67.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.8808, allocations: 46.66 kB / 404 MB, free: 67.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.881, allocations: 68.09 kB / 404.1 MB, free: 67.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001955/0.8812, allocations: 156.4 kB / 404.2 MB, free: 67.32 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008907/0.8821, allocations: 461.3 kB / 404.7 MB, free: 66.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.8822, allocations: 122.6 kB / 404.8 MB, free: 66.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/0.8833, allocations: 464.2 kB / 405.3 MB, free: 66.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.8833, allocations: 8 kB / 405.3 MB, free: 66.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8833, allocations: 4 kB / 405.3 MB, free: 66.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.8833, allocations: 7.797 kB / 405.3 MB, free: 66.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.8862, allocations: 1.654 MB / 406.9 MB, free: 64.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.8863, allocations: 4 kB / 406.9 MB, free: 64.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007816/0.8871, allocations: 110.4 kB / 407 MB, free: 64.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/0.8873, allocations: 38 kB / 407.1 MB, free: 64.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.8873, allocations: 12 kB / 407.1 MB, free: 64.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.8888, allocations: 2.454 MB / 409.5 MB, free: 62.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.8888, allocations: 7.938 kB / 409.5 MB, free: 62.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.8903, allocations: 1.012 MB / 410.6 MB, free: 60.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004667/0.8908, allocations: 227.9 kB / 410.8 MB, free: 60.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.891, allocations: 7.469 kB / 410.8 MB, free: 60.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008251/0.8919, allocations: 31.62 kB / 410.8 MB, free: 60.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.892, allocations: 54.8 kB / 410.9 MB, free: 60.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.8921, allocations: 20 kB / 410.9 MB, free: 60.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001059/0.8931, allocations: 0.6129 MB / 411.5 MB, free: 60.1 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8931, allocations: 0 / 411.5 MB, free: 60.1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001562/0.8947, allocations: 283.7 kB / 411.8 MB, free: 59.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002002/0.8967, allocations: 2.745 MB / 414.5 MB, free: 57.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.8983, allocations: 0.8011 MB / 415.3 MB, free: 56.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.8983, allocations: 0 / 415.3 MB, free: 56.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006417/0.8989, allocations: 407.8 kB / 415.7 MB, free: 55.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001967/0.9009, allocations: 274.7 kB / 416 MB, free: 55.58 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.9063, allocations: 2.095 MB / 418.1 MB, free: 53.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000763/0.9072, allocations: 1.205 MB / 419.3 MB, free: 52.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009767/0.9082, allocations: 0.5774 MB / 419.9 MB, free: 51.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.041e-06/0.9082, allocations: 0 / 419.9 MB, free: 51.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.959/3.867, allocations: 36.38 MB / 456.2 MB, free: 15.29 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_QuasiStationary_res.mat does not exist to compare? outputFormat=mat