Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 194.9 MB / 208 MB, free: 3.188 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.896e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09089, allocations: 44.51 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.486/0.5769, allocations: 130.3 MB / 430.2 MB, free: 1.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.5773, allocations: 81.95 kB / 430.3 MB, free: 1.027 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7693/1.347, allocations: 130.5 MB / 0.5476 GB, free: 60.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.347, allocations: 0 / 0.5476 GB, free: 60.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006114/1.347, allocations: 142.1 kB / 0.5478 GB, free: 60.07 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02237/1.37, allocations: 5.389 MB / 0.553 GB, free: 58.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/1.37, allocations: 14.41 kB / 0.553 GB, free: 58.04 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00328/1.373, allocations: 0.7582 MB / 0.5538 GB, free: 57.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009395/1.383, allocations: 1.146 MB / 0.5549 GB, free: 57.63 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01871/1.401, allocations: 4.872 MB / 0.5597 GB, free: 56.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005271/1.402, allocations: 427.3 kB / 0.5601 GB, free: 56.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002415/1.404, allocations: 0.5583 MB / 0.5606 GB, free: 56.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02308/1.427, allocations: 7.016 MB / 0.5675 GB, free: 56.13 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002873/1.428, allocations: 11.42 kB / 0.5675 GB, free: 56.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001745/1.43, allocations: 236.2 kB / 0.5677 GB, free: 56.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002906/1.43, allocations: 250.8 kB / 0.5679 GB, free: 56.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01792/1.448, allocations: 5.567 MB / 0.5734 GB, free: 55.01 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06203/1.51, allocations: 23.83 MB / 0.5966 GB, free: 42.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01188/1.522, allocations: 8.586 MB / 0.605 GB, free: 34.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005657/1.527, allocations: 2.23 MB / 0.6072 GB, free: 32.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01976/1.547, allocations: 6.926 MB / 0.614 GB, free: 26.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.928e-05/1.547, allocations: 56.56 kB / 0.614 GB, free: 26.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=234): time 5.841e-06/1.547, allocations: 0 / 0.614 GB, free: 26.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=285): time 0.04813/1.596, allocations: 12.11 MB / 0.6259 GB, free: 16.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/1.596, allocations: 81.62 kB / 0.6259 GB, free: 16.42 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007043/1.603, allocations: 2.924 MB / 0.6288 GB, free: 13.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006647/1.603, allocations: 77.7 kB / 0.6289 GB, free: 13.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002197/1.606, allocations: 2.662 MB / 0.6315 GB, free: 11.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001324/1.607, allocations: 0.9716 MB / 0.6324 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003482/1.607, allocations: 68 kB / 0.6325 GB, free: 10.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002208/1.608, allocations: 452.4 kB / 0.6329 GB, free: 9.977 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003609/1.611, allocations: 1.464 MB / 0.6343 GB, free: 8.625 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004389/1.616, allocations: 2.639 MB / 0.6369 GB, free: 5.629 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00457/1.62, allocations: 1.948 MB / 0.6388 GB, free: 3.898 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.97e-05/1.62, allocations: 8 kB / 0.6388 GB, free: 3.891 MB / 394.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01588/1.636, allocations: 5.433 MB / 0.6441 GB, free: 15.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/1.636, allocations: 20 kB / 0.6441 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.641e-05/1.636, allocations: 43.56 kB / 0.6442 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003964/1.64, allocations: 0.8667 MB / 0.645 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006721/1.647, allocations: 0.8524 MB / 0.6459 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01968/1.667, allocations: 9.793 MB / 0.6554 GB, free: 4.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00566/1.673, allocations: 231.5 kB / 0.6557 GB, free: 4.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009578/1.674, allocations: 169.5 kB / 0.6558 GB, free: 3.977 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 409 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009874/1.675, allocations: 327.9 kB / 0.6561 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/1.676, allocations: 386.9 kB / 0.6565 GB, free: 3.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3405/2.017, allocations: 4.522 MB / 0.6609 GB, free: 68.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.942e-05/2.017, allocations: 29.58 kB / 0.6609 GB, free: 68.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.238e-05/2.017, allocations: 13.56 kB / 0.661 GB, free: 68.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.772e-05/2.017, allocations: 21.05 kB / 0.661 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0309/2.048, allocations: 9.931 MB / 0.6707 GB, free: 67.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01078/2.059, allocations: 3.794 MB / 0.6744 GB, free: 67.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004331/2.063, allocations: 498.9 kB / 0.6749 GB, free: 67.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004251/2.067, allocations: 0.9803 MB / 0.6758 GB, free: 67.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005617/2.068, allocations: 68.78 kB / 0.6759 GB, free: 67.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02128/2.089, allocations: 14.76 MB / 0.6903 GB, free: 59.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.707e-06/2.089, allocations: 4.688 kB / 0.6903 GB, free: 59.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01695/2.106, allocations: 7.111 MB / 0.6972 GB, free: 57.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003187/2.109, allocations: 0.7728 MB / 0.698 GB, free: 57.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001443/2.111, allocations: 67.22 kB / 0.6981 GB, free: 57.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00439/2.115, allocations: 176.2 kB / 0.6982 GB, free: 57.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/2.116, allocations: 217.5 kB / 0.6984 GB, free: 57.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003141/2.117, allocations: 84 kB / 0.6985 GB, free: 57.76 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00602/2.123, allocations: 2.203 MB / 0.7007 GB, free: 57.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.132e-06/2.123, allocations: 0 / 0.7007 GB, free: 57.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006813/2.13, allocations: 1.202 MB / 0.7018 GB, free: 57.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02428/2.154, allocations: 8.976 MB / 0.7106 GB, free: 53.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01152/2.165, allocations: 4.638 MB / 0.7151 GB, free: 51.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/2.165, allocations: 3.906 kB / 0.7151 GB, free: 51.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007547/2.173, allocations: 2.964 MB / 0.718 GB, free: 50.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006829/2.18, allocations: 0.824 MB / 0.7188 GB, free: 49.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03166/2.212, allocations: 9.934 MB / 0.7285 GB, free: 45.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006475/2.218, allocations: 3.603 MB / 0.732 GB, free: 44.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005437/2.224, allocations: 0.8326 MB / 0.7329 GB, free: 44.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005117/2.229, allocations: 2.224 MB / 0.735 GB, free: 42.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.833e-06/2.229, allocations: 0 / 0.735 GB, free: 42.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5908/2.82, allocations: 97.29 MB / 0.83 GB, free: 72.63 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/2.82, allocations: 198.3 kB / 0.8302 GB, free: 72.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/9.635, allocations: 3.438 kB / 0.8302 GB, free: 72.4 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat