Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.345e-05/3.342e-05, allocations: 4 kB / 292.3 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 50.41 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5363/0.6497, allocations: 137.1 MB / 479.8 MB, free: 5.441 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003631/0.6501, allocations: 100.9 kB / 479.9 MB, free: 5.387 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703/2.353, allocations: 321.5 MB / 0.7826 GB, free: 61.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.054e-06/2.353, allocations: 0 / 0.7826 GB, free: 61.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000737/2.354, allocations: 210.7 kB / 0.7828 GB, free: 61.18 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.04048/2.395, allocations: 8.42 MB / 0.791 GB, free: 58.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/2.395, allocations: 11.25 kB / 0.791 GB, free: 58.14 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007194/2.402, allocations: 1.53 MB / 0.7925 GB, free: 57.41 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04417/2.446, allocations: 3.914 MB / 0.7963 GB, free: 56.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0353/2.481, allocations: 7.334 MB / 0.8035 GB, free: 52.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00111/2.483, allocations: 0.6726 MB / 0.8041 GB, free: 52.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005169/2.488, allocations: 0.8931 MB / 0.805 GB, free: 52.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04672/2.535, allocations: 14.62 MB / 0.8193 GB, free: 41.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000497/2.535, allocations: 11.91 kB / 0.8193 GB, free: 41.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003421/2.539, allocations: 395 kB / 0.8197 GB, free: 41.45 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009725/2.54, allocations: 0.6899 MB / 0.8204 GB, free: 40.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03677/2.576, allocations: 12.39 MB / 0.8325 GB, free: 29.48 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4785/3.055, allocations: 47.97 MB / 0.8793 GB, free: 36.66 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03293/3.088, allocations: 28.4 MB / 0.907 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007351/3.095, allocations: 2.999 MB / 0.91 GB, free: 27.44 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006991/3.096, allocations: 238.1 kB / 0.9102 GB, free: 27.25 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.637e-05/3.096, allocations: 80.16 kB / 0.9103 GB, free: 27.21 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 7.314e-06/3.096, allocations: 0 / 0.9103 GB, free: 27.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03962/3.136, allocations: 11.31 MB / 0.9213 GB, free: 25.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/3.136, allocations: 92.97 kB / 0.9214 GB, free: 25.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/3.146, allocations: 3.121 MB / 0.9244 GB, free: 25.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009346/3.147, allocations: 88.7 kB / 0.9245 GB, free: 25.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004237/3.151, allocations: 4.031 MB / 0.9285 GB, free: 23.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002483/3.154, allocations: 1.349 MB / 0.9298 GB, free: 22.33 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008881/3.155, allocations: 123.2 kB / 0.9299 GB, free: 22.33 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001397/3.156, allocations: 0.5509 MB / 0.9304 GB, free: 38.01 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008741/3.165, allocations: 2.501 MB / 0.9329 GB, free: 38 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01135/3.176, allocations: 4.93 MB / 0.9377 GB, free: 34.97 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/3.188, allocations: 3.719 MB / 0.9413 GB, free: 34.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001289/3.188, allocations: 29.62 kB / 0.9414 GB, free: 34.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02441/3.213, allocations: 8.244 MB / 0.9494 GB, free: 34.49 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.488e-05/3.213, allocations: 40.34 kB / 0.9494 GB, free: 34.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/3.213, allocations: 82.38 kB / 0.9495 GB, free: 34.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004023/3.217, allocations: 0.8966 MB / 0.9504 GB, free: 34.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009735/3.227, allocations: 1.35 MB / 0.9517 GB, free: 34.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01643/3.243, allocations: 7.525 MB / 0.9591 GB, free: 32.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006819/3.25, allocations: 338.8 kB / 0.9594 GB, free: 32.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/3.251, allocations: 310 kB / 0.9597 GB, free: 32.91 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001363/3.253, allocations: 0.4907 MB / 0.9602 GB, free: 32.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/3.254, allocations: 406.7 kB / 0.9606 GB, free: 32.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01677/3.271, allocations: 5.85 MB / 0.9663 GB, free: 32.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.29e-05/3.271, allocations: 47.69 kB / 0.9663 GB, free: 32.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/3.271, allocations: 10.12 kB / 0.9663 GB, free: 32.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.637e-05/3.271, allocations: 24.81 kB / 0.9663 GB, free: 32.25 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03851/3.31, allocations: 15.3 MB / 0.9813 GB, free: 27.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.167e-05/3.31, allocations: 7.359 kB / 0.9813 GB, free: 27.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005523/3.315, allocations: 0.6823 MB / 0.982 GB, free: 27.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003297/3.318, allocations: 0.6896 MB / 0.9826 GB, free: 26.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006023/3.319, allocations: 85.14 kB / 0.9827 GB, free: 26.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01293/3.332, allocations: 6.15 MB / 0.9887 GB, free: 23.35 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/3.332, allocations: 11.72 kB / 0.9887 GB, free: 23.35 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01909/3.351, allocations: 8.918 MB / 0.9974 GB, free: 19.15 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003055/3.354, allocations: 0.8811 MB / 0.9983 GB, free: 18.62 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008757/3.355, allocations: 82.33 kB / 0.9984 GB, free: 18.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003544/3.359, allocations: 188.4 kB / 0.9986 GB, free: 18.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006549/3.359, allocations: 268.2 kB / 0.9988 GB, free: 18.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003352/3.36, allocations: 113.8 kB / 0.9989 GB, free: 18.45 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00501/3.365, allocations: 2.327 MB / 1.001 GB, free: 17.56 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.71e-07/3.365, allocations: 0 / 1.001 GB, free: 17.56 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008498/3.373, allocations: 1.599 MB / 1.003 GB, free: 17.38 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02192/3.395, allocations: 11.22 MB / 1.014 GB, free: 9.688 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01792/3.413, allocations: 6.218 MB / 1.02 GB, free: 4.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/3.413, allocations: 4 kB / 1.02 GB, free: 4.176 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008645/3.422, allocations: 2.794 MB / 1.023 GB, free: 1.637 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008036/3.43, allocations: 0.8496 MB / 1.023 GB, free: 0.9648 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06795/3.498, allocations: 16.16 MB / 1.039 GB, free: 2.996 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4348/3.933, allocations: 6.794 MB / 1.046 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01136/3.944, allocations: 1.866 MB / 1.048 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007857/3.952, allocations: 3.169 MB / 1.051 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.914e-06/3.952, allocations: 0 / 1.051 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2972/4.25, allocations: 122.5 MB / 1.17 GB, free: 53.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002646/4.25, allocations: 219.8 kB / 1.17 GB, free: 53.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.998/11.25, allocations: 0 / 1.17 GB, free: 53.66 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat