Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.171/2.171, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.271e-05, allocations: 4 kB / 269.5 MB, free: 6.293 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.09902, allocations: 47.57 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4863/0.5853, allocations: 122.4 MB / 439.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.5857, allocations: 89.64 kB / 439.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.055/1.64, allocations: 193.1 MB / 0.6177 GB, free: 56.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.641, allocations: 4 kB / 0.6177 GB, free: 56.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008434/1.641, allocations: 210.6 kB / 0.6179 GB, free: 56.73 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03448/1.676, allocations: 7.909 MB / 0.6257 GB, free: 48.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/1.676, allocations: 8.031 kB / 0.6257 GB, free: 48.73 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00509/1.681, allocations: 1.173 MB / 0.6268 GB, free: 47.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01588/1.697, allocations: 1.901 MB / 0.6287 GB, free: 45.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02518/1.722, allocations: 7.049 MB / 0.6356 GB, free: 38.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007716/1.723, allocations: 0.6382 MB / 0.6362 GB, free: 37.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003583/1.727, allocations: 0.8513 MB / 0.637 GB, free: 37.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03628/1.763, allocations: 10.83 MB / 0.6476 GB, free: 25.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000406/1.763, allocations: 7.906 kB / 0.6476 GB, free: 25.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002816/1.766, allocations: 368 kB / 0.6479 GB, free: 25.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004035/1.767, allocations: 377.5 kB / 0.6483 GB, free: 25.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02818/1.795, allocations: 8.63 MB / 0.6567 GB, free: 16.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4546/2.249, allocations: 36.07 MB / 0.6919 GB, free: 41.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0318/2.281, allocations: 16.74 MB / 0.7083 GB, free: 28.91 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0137/2.295, allocations: 3.375 MB / 0.7116 GB, free: 28.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02779/2.323, allocations: 9.532 MB / 0.7209 GB, free: 27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.6e-05/2.323, allocations: 67.53 kB / 0.721 GB, free: 26.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=296): time 6.232e-06/2.323, allocations: 0 / 0.721 GB, free: 26.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=348): time 0.03678/2.36, allocations: 11.56 MB / 0.7323 GB, free: 24.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/2.36, allocations: 90.53 kB / 0.7323 GB, free: 24.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009544/2.37, allocations: 3.831 MB / 0.7361 GB, free: 24.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007913/2.37, allocations: 86.11 kB / 0.7362 GB, free: 24.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003478/2.374, allocations: 3.895 MB / 0.74 GB, free: 22.79 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001846/2.376, allocations: 1.188 MB / 0.7411 GB, free: 22.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004544/2.376, allocations: 87.12 kB / 0.7412 GB, free: 22.03 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002781/2.377, allocations: 484.1 kB / 0.7417 GB, free: 21.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004356/2.381, allocations: 1.725 MB / 0.7434 GB, free: 21.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005324/2.386, allocations: 3.133 MB / 0.7464 GB, free: 19.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005891/2.392, allocations: 2.304 MB / 0.7487 GB, free: 19.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.239e-05/2.392, allocations: 17.91 kB / 0.7487 GB, free: 19.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01773/2.41, allocations: 6.013 MB / 0.7546 GB, free: 18.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.562e-05/2.41, allocations: 27.64 kB / 0.7546 GB, free: 18.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/2.41, allocations: 46.69 kB / 0.7546 GB, free: 18.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00336/2.414, allocations: 0.7371 MB / 0.7553 GB, free: 18.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00822/2.422, allocations: 1.053 MB / 0.7564 GB, free: 18.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01478/2.437, allocations: 10.05 MB / 0.7662 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006747/2.444, allocations: 259 kB / 0.7664 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007529/2.444, allocations: 202.5 kB / 0.7666 GB, free: 10.35 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 (521): * Single equations (assignments): 513 * 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.0009939/2.445, allocations: 380.3 kB / 0.767 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/2.447, allocations: 490.3 kB / 0.7675 GB, free: 9.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01324/2.46, allocations: 5.076 MB / 0.7724 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-05/2.46, allocations: 32.62 kB / 0.7724 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.469e-05/2.46, allocations: 12.91 kB / 0.7725 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.809e-05/2.46, allocations: 24.89 kB / 0.7725 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03348/2.494, allocations: 12.44 MB / 0.7846 GB, free: 2.125 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.682e-05/2.494, allocations: 12.06 kB / 0.7846 GB, free: 2.125 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00535/2.499, allocations: 0.5994 MB / 0.7852 GB, free: 2.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003697/2.503, allocations: 0.9003 MB / 0.7861 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004166/2.503, allocations: 81.73 kB / 0.7862 GB, free: 1.762 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02392/2.527, allocations: 13.95 MB / 0.7998 GB, free: 7.258 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/2.527, allocations: 11.12 kB / 0.7998 GB, free: 7.254 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01911/2.546, allocations: 8.099 MB / 0.8077 GB, free: 1.594 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00376/2.55, allocations: 0.9525 MB / 0.8087 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001151/2.551, allocations: 79.89 kB / 0.8087 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004401/2.556, allocations: 212.3 kB / 0.8089 GB, free: 492 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008171/2.557, allocations: 275.1 kB / 0.8092 GB, free: 324 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003589/2.557, allocations: 98.84 kB / 0.8093 GB, free: 232 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01929/2.576, allocations: 3.616 MB / 0.8128 GB, free: 15.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.62e-07/2.576, allocations: 0 / 0.8128 GB, free: 15.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008933/2.585, allocations: 1.534 MB / 0.8143 GB, free: 13.86 MB / 458.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 (272): * Single equations (assignments): 265 * 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.0241/2.609, allocations: 10.23 MB / 0.8243 GB, free: 4.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01556/2.625, allocations: 5.151 MB / 0.8293 GB, free: 15.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.757e-05/2.625, allocations: 4 kB / 0.8294 GB, free: 15.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01016/2.635, allocations: 3.205 MB / 0.8325 GB, free: 12.49 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009484/2.645, allocations: 1.056 MB / 0.8335 GB, free: 11.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4451/3.09, allocations: 14.17 MB / 0.8473 GB, free: 98.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01424/3.104, allocations: 5.219 MB / 0.8524 GB, free: 97.69 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008711/3.113, allocations: 1.05 MB / 0.8535 GB, free: 97.65 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00855/3.122, allocations: 3.277 MB / 0.8567 GB, free: 97.64 MB / 474.7 MB Notification: Performance of SimCode: time 2.224e-06/3.122, allocations: 5.094 kB / 0.8567 GB, free: 97.64 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2842/3.406, allocations: 124.6 MB / 0.9784 GB, free: 35.36 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/3.406, allocations: 210.1 kB / 0.9786 GB, free: 35.13 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.797/11.2, allocations: 0 / 0.9786 GB, free: 35.13 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat