Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.892/1.892, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.991e-05/2.992e-05, allocations: 4 kB / 292.2 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 50.4 MB / 342.7 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4806/0.5832, allocations: 117 MB / 459.6 MB, free: 9.594 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003347/0.5836, allocations: 90.08 kB / 459.7 MB, free: 9.547 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2972/0.8808, allocations: 75.29 MB / 0.5224 GB, free: 1.648 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8809, allocations: 0 / 0.5224 GB, free: 1.648 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003496/0.8813, allocations: 91.88 kB / 0.5225 GB, free: 1.559 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.3553/1.237, allocations: 3.141 MB / 0.5256 GB, free: 93.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/1.237, allocations: 10.78 kB / 0.5256 GB, free: 93.56 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001686/1.238, allocations: 448.6 kB / 0.526 GB, free: 93.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00474/1.243, allocations: 0.5895 MB / 0.5266 GB, free: 93.31 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/1.256, allocations: 3.107 MB / 0.5296 GB, free: 92.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003519/1.256, allocations: 233.7 kB / 0.5299 GB, free: 92.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/1.257, allocations: 310.8 kB / 0.5302 GB, free: 92.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01282/1.27, allocations: 3.881 MB / 0.534 GB, free: 92.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001245/1.271, allocations: 7.516 kB / 0.534 GB, free: 92.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000468/1.271, allocations: 138.5 kB / 0.5341 GB, free: 92.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002276/1.271, allocations: 145.2 kB / 0.5342 GB, free: 92.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01079/1.282, allocations: 3.046 MB / 0.5372 GB, free: 92.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03334/1.315, allocations: 13.44 MB / 0.5503 GB, free: 89.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005661/1.321, allocations: 3.916 MB / 0.5542 GB, free: 86.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002443/1.324, allocations: 0.981 MB / 0.5551 GB, free: 86.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006541/1.33, allocations: 2.667 MB / 0.5577 GB, free: 85.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/1.33, allocations: 51.94 kB / 0.5578 GB, free: 85.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=107): time 3.607e-06/1.33, allocations: 3.5 kB / 0.5578 GB, free: 85.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.01573/1.346, allocations: 5.169 MB / 0.5628 GB, free: 84.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/1.346, allocations: 67.25 kB / 0.5629 GB, free: 84.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/1.349, allocations: 1.643 MB / 0.5645 GB, free: 83.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002373/1.35, allocations: 49.55 kB / 0.5645 GB, free: 83.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/1.351, allocations: 1.513 MB / 0.566 GB, free: 82.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000503/1.351, allocations: 490.7 kB / 0.5665 GB, free: 81.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/1.352, allocations: 38.59 kB / 0.5665 GB, free: 81.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/1.352, allocations: 382.8 kB / 0.5669 GB, free: 81.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/1.353, allocations: 0.7323 MB / 0.5676 GB, free: 81.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002008/1.355, allocations: 1.309 MB / 0.5689 GB, free: 80.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/1.358, allocations: 0.9806 MB / 0.5698 GB, free: 79.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-05/1.358, allocations: 7.625 kB / 0.5698 GB, free: 79.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005964/1.364, allocations: 2.339 MB / 0.5721 GB, free: 78.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/1.364, allocations: 18.61 kB / 0.5721 GB, free: 78.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.499e-05/1.364, allocations: 25.97 kB / 0.5722 GB, free: 78.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005241/1.364, allocations: 118.2 kB / 0.5723 GB, free: 78.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003451/1.368, allocations: 476.6 kB / 0.5727 GB, free: 78.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/1.369, allocations: 1.315 MB / 0.574 GB, free: 77.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/1.372, allocations: 110.8 kB / 0.5741 GB, free: 77.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/1.372, allocations: 81.12 kB / 0.5742 GB, free: 77.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (229): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004235/1.372, allocations: 221 kB / 0.5744 GB, free: 77.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004805/1.373, allocations: 206 kB / 0.5746 GB, free: 77.24 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004577/1.377, allocations: 1.916 MB / 0.5765 GB, free: 76.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.736e-05/1.377, allocations: 12.72 kB / 0.5765 GB, free: 76.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/1.377, allocations: 0 / 0.5765 GB, free: 76.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/1.377, allocations: 13.64 kB / 0.5765 GB, free: 76.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/1.389, allocations: 4.93 MB / 0.5813 GB, free: 74.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/1.389, allocations: 6.781 kB / 0.5813 GB, free: 74.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002574/1.391, allocations: 308.9 kB / 0.5816 GB, free: 74.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004447/1.392, allocations: 95.31 kB / 0.5817 GB, free: 74.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/1.392, allocations: 23.22 kB / 0.5817 GB, free: 74.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008866/1.393, allocations: 1.283 MB / 0.583 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/1.393, allocations: 2.438 kB / 0.583 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006311/1.399, allocations: 3.143 MB / 0.5861 GB, free: 71.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.401, allocations: 454 kB / 0.5865 GB, free: 70.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004071/1.401, allocations: 31.72 kB / 0.5865 GB, free: 70.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0018/1.403, allocations: 85.88 kB / 0.5866 GB, free: 70.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/1.403, allocations: 86.73 kB / 0.5867 GB, free: 70.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/1.403, allocations: 39.91 kB / 0.5867 GB, free: 70.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002581/1.406, allocations: 1.249 MB / 0.5879 GB, free: 70.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.193e-06/1.406, allocations: 2.938 kB / 0.5879 GB, free: 70.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002909/1.409, allocations: 0.5798 MB / 0.5885 GB, free: 70.31 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00728/1.416, allocations: 4.618 MB / 0.593 GB, free: 67.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004503/1.421, allocations: 2.096 MB / 0.5951 GB, free: 66.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.852e-06/1.421, allocations: 0.75 kB / 0.5951 GB, free: 66.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002195/1.423, allocations: 1.135 MB / 0.5962 GB, free: 66.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003695/1.427, allocations: 482.2 kB / 0.5966 GB, free: 65.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/1.441, allocations: 5.187 MB / 0.6017 GB, free: 63.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002648/1.444, allocations: 2.326 MB / 0.604 GB, free: 62.79 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003007/1.447, allocations: 0.5085 MB / 0.6045 GB, free: 62.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002488/1.449, allocations: 1.177 MB / 0.6056 GB, free: 61.78 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/1.449, allocations: 0 / 0.6056 GB, free: 61.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1174/1.567, allocations: 51.63 MB / 0.656 GB, free: 25.72 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/1.567, allocations: 228.2 kB / 0.6563 GB, free: 25.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.413/5.98, allocations: 4 kB / 0.6563 GB, free: 25.48 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat