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.685/1.685, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.219e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2707, allocations: 38.77 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.7193, allocations: 106.9 MB / 370.8 MB, free: 48.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004181/0.7198, allocations: 87.22 kB / 370.9 MB, free: 48.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9087/1.628, allocations: 181.3 MB / 0.5393 GB, free: 44.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/1.629, allocations: 0 / 0.5393 GB, free: 44.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008347/1.629, allocations: 207.3 kB / 0.5395 GB, free: 44.96 MB / 378.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.03251/1.662, allocations: 7.605 MB / 0.5469 GB, free: 42.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/1.662, allocations: 11.25 kB / 0.5469 GB, free: 42.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004502/1.667, allocations: 1.096 MB / 0.548 GB, free: 42.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009697/1.676, allocations: 1.353 MB / 0.5493 GB, free: 41.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01966/1.696, allocations: 5.849 MB / 0.5551 GB, free: 40.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007332/1.697, allocations: 0.5945 MB / 0.5556 GB, free: 40.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003155/1.7, allocations: 0.7951 MB / 0.5564 GB, free: 40.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03272/1.733, allocations: 10.07 MB / 0.5662 GB, free: 39.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003994/1.733, allocations: 10.34 kB / 0.5663 GB, free: 39.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002536/1.736, allocations: 347.3 kB / 0.5666 GB, free: 39.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003819/1.736, allocations: 336.6 kB / 0.5669 GB, free: 39.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02511/1.761, allocations: 7.626 MB / 0.5744 GB, free: 39.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0828/1.844, allocations: 33.09 MB / 0.6067 GB, free: 22.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009495/1.854, allocations: 5.921 MB / 0.6124 GB, free: 18.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006876/1.861, allocations: 2.777 MB / 0.6152 GB, free: 17.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002749/1.861, allocations: 38.91 kB / 0.6152 GB, free: 17.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.225e-05/1.861, allocations: 72.19 kB / 0.6153 GB, free: 17.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=295): time 6.752e-06/1.861, allocations: 3.234 kB / 0.6153 GB, free: 17.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=353): time 0.03829/1.899, allocations: 11.61 MB / 0.6266 GB, free: 7.605 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.701e-05/1.899, allocations: 90.17 kB / 0.6267 GB, free: 7.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/1.91, allocations: 3.739 MB / 0.6303 GB, free: 4.125 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007333/1.911, allocations: 88.66 kB / 0.6304 GB, free: 4.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004165/1.915, allocations: 3.638 MB / 0.634 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.287/2.202, allocations: 1.182 MB / 0.6351 GB, free: 41.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004931/2.203, allocations: 83.78 kB / 0.6352 GB, free: 41.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003882/2.203, allocations: 473.1 kB / 0.6357 GB, free: 41.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005135/2.208, allocations: 1.718 MB / 0.6373 GB, free: 41.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005752/2.214, allocations: 2.949 MB / 0.6402 GB, free: 40.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006145/2.22, allocations: 2.288 MB / 0.6425 GB, free: 39.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.962e-05/2.22, allocations: 11.5 kB / 0.6425 GB, free: 39.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.01736/2.238, allocations: 6.024 MB / 0.6484 GB, free: 39.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.682e-05/2.238, allocations: 26.62 kB / 0.6484 GB, free: 39.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.464e-05/2.238, allocations: 40.16 kB / 0.6484 GB, free: 39.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003825/2.242, allocations: 0.9175 MB / 0.6493 GB, free: 39.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007064/2.249, allocations: 0.9514 MB / 0.6502 GB, free: 39.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01981/2.269, allocations: 12.26 MB / 0.6622 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006026/2.275, allocations: 227.1 kB / 0.6624 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/2.276, allocations: 187.2 kB / 0.6626 GB, free: 34.31 MB / 378.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 (469): * Single equations (assignments): 461 * 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,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001178/2.277, allocations: 367.4 kB / 0.663 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001519/2.278, allocations: 480.3 kB / 0.6634 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/2.293, allocations: 5.248 MB / 0.6685 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.276e-05/2.293, allocations: 34.97 kB / 0.6686 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.402e-05/2.293, allocations: 13.75 kB / 0.6686 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.924e-05/2.293, allocations: 15.66 kB / 0.6686 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03691/2.33, allocations: 14.28 MB / 0.6826 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.774e-05/2.33, allocations: 20.11 kB / 0.6826 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004288/2.334, allocations: 0.5549 MB / 0.6831 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004137/2.338, allocations: 1.076 MB / 0.6842 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000321/2.339, allocations: 86.14 kB / 0.6842 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02416/2.363, allocations: 15.72 MB / 0.6996 GB, free: 23.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.518e-05/2.363, allocations: 24.66 kB / 0.6996 GB, free: 23.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/2.381, allocations: 9.31 MB / 0.7087 GB, free: 17.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003328/2.384, allocations: 0.9658 MB / 0.7097 GB, free: 17.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/2.385, allocations: 83 kB / 0.7097 GB, free: 17.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004076/2.389, allocations: 201.6 kB / 0.7099 GB, free: 17.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007857/2.39, allocations: 291.3 kB / 0.7102 GB, free: 17.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003049/2.39, allocations: 109 kB / 0.7103 GB, free: 17.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006382/2.397, allocations: 2.848 MB / 0.7131 GB, free: 15.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.397, allocations: 0 / 0.7131 GB, free: 15.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007597/2.404, allocations: 1.458 MB / 0.7145 GB, free: 15.84 MB / 378.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 (263): * Single equations (assignments): 256 * 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.01979/2.424, allocations: 12.63 MB / 0.7268 GB, free: 7.445 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01233/2.437, allocations: 5.329 MB / 0.7321 GB, free: 5.031 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-05/2.437, allocations: 0 / 0.7321 GB, free: 5.031 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008842/2.445, allocations: 3.61 MB / 0.7356 GB, free: 3.258 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007934/2.453, allocations: 1.069 MB / 0.7366 GB, free: 2.973 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04788/2.501, allocations: 14.1 MB / 0.7504 GB, free: 9.629 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01325/2.515, allocations: 5.135 MB / 0.7554 GB, free: 5.828 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.009078/2.524, allocations: 0.919 MB / 0.7563 GB, free: 5.199 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01066/2.534, allocations: 3.133 MB / 0.7594 GB, free: 2.281 MB / 394.7 MB Notification: Performance of SimCode: time 1.844e-06/2.535, allocations: 4 kB / 0.7594 GB, free: 2.277 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6171/3.152, allocations: 122.8 MB / 0.8793 GB, free: 48.55 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/3.152, allocations: 220.3 kB / 0.8795 GB, free: 48.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.216/10.37, allocations: 5.969 kB / 0.8795 GB, free: 48.31 MB / 410.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