Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.641/1.641, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.773e-05/2.779e-05, allocations: 0 / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2587, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1767/0.4354, allocations: 103.7 MB / 367.5 MB, free: 2.035 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.4358, allocations: 79.95 kB / 367.6 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5452/0.981, allocations: 82.35 MB / 449.9 MB, free: 25.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.9811, allocations: 7.984 kB / 449.9 MB, free: 25.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002411/0.9814, allocations: 59.94 kB / 450 MB, free: 25.21 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: 655 * Number of variables: 655 Notification: Performance of Generate backend data structure: time 0.008584/0.99, allocations: 2.609 MB / 452.6 MB, free: 22.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.99, allocations: 12.03 kB / 452.6 MB, free: 22.53 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0011/0.9911, allocations: 358.7 kB / 453 MB, free: 22.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00222/0.9934, allocations: 420 kB / 453.4 MB, free: 21.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005091/0.9985, allocations: 1.737 MB / 455.1 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.9987, allocations: 193 kB / 455.3 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007086/0.9994, allocations: 255.9 kB / 455.5 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007791/1.007, allocations: 3.144 MB / 458.7 MB, free: 16.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.684e-05/1.007, allocations: 4 kB / 458.7 MB, free: 16.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003612/1.008, allocations: 108.3 kB / 458.8 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/1.008, allocations: 112.9 kB / 458.9 MB, free: 16.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006867/1.015, allocations: 2.452 MB / 461.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02466/1.039, allocations: 10.4 MB / 471.8 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003098/1.043, allocations: 1.731 MB / 473.5 MB, free: 0.957 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/1.044, allocations: 0.8544 MB / 474.3 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004511/1.045, allocations: 146 kB / 474.5 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.344e-05/1.045, allocations: 47.5 kB / 474.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.578e-06/1.045, allocations: 0 / 474.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=141): time 0.0277/1.073, allocations: 6.873 MB / 481.4 MB, free: 8.961 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/1.073, allocations: 64.72 kB / 481.5 MB, free: 8.887 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003673/1.076, allocations: 1.578 MB / 483.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002389/1.077, allocations: 49.7 kB / 483.1 MB, free: 7.258 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/1.078, allocations: 1.166 MB / 484.3 MB, free: 6.078 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006433/1.079, allocations: 489 kB / 484.7 MB, free: 5.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/1.079, allocations: 36 kB / 484.8 MB, free: 5.559 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/1.079, allocations: 374.7 kB / 485.1 MB, free: 5.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/1.081, allocations: 0.8043 MB / 486 MB, free: 4.379 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002524/1.084, allocations: 1.287 MB / 487.2 MB, free: 2.883 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002508/1.086, allocations: 1.008 MB / 488.2 MB, free: 1.871 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/1.086, allocations: 4 kB / 488.2 MB, free: 1.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007477/1.094, allocations: 2.704 MB / 491 MB, free: 15.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/1.094, allocations: 12 kB / 491 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-05/1.094, allocations: 16.31 kB / 491 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002569/1.096, allocations: 0.591 MB / 491.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002916/1.099, allocations: 407.4 kB / 492 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/1.112, allocations: 5.461 MB / 497.4 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002691/1.114, allocations: 131.8 kB / 497.6 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/1.115, allocations: 72 kB / 497.6 MB, free: 8.328 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004533/1.115, allocations: 212.4 kB / 497.8 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000508/1.116, allocations: 197.6 kB / 498 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007217/1.123, allocations: 2.478 MB / 0.4888 GB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.402e-05/1.123, allocations: 16 kB / 0.4888 GB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.123, allocations: 4 kB / 0.4888 GB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/1.123, allocations: 11.97 kB / 0.4888 GB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.251/1.374, allocations: 5.345 MB / 0.494 GB, free: 73.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.232e-05/1.374, allocations: 4.281 kB / 0.494 GB, free: 73.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/1.376, allocations: 247.9 kB / 0.4943 GB, free: 73.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003261/1.38, allocations: 0.6513 MB / 0.4949 GB, free: 73.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002996/1.38, allocations: 44.67 kB / 0.4949 GB, free: 73.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/1.392, allocations: 7.126 MB / 0.5019 GB, free: 70.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.392, allocations: 7.422 kB / 0.5019 GB, free: 70.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00846/1.401, allocations: 3.893 MB / 0.5057 GB, free: 70.33 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.402, allocations: 470.4 kB / 0.5062 GB, free: 70.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004047/1.403, allocations: 32.67 kB / 0.5062 GB, free: 70.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/1.405, allocations: 114.9 kB / 0.5063 GB, free: 70.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004057/1.405, allocations: 119.4 kB / 0.5064 GB, free: 70.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/1.405, allocations: 44.94 kB / 0.5065 GB, free: 70.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002412/1.408, allocations: 1.205 MB / 0.5076 GB, free: 70.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.408, allocations: 0 / 0.5076 GB, free: 70.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002831/1.41, allocations: 0.6189 MB / 0.5082 GB, free: 70.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009238/1.42, allocations: 5.554 MB / 0.5137 GB, free: 68.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005762/1.426, allocations: 2.46 MB / 0.5161 GB, free: 67.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.487e-06/1.426, allocations: 3.406 kB / 0.5161 GB, free: 67.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003844/1.429, allocations: 1.568 MB / 0.5176 GB, free: 67.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/1.433, allocations: 399.7 kB / 0.518 GB, free: 67.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/1.445, allocations: 4.8 MB / 0.5227 GB, free: 66.33 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002769/1.448, allocations: 2.053 MB / 0.5247 GB, free: 65.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002438/1.45, allocations: 1.004 MB / 0.5257 GB, free: 65.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/1.45, allocations: 0 / 0.5257 GB, free: 65.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.46/4.911, allocations: 68.51 MB / 0.5926 GB, free: 20.41 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat