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.957/1.957, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.752e-05/3.756e-05, allocations: 5.406 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 44.51 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.6129, allocations: 116.9 MB / 416.9 MB, free: 7.418 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.6133, allocations: 85.42 kB / 417 MB, free: 7.406 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.088/1.701, allocations: 192.8 MB / 0.5955 GB, free: 56.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.701, allocations: 0 / 0.5955 GB, free: 56.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001105/1.702, allocations: 205.3 kB / 0.5957 GB, free: 56.3 MB / 410.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.03743/1.74, allocations: 7.891 MB / 0.6034 GB, free: 53.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/1.74, allocations: 6.781 kB / 0.6034 GB, free: 53.46 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00533/1.745, allocations: 1.171 MB / 0.6046 GB, free: 53.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01622/1.762, allocations: 1.908 MB / 0.6064 GB, free: 52.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02706/1.789, allocations: 7.036 MB / 0.6133 GB, free: 49.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009386/1.79, allocations: 0.6461 MB / 0.6139 GB, free: 48.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00391/1.794, allocations: 0.8402 MB / 0.6147 GB, free: 48.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03811/1.832, allocations: 10.79 MB / 0.6253 GB, free: 43.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000493/1.832, allocations: 11.84 kB / 0.6253 GB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003501/1.836, allocations: 370.1 kB / 0.6256 GB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004855/1.836, allocations: 373.7 kB / 0.626 GB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03732/1.874, allocations: 8.604 MB / 0.6344 GB, free: 35.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1085/1.982, allocations: 35.99 MB / 0.6696 GB, free: 2.098 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3493/2.332, allocations: 16.67 MB / 0.6858 GB, free: 37.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01015/2.342, allocations: 3.364 MB / 0.6891 GB, free: 37.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03003/2.372, allocations: 9.509 MB / 0.6984 GB, free: 35.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.494e-05/2.372, allocations: 65.02 kB / 0.6985 GB, free: 35.33 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 6.101e-06/2.372, allocations: 4.688 kB / 0.6985 GB, free: 35.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=345): time 0.03682/2.409, allocations: 11.5 MB / 0.7097 GB, free: 33.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/2.409, allocations: 84.42 kB / 0.7098 GB, free: 33.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009517/2.418, allocations: 3.823 MB / 0.7135 GB, free: 33.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007266/2.419, allocations: 85.17 kB / 0.7136 GB, free: 33.22 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003371/2.423, allocations: 3.892 MB / 0.7174 GB, free: 31.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001667/2.424, allocations: 1.175 MB / 0.7185 GB, free: 30.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004752/2.425, allocations: 87.53 kB / 0.7186 GB, free: 30.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003043/2.425, allocations: 491.8 kB / 0.7191 GB, free: 30.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004567/2.43, allocations: 1.708 MB / 0.7208 GB, free: 30.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005889/2.436, allocations: 3.124 MB / 0.7238 GB, free: 28.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006189/2.442, allocations: 2.298 MB / 0.7261 GB, free: 28.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.478e-05/2.442, allocations: 13.62 kB / 0.7261 GB, free: 28.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=571) (initialization): time 0.01726/2.459, allocations: 5.988 MB / 0.7319 GB, free: 26.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.718e-05/2.459, allocations: 23.56 kB / 0.7319 GB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/2.459, allocations: 47.44 kB / 0.732 GB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003248/2.463, allocations: 0.7416 MB / 0.7327 GB, free: 26.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008064/2.471, allocations: 1.048 MB / 0.7337 GB, free: 26.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01684/2.488, allocations: 10.03 MB / 0.7435 GB, free: 34.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007043/2.495, allocations: 259.1 kB / 0.7438 GB, free: 34.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001173/2.496, allocations: 198.9 kB / 0.744 GB, free: 34.67 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 (518): * Single equations (assignments): 510 * 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,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001327/2.497, allocations: 394 kB / 0.7443 GB, free: 34.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001621/2.499, allocations: 482.2 kB / 0.7448 GB, free: 34.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/2.514, allocations: 5.052 MB / 0.7497 GB, free: 31.94 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.836e-05/2.514, allocations: 36.8 kB / 0.7498 GB, free: 31.94 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.021e-05/2.514, allocations: 10.81 kB / 0.7498 GB, free: 31.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-05/2.514, allocations: 15.05 kB / 0.7498 GB, free: 31.94 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03748/2.552, allocations: 12.4 MB / 0.7619 GB, free: 26.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.232e-05/2.552, allocations: 4.75 kB / 0.7619 GB, free: 26.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005476/2.557, allocations: 0.595 MB / 0.7625 GB, free: 26.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003938/2.561, allocations: 0.9052 MB / 0.7634 GB, free: 26.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000807/2.562, allocations: 89.94 kB / 0.7635 GB, free: 26.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02292/2.585, allocations: 13.93 MB / 0.7771 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.377e-06/2.585, allocations: 9.188 kB / 0.7771 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0194/2.605, allocations: 8.054 MB / 0.7849 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00398/2.609, allocations: 0.9632 MB / 0.7859 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001943/2.611, allocations: 70.31 kB / 0.786 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005692/2.617, allocations: 204.5 kB / 0.7861 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/2.618, allocations: 274.1 kB / 0.7864 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004438/2.618, allocations: 95.06 kB / 0.7865 GB, free: 10.42 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007986/2.626, allocations: 2.895 MB / 0.7893 GB, free: 9.297 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.893e-06/2.626, allocations: 0 / 0.7893 GB, free: 9.297 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009587/2.636, allocations: 1.524 MB / 0.7908 GB, free: 9.148 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 (269): * Single equations (assignments): 262 * 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.02239/2.658, allocations: 10.16 MB / 0.8007 GB, free: 1.566 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02447/2.683, allocations: 5.704 MB / 0.8063 GB, free: 14.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.474e-05/2.683, allocations: 4 kB / 0.8063 GB, free: 14.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009415/2.692, allocations: 3.162 MB / 0.8094 GB, free: 11.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009517/2.702, allocations: 1.052 MB / 0.8104 GB, free: 10.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05967/2.762, allocations: 14.33 MB / 0.8244 GB, free: 14.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01591/2.778, allocations: 5.21 MB / 0.8295 GB, free: 10.73 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01002/2.788, allocations: 1.045 MB / 0.8305 GB, free: 10.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01115/2.799, allocations: 3.302 MB / 0.8338 GB, free: 6.938 MB / 458.7 MB Notification: Performance of SimCode: time 1.834e-06/2.799, allocations: 4 kB / 0.8338 GB, free: 6.934 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6362/3.435, allocations: 124.2 MB / 0.955 GB, free: 48.08 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/3.436, allocations: 220.4 kB / 0.9553 GB, free: 47.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/11.48, allocations: 0 / 0.9553 GB, free: 47.84 MB / 458.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