Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.675e-05/2.681e-05, allocations: 8 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3228, allocations: 44.5 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1988/0.5216, allocations: 116.2 MB / 410.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/0.522, allocations: 83.95 kB / 410.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.225/1.747, allocations: 190.4 MB / 0.5868 GB, free: 39.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.345e-06/1.747, allocations: 0 / 0.5868 GB, free: 39.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008988/1.748, allocations: 207.8 kB / 0.587 GB, free: 39.22 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03407/1.782, allocations: 7.88 MB / 0.5947 GB, free: 36.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/1.782, allocations: 7.875 kB / 0.5947 GB, free: 36.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01715/1.799, allocations: 1.909 MB / 0.5966 GB, free: 36.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03205/1.832, allocations: 7.033 MB / 0.6035 GB, free: 35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005849/1.832, allocations: 284.7 kB / 0.6037 GB, free: 35 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003401/1.836, allocations: 0.5023 MB / 0.6042 GB, free: 34.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03972/1.875, allocations: 8.192 MB / 0.6122 GB, free: 34.95 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.035/1.91, allocations: 9.636 MB / 0.6216 GB, free: 34.08 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004764/1.911, allocations: 9.781 kB / 0.6216 GB, free: 34.08 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002837/1.914, allocations: 11.33 kB / 0.6216 GB, free: 34.08 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004424/1.914, allocations: 369.5 kB / 0.622 GB, free: 34.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08861/2.003, allocations: 34.33 MB / 0.6555 GB, free: 19.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02403/2.027, allocations: 16.56 MB / 0.6717 GB, free: 4.406 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009198/2.036, allocations: 3.22 MB / 0.6748 GB, free: 1.785 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03316/2.069, allocations: 9.429 MB / 0.6841 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.463e-05/2.07, allocations: 67.69 kB / 0.6841 GB, free: 10.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=295): time 7.234e-06/2.07, allocations: 0 / 0.6841 GB, free: 10.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=347): time 0.04879/2.118, allocations: 12.08 MB / 0.6959 GB, free: 15.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/2.118, allocations: 97.59 kB / 0.696 GB, free: 15.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009223/2.128, allocations: 3.138 MB / 0.6991 GB, free: 12.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007527/2.129, allocations: 29.7 kB / 0.6991 GB, free: 12.94 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004451/2.133, allocations: 3.894 MB / 0.7029 GB, free: 9.465 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001942/2.135, allocations: 1.138 MB / 0.704 GB, free: 8.418 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004391/2.135, allocations: 0 / 0.704 GB, free: 8.418 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003943/2.136, allocations: 488.6 kB / 0.7045 GB, free: 7.988 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004505/2.14, allocations: 1.626 MB / 0.7061 GB, free: 6.477 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006346/2.147, allocations: 3.04 MB / 0.709 GB, free: 2.984 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008202/2.155, allocations: 2.537 MB / 0.7115 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.85e-05/2.155, allocations: 12 kB / 0.7115 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.3702/2.525, allocations: 6.371 MB / 0.7177 GB, free: 64.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.902e-05/2.525, allocations: 26.53 kB / 0.7178 GB, free: 64.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/2.526, allocations: 49.19 kB / 0.7178 GB, free: 64.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003076/2.529, allocations: 0.705 MB / 0.7185 GB, free: 64.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008163/2.537, allocations: 1.048 MB / 0.7195 GB, free: 64.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0135/2.55, allocations: 9.662 MB / 0.729 GB, free: 59.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005987/2.556, allocations: 164.5 kB / 0.7291 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/2.557, allocations: 198.8 kB / 0.7293 GB, free: 59.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 512 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009753/2.558, allocations: 237.5 kB / 0.7295 GB, free: 59.8 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01338/2.572, allocations: 4.736 MB / 0.7342 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001922/2.574, allocations: 441.6 kB / 0.7346 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01451/2.588, allocations: 5.007 MB / 0.7395 GB, free: 58.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/2.588, allocations: 32.12 kB / 0.7395 GB, free: 58.97 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.179e-05/2.588, allocations: 11.03 kB / 0.7395 GB, free: 58.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.256e-05/2.589, allocations: 19.44 kB / 0.7395 GB, free: 58.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03023/2.619, allocations: 11.23 MB / 0.7505 GB, free: 58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.889e-05/2.619, allocations: 7.594 kB / 0.7505 GB, free: 58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005858/2.625, allocations: 0.6061 MB / 0.7511 GB, free: 58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003602/2.628, allocations: 0.8787 MB / 0.752 GB, free: 57.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006156/2.629, allocations: 43.31 kB / 0.752 GB, free: 57.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01972/2.649, allocations: 13.45 MB / 0.7651 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/2.649, allocations: 7.594 kB / 0.7651 GB, free: 51.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02388/2.673, allocations: 7.911 MB / 0.7729 GB, free: 49.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003464/2.676, allocations: 0.8903 MB / 0.7737 GB, free: 49.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00171/2.678, allocations: 18.2 kB / 0.7738 GB, free: 49.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005103/2.683, allocations: 159.6 kB / 0.7739 GB, free: 49.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001247/2.684, allocations: 267.1 kB / 0.7742 GB, free: 49.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003572/2.685, allocations: 102.9 kB / 0.7743 GB, free: 49.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005609/2.69, allocations: 2.312 MB / 0.7765 GB, free: 49.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.69, allocations: 0 / 0.7765 GB, free: 49.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008197/2.699, allocations: 1.327 MB / 0.7778 GB, free: 49.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02047/2.719, allocations: 9.967 MB / 0.7875 GB, free: 44.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01123/2.73, allocations: 4.97 MB / 0.7924 GB, free: 42.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/2.73, allocations: 3.656 kB / 0.7924 GB, free: 42.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007574/2.738, allocations: 3.125 MB / 0.7955 GB, free: 40.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006923/2.745, allocations: 0.7532 MB / 0.7962 GB, free: 40.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04134/2.786, allocations: 13.76 MB / 0.8096 GB, free: 35.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008988/2.795, allocations: 5.205 MB / 0.8147 GB, free: 33.53 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.006426/2.802, allocations: 0.9885 MB / 0.8157 GB, free: 33.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007119/2.809, allocations: 3.276 MB / 0.8189 GB, free: 30.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.744e-06/2.809, allocations: 0 / 0.8189 GB, free: 30.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5849/3.394, allocations: 105.9 MB / 0.9223 GB, free: 62.12 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/3.394, allocations: 184.7 kB / 0.9225 GB, free: 61.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.826/10.22, allocations: 0 / 0.9225 GB, free: 61.92 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat