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.665/1.665, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.302e-05/3.312e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2581, allocations: 38.77 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.4246, allocations: 84.73 MB / 348.6 MB, free: 4.891 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003301/0.4249, allocations: 83.95 kB / 348.6 MB, free: 4.809 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4214/0.8464, allocations: 40.76 MB / 389.4 MB, free: 81.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.8465, allocations: 0 / 389.4 MB, free: 81.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.8466, allocations: 31.06 kB / 389.4 MB, free: 81.14 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.004204/0.8508, allocations: 1.559 MB / 391 MB, free: 80.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/0.8509, allocations: 11.81 kB / 391 MB, free: 80.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005482/0.8514, allocations: 219.9 kB / 391.2 MB, free: 80.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001212/0.8527, allocations: 257.2 kB / 391.5 MB, free: 79.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003154/0.8559, allocations: 1.097 MB / 392.6 MB, free: 79.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.856, allocations: 115.7 kB / 392.7 MB, free: 79.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003416/0.8564, allocations: 160.5 kB / 392.8 MB, free: 79.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003448/0.8598, allocations: 1.422 MB / 394.3 MB, free: 77.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.551e-05/0.86, allocations: 11.94 kB / 394.3 MB, free: 77.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001843/0.8602, allocations: 64 kB / 394.3 MB, free: 77.63 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-05/0.8602, allocations: 40 kB / 394.4 MB, free: 77.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002648/0.8629, allocations: 0.9099 MB / 395.3 MB, free: 76.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/0.8751, allocations: 6.661 MB / 401.9 MB, free: 69.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009073/0.8761, allocations: 376.8 kB / 402.3 MB, free: 69.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004646/0.8766, allocations: 204.6 kB / 402.5 MB, free: 69.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.804e-05/0.8766, allocations: 8.438 kB / 402.5 MB, free: 69.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005137/0.8772, allocations: 257.7 kB / 402.8 MB, free: 68.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.296e-06/0.8772, allocations: 0 / 402.8 MB, free: 68.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003635/0.8808, allocations: 1.606 MB / 404.4 MB, free: 67.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.881, allocations: 196.5 kB / 404.6 MB, free: 66.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/0.883, allocations: 1.061 MB / 405.6 MB, free: 65.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.8831, allocations: 33.7 kB / 405.7 MB, free: 65.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006416/0.8837, allocations: 0.8557 MB / 406.5 MB, free: 64.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.884, allocations: 209.2 kB / 406.7 MB, free: 64.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.084e-05/0.884, allocations: 24 kB / 406.7 MB, free: 64.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.857e-05/0.8841, allocations: 354.8 kB / 407.1 MB, free: 64.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005446/0.8847, allocations: 210.6 kB / 407.3 MB, free: 64.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007948/0.8855, allocations: 0.7801 MB / 408.1 MB, free: 63.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008058/0.8863, allocations: 392.5 kB / 408.5 MB, free: 62.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.8864, allocations: 4 kB / 408.5 MB, free: 62.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002221/0.8886, allocations: 1.057 MB / 409.5 MB, free: 61.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.18e-05/0.8887, allocations: 45.69 kB / 409.6 MB, free: 61.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-05/0.8887, allocations: 20 kB / 409.6 MB, free: 61.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003087/0.889, allocations: 69.64 kB / 409.7 MB, free: 61.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.8905, allocations: 271.5 kB / 409.9 MB, free: 61.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.8923, allocations: 2.582 MB / 412.5 MB, free: 58.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.8941, allocations: 75.95 kB / 412.6 MB, free: 58.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.8943, allocations: 63.98 kB / 412.6 MB, free: 58.26 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.0002435/0.8946, allocations: 186 kB / 412.8 MB, free: 58.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.8948, allocations: 134.4 kB / 413 MB, free: 57.94 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.8961, allocations: 0.5097 MB / 413.5 MB, free: 57.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.8961, allocations: 8 kB / 413.5 MB, free: 57.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.8961, allocations: 3.984 kB / 413.5 MB, free: 57.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.8961, allocations: 3.953 kB / 413.5 MB, free: 57.4 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003653/0.8998, allocations: 1.888 MB / 415.4 MB, free: 55.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.8999, allocations: 7.984 kB / 415.4 MB, free: 55.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008123/0.9007, allocations: 99.89 kB / 415.5 MB, free: 55.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002248/0.9009, allocations: 50.11 kB / 415.5 MB, free: 55.24 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-05/0.901, allocations: 23.94 kB / 415.5 MB, free: 55.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/0.9027, allocations: 2.547 MB / 418.1 MB, free: 52.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.9027, allocations: 8.188 kB / 418.1 MB, free: 52.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.9045, allocations: 1.078 MB / 419.2 MB, free: 51.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005876/0.9051, allocations: 263.3 kB / 419.4 MB, free: 50.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.9053, allocations: 19.95 kB / 419.5 MB, free: 50.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.9064, allocations: 39.97 kB / 419.5 MB, free: 50.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.9065, allocations: 39.94 kB / 419.5 MB, free: 50.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.051e-05/0.9066, allocations: 20 kB / 419.6 MB, free: 50.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0015/0.9081, allocations: 0.8013 MB / 420.4 MB, free: 49.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.9081, allocations: 0 / 420.4 MB, free: 49.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00186/0.91, allocations: 340 kB / 420.7 MB, free: 49.6 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.002486/0.9125, allocations: 2.835 MB / 423.5 MB, free: 46.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.9144, allocations: 0.8864 MB / 424.4 MB, free: 45.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.9144, allocations: 0 / 424.4 MB, free: 45.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007496/0.9152, allocations: 442.5 kB / 424.8 MB, free: 45.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002372/0.9175, allocations: 303 kB / 425.1 MB, free: 44.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006051/0.9236, allocations: 2.169 MB / 427.3 MB, free: 42.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008007/0.9245, allocations: 1.209 MB / 428.5 MB, free: 41.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.9255, allocations: 0.593 MB / 429.1 MB, free: 40.88 MB / 314.7 MB Notification: Performance of SimCode: time 2.104e-06/0.9255, allocations: 0 / 429.1 MB, free: 40.88 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.186/4.112, allocations: 37.61 MB / 466.7 MB, free: 3.258 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