Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.638/1.638, allocations: 171.2 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.968e-05/2.975e-05, allocations: 4 kB / 219.6 MB, free: 6.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3503, allocations: 38.76 MB / 258.4 MB, free: 12.29 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.5503, allocations: 106.3 MB / 364.6 MB, free: 3.531 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.5507, allocations: 83.95 kB / 364.7 MB, free: 3.449 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.101/1.652, allocations: 179.1 MB / 0.5311 GB, free: 19.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.652, allocations: 0 / 0.5311 GB, free: 19.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0009433/1.653, allocations: 207 kB / 0.5312 GB, free: 19.44 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.03458/1.688, allocations: 7.6 MB / 0.5387 GB, free: 16.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/1.688, allocations: 8.406 kB / 0.5387 GB, free: 16.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009937/1.698, allocations: 1.356 MB / 0.54 GB, free: 16.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02185/1.719, allocations: 5.844 MB / 0.5457 GB, free: 15.19 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005753/1.72, allocations: 268.2 kB / 0.546 GB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003432/1.724, allocations: 487 kB / 0.5464 GB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02482/1.748, allocations: 7.258 MB / 0.5535 GB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0341/1.783, allocations: 8.961 MB / 0.5623 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005547/1.783, allocations: 3.906 kB / 0.5623 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00283/1.786, allocations: 6 kB / 0.5623 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004357/1.787, allocations: 341.8 kB / 0.5626 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08907/1.876, allocations: 31.52 MB / 0.5934 GB, free: 4.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01095/1.887, allocations: 5.832 MB / 0.5991 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008094/1.895, allocations: 2.69 MB / 0.6017 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004735/1.895, allocations: 41.14 kB / 0.6017 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.247e-05/1.895, allocations: 72.67 kB / 0.6018 GB, free: 12.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=297): time 6.612e-06/1.895, allocations: 0 / 0.6018 GB, free: 12.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=355): time 0.04312/1.939, allocations: 10.95 MB / 0.6125 GB, free: 2.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/1.939, allocations: 94.14 kB / 0.6126 GB, free: 2.113 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2946/2.233, allocations: 3.127 MB / 0.6157 GB, free: 46.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007904/2.234, allocations: 26.98 kB / 0.6157 GB, free: 46.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00394/2.238, allocations: 3.637 MB / 0.6192 GB, free: 45.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001806/2.24, allocations: 1.158 MB / 0.6204 GB, free: 45.17 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004299/2.24, allocations: 0 / 0.6204 GB, free: 45.17 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003281/2.241, allocations: 475.1 kB / 0.6208 GB, free: 44.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004787/2.246, allocations: 1.641 MB / 0.6224 GB, free: 44.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00606/2.252, allocations: 2.87 MB / 0.6252 GB, free: 43.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005958/2.258, allocations: 2.192 MB / 0.6274 GB, free: 43.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.349e-05/2.258, allocations: 14.81 kB / 0.6274 GB, free: 43.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=543) (initialization): time 0.01773/2.276, allocations: 5.654 MB / 0.6329 GB, free: 42.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/2.276, allocations: 21.25 kB / 0.6329 GB, free: 42.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.496e-05/2.276, allocations: 41.38 kB / 0.633 GB, free: 42.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003932/2.28, allocations: 0.8933 MB / 0.6338 GB, free: 42.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007187/2.287, allocations: 0.9519 MB / 0.6348 GB, free: 42.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01989/2.307, allocations: 11.82 MB / 0.6463 GB, free: 37.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005786/2.313, allocations: 136.8 kB / 0.6464 GB, free: 37.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/2.314, allocations: 188.4 kB / 0.6466 GB, free: 37.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (471): * Single equations (assignments): 463 * 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 {(4,93.8%) 19,(1,100.0%) 5,(4,93.8%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001039/2.315, allocations: 227.2 kB / 0.6468 GB, free: 37.41 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01322/2.328, allocations: 4.659 MB / 0.6514 GB, free: 36.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002359/2.331, allocations: 432 kB / 0.6518 GB, free: 36.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01491/2.346, allocations: 4.897 MB / 0.6566 GB, free: 36.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.507e-05/2.346, allocations: 37.77 kB / 0.6566 GB, free: 36.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.435e-05/2.346, allocations: 15.94 kB / 0.6566 GB, free: 36.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-05/2.346, allocations: 16.97 kB / 0.6566 GB, free: 36.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03476/2.381, allocations: 12.92 MB / 0.6693 GB, free: 33.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.194e-05/2.381, allocations: 11.28 kB / 0.6693 GB, free: 33.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004605/2.385, allocations: 0.5621 MB / 0.6698 GB, free: 33.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004341/2.39, allocations: 1.055 MB / 0.6708 GB, free: 32.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006996/2.39, allocations: 36.28 kB / 0.6709 GB, free: 32.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02385/2.414, allocations: 15.14 MB / 0.6857 GB, free: 21.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.688e-05/2.414, allocations: 14.84 kB / 0.6857 GB, free: 21.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01646/2.431, allocations: 8.717 MB / 0.6942 GB, free: 16.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003303/2.434, allocations: 0.9122 MB / 0.6951 GB, free: 16.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001653/2.436, allocations: 20.88 kB / 0.6951 GB, free: 16.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004783/2.441, allocations: 147.6 kB / 0.6952 GB, free: 16.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/2.442, allocations: 297.3 kB / 0.6955 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003261/2.442, allocations: 97.94 kB / 0.6956 GB, free: 15.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005761/2.448, allocations: 2.274 MB / 0.6978 GB, free: 14.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.335e-06/2.448, allocations: 0 / 0.6978 GB, free: 14.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008743/2.457, allocations: 1.268 MB / 0.6991 GB, free: 14.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.port_n.Phi.re,smeeM.stator.port_n.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.port_n.Phi.re,smee3.stator.port_n.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 (264): * Single equations (assignments): 257 * 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 {(4,93.8%) 19,(4,93.8%) 32,(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02068/2.478, allocations: 12.16 MB / 0.711 GB, free: 6.695 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01314/2.491, allocations: 5.198 MB / 0.716 GB, free: 4.172 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.328e-05/2.491, allocations: 3.531 kB / 0.716 GB, free: 4.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009228/2.5, allocations: 3.542 MB / 0.7195 GB, free: 2.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007497/2.508, allocations: 0.771 MB / 0.7202 GB, free: 1.457 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05248/2.56, allocations: 13.93 MB / 0.7338 GB, free: 6.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01329/2.574, allocations: 5.132 MB / 0.7389 GB, free: 2.273 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006425/2.58, allocations: 0.8736 MB / 0.7397 GB, free: 1.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01254/2.593, allocations: 3.344 MB / 0.743 GB, free: 15.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.783e-06/2.593, allocations: 0 / 0.743 GB, free: 15.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5488/3.141, allocations: 104.3 MB / 0.8448 GB, free: 53.54 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/3.142, allocations: 176.5 kB / 0.845 GB, free: 53.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.252/9.394, allocations: 3.938 kB / 0.845 GB, free: 53.35 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat