Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.05e-05/2.061e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2957, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2008/0.4966, allocations: 116.2 MB / 410.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/0.4969, allocations: 87.92 kB / 410.5 MB, free: 13.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.172/1.669, allocations: 190.4 MB / 0.5868 GB, free: 22.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.669, allocations: 0 / 0.5868 GB, free: 22.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007824/1.67, allocations: 207.4 kB / 0.587 GB, free: 22.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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03306/1.703, allocations: 7.884 MB / 0.5947 GB, free: 20.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/1.703, allocations: 7 kB / 0.5947 GB, free: 20.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0155/1.718, allocations: 1.91 MB / 0.5966 GB, free: 19.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02516/1.743, allocations: 7.031 MB / 0.6034 GB, free: 18.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005549/1.744, allocations: 279.1 kB / 0.6037 GB, free: 18.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003266/1.747, allocations: 0.5005 MB / 0.6042 GB, free: 18.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0254/1.773, allocations: 8.198 MB / 0.6122 GB, free: 18.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03365/1.806, allocations: 9.642 MB / 0.6216 GB, free: 17.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003997/1.807, allocations: 2.938 kB / 0.6216 GB, free: 17.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002538/1.809, allocations: 7.516 kB / 0.6216 GB, free: 17.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004494/1.81, allocations: 377.5 kB / 0.622 GB, free: 17.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08634/1.896, allocations: 34.34 MB / 0.6555 GB, free: 2.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02363/1.92, allocations: 16.56 MB / 0.6717 GB, free: 4.141 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009272/1.929, allocations: 3.226 MB / 0.6748 GB, free: 1.535 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02913/1.958, allocations: 9.245 MB / 0.6839 GB, free: 9.672 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.123e-05/1.959, allocations: 64.88 kB / 0.6839 GB, free: 9.598 MB / 410.7 MB Notification: Performance of pre-optimization done (n=295): time 6.382e-06/1.959, allocations: 4 kB / 0.6839 GB, free: 9.594 MB / 410.7 MB Notification: Performance of matching and sorting (n=347): time 0.04521/2.004, allocations: 12.1 MB / 0.6957 GB, free: 15.08 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.144e-05/2.004, allocations: 87.25 kB / 0.6958 GB, free: 14.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008216/2.012, allocations: 3.139 MB / 0.6989 GB, free: 12.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000698/2.013, allocations: 25.7 kB / 0.6989 GB, free: 12.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003762/2.017, allocations: 3.683 MB / 0.7025 GB, free: 8.805 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001853/2.019, allocations: 1.136 MB / 0.7036 GB, free: 7.762 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004043/2.019, allocations: 0 / 0.7036 GB, free: 7.762 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003606/2.019, allocations: 491 kB / 0.7041 GB, free: 7.324 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004209/2.024, allocations: 1.633 MB / 0.7057 GB, free: 5.809 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005712/2.029, allocations: 3.034 MB / 0.7086 GB, free: 2.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008018/2.037, allocations: 2.54 MB / 0.7111 GB, free: 200 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.789e-05/2.038, allocations: 12 kB / 0.7111 GB, free: 188 kB / 426.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.3238/2.361, allocations: 5.671 MB / 0.7167 GB, free: 65.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.438e-05/2.361, allocations: 24.34 kB / 0.7167 GB, free: 65.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000116/2.362, allocations: 49.72 kB / 0.7167 GB, free: 65.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003239/2.365, allocations: 0.7091 MB / 0.7174 GB, free: 65.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00786/2.373, allocations: 1.05 MB / 0.7185 GB, free: 65.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/2.386, allocations: 9.65 MB / 0.7279 GB, free: 60.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006057/2.392, allocations: 166.2 kB / 0.728 GB, free: 60.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00102/2.393, allocations: 204.2 kB / 0.7282 GB, free: 60.34 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.000948/2.394, allocations: 240.6 kB / 0.7285 GB, free: 60.24 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01389/2.408, allocations: 4.732 MB / 0.7331 GB, free: 59.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001799/2.41, allocations: 437.8 kB / 0.7335 GB, free: 59.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/2.424, allocations: 5.007 MB / 0.7384 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.291e-05/2.425, allocations: 33.56 kB / 0.7384 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.217e-05/2.425, allocations: 11.12 kB / 0.7384 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.438e-05/2.425, allocations: 16.55 kB / 0.7385 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03061/2.455, allocations: 11.24 MB / 0.7494 GB, free: 58.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-05/2.455, allocations: 3.875 kB / 0.7494 GB, free: 58.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005155/2.461, allocations: 0.6015 MB / 0.75 GB, free: 58.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00361/2.464, allocations: 0.8896 MB / 0.7509 GB, free: 58.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006137/2.465, allocations: 38.67 kB / 0.7509 GB, free: 58.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01925/2.484, allocations: 13.45 MB / 0.7641 GB, free: 52.06 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.064e-05/2.484, allocations: 5.75 kB / 0.7641 GB, free: 52.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02471/2.509, allocations: 7.915 MB / 0.7718 GB, free: 50.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003613/2.513, allocations: 0.893 MB / 0.7727 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002116/2.515, allocations: 22.67 kB / 0.7727 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005276/2.52, allocations: 148.9 kB / 0.7728 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001304/2.521, allocations: 274.5 kB / 0.7731 GB, free: 50.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006858/2.522, allocations: 102.3 kB / 0.7732 GB, free: 50.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006555/2.529, allocations: 2.312 MB / 0.7755 GB, free: 49.97 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.703e-06/2.529, allocations: 0 / 0.7755 GB, free: 49.97 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009081/2.538, allocations: 1.327 MB / 0.7767 GB, free: 49.97 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.02245/2.56, allocations: 9.961 MB / 0.7865 GB, free: 44.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01209/2.572, allocations: 4.981 MB / 0.7913 GB, free: 42.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-05/2.573, allocations: 0 / 0.7913 GB, free: 42.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00812/2.581, allocations: 3.118 MB / 0.7944 GB, free: 40.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007395/2.588, allocations: 0.7536 MB / 0.7951 GB, free: 40.21 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0495/2.638, allocations: 13.68 MB / 0.8085 GB, free: 35.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01106/2.649, allocations: 5.069 MB / 0.8134 GB, free: 32.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008425/2.657, allocations: 3.311 MB / 0.8167 GB, free: 29.44 MB / 426.7 MB Notification: Performance of SimCode: time 2.715e-06/2.657, allocations: 4 kB / 0.8167 GB, free: 29.44 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.279/8.936, allocations: 356.4 MB / 1.165 GB, free: 46.04 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat