Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Rectifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.775/1.775, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.227e-05/2.231e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.262, allocations: 38.77 MB / 258.3 MB, free: 12.03 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4474/0.7095, allocations: 115.2 MB / 373.5 MB, free: 50.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.7098, allocations: 86.7 kB / 373.6 MB, free: 50.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2122/0.922, allocations: 54.9 MB / 428.5 MB, free: 40.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.922, allocations: 0 / 428.5 MB, free: 40.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002613/0.9223, allocations: 71.88 kB / 428.5 MB, free: 40.12 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: 610 * Number of variables: 610 Notification: Performance of Generate backend data structure: time 0.008511/0.9308, allocations: 2.569 MB / 431.1 MB, free: 37.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.9309, allocations: 12.03 kB / 431.1 MB, free: 37.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002542/0.9335, allocations: 428.5 kB / 431.5 MB, free: 37.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005166/0.9387, allocations: 1.729 MB / 433.3 MB, free: 35.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.41e-05/0.9388, allocations: 76 kB / 433.3 MB, free: 35.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006321/0.9395, allocations: 143.9 kB / 433.5 MB, free: 35.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006211/0.9457, allocations: 2.216 MB / 435.7 MB, free: 32.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008413/0.9541, allocations: 2.6 MB / 438.3 MB, free: 30.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001234/0.9543, allocations: 7.938 kB / 438.3 MB, free: 30.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003883/0.9547, allocations: 4 kB / 438.3 MB, free: 30.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.9549, allocations: 96.55 kB / 438.4 MB, free: 30 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02523/0.9801, allocations: 9.631 MB / 448 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004494/0.9847, allocations: 2.637 MB / 450.7 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002509/0.9872, allocations: 1.092 MB / 451.8 MB, free: 16.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004646/0.9877, allocations: 146.3 kB / 451.9 MB, free: 16.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.9878, allocations: 51.88 kB / 452 MB, free: 15.99 MB / 314.7 MB Notification: Performance of pre-optimization done (n=151): time 4.679e-06/0.9878, allocations: 0 / 452 MB, free: 15.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=174): time 0.01569/1.003, allocations: 5.75 MB / 457.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/1.004, allocations: 205.9 kB / 457.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/1.006, allocations: 1.307 MB / 459.2 MB, free: 8.637 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002695/1.006, allocations: 25.7 kB / 459.2 MB, free: 8.605 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007033/1.007, allocations: 1.093 MB / 460.3 MB, free: 7.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005529/1.008, allocations: 0.5581 MB / 460.9 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/1.008, allocations: 0 / 460.9 MB, free: 6.934 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/1.008, allocations: 386.8 kB / 461.3 MB, free: 6.547 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/1.01, allocations: 0.8473 MB / 462.1 MB, free: 5.699 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002053/1.012, allocations: 1.274 MB / 463.4 MB, free: 4.246 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002355/1.014, allocations: 1.033 MB / 464.4 MB, free: 3.219 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.749e-05/1.014, allocations: 4 kB / 464.4 MB, free: 3.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.007005/1.021, allocations: 2.914 MB / 467.3 MB, free: 284 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/1.021, allocations: 12.31 kB / 467.4 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.44e-05/1.021, allocations: 12 kB / 467.4 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004004/1.025, allocations: 0.9447 MB / 468.3 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002852/1.028, allocations: 363.5 kB / 468.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02169/1.05, allocations: 11.55 MB / 480.2 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/1.053, allocations: 75.89 kB / 480.3 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004819/1.053, allocations: 72.06 kB / 480.4 MB, free: 2.762 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 182 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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%) 27} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005163/1.054, allocations: 148.5 kB / 480.5 MB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007621/1.061, allocations: 2.591 MB / 483.1 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008679/1.062, allocations: 201.5 kB / 483.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007977/1.07, allocations: 2.736 MB / 486 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.158e-05/1.07, allocations: 16 kB / 486.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/1.07, allocations: 12.45 kB / 486.1 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-05/1.071, allocations: 7.969 kB / 486.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/1.087, allocations: 5.36 MB / 491.4 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/1.087, allocations: 4 kB / 491.4 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002603/1.089, allocations: 227.9 kB / 491.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006039/1.095, allocations: 1.015 MB / 492.7 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003544/1.096, allocations: 15.98 kB / 492.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2752/1.371, allocations: 13.18 MB / 0.494 GB, free: 73.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/1.371, allocations: 3.188 kB / 0.494 GB, free: 73.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009171/1.38, allocations: 4.187 MB / 0.4981 GB, free: 73.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/1.382, allocations: 469 kB / 0.4986 GB, free: 73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005565/1.382, allocations: 12.73 kB / 0.4986 GB, free: 73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001991/1.384, allocations: 78.7 kB / 0.4986 GB, free: 73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005135/1.385, allocations: 139.7 kB / 0.4988 GB, free: 72.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/1.385, allocations: 48.23 kB / 0.4988 GB, free: 72.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001955/1.387, allocations: 0.9821 MB / 0.4998 GB, free: 72.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.387, allocations: 2.062 kB / 0.4998 GB, free: 72.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003554/1.391, allocations: 0.6249 MB / 0.5004 GB, free: 72.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 12 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 109 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 27,(2,100.0%) 4} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01015/1.401, allocations: 5.524 MB / 0.5058 GB, free: 71.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006483/1.407, allocations: 2.955 MB / 0.5087 GB, free: 70.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.407, allocations: 3.875 kB / 0.5087 GB, free: 70.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004431/1.412, allocations: 2.008 MB / 0.5106 GB, free: 70.17 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003709/1.416, allocations: 406.5 kB / 0.511 GB, free: 70.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/1.431, allocations: 5.091 MB / 0.516 GB, free: 69.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001978/1.433, allocations: 1.988 MB / 0.5179 GB, free: 68.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001992/1.435, allocations: 0.977 MB / 0.5189 GB, free: 68.29 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/1.435, allocations: 4 kB / 0.5189 GB, free: 68.29 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.884/5.318, allocations: 99.44 MB / 0.616 GB, free: 9.449 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Rectifier_res.mat does not exist to compare? outputFormat=mat