Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.028e-05/3.04e-05, allocations: 4 kB / 292.3 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 50.4 MB / 342.7 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5155/0.6204, allocations: 119.7 MB / 462.4 MB, free: 7.168 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/0.6208, allocations: 108.9 kB / 462.5 MB, free: 7.105 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9078/1.529, allocations: 169.8 MB / 0.6175 GB, free: 73.87 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.529, allocations: 0 / 0.6175 GB, free: 73.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006695/1.529, allocations: 179.7 kB / 0.6177 GB, free: 73.69 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02789/1.557, allocations: 6.707 MB / 0.6242 GB, free: 66.9 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/1.557, allocations: 8.031 kB / 0.6242 GB, free: 66.89 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003828/1.561, allocations: 0.9957 MB / 0.6252 GB, free: 65.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0132/1.574, allocations: 1.603 MB / 0.6267 GB, free: 64.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02114/1.596, allocations: 5.948 MB / 0.6326 GB, free: 58.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007016/1.596, allocations: 0.5338 MB / 0.6331 GB, free: 57.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002926/1.599, allocations: 0.7107 MB / 0.6338 GB, free: 57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02925/1.629, allocations: 9.267 MB / 0.6428 GB, free: 47.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003284/1.629, allocations: 15.97 kB / 0.6428 GB, free: 47.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002241/1.631, allocations: 304 kB / 0.6431 GB, free: 47.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003805/1.632, allocations: 342.7 kB / 0.6435 GB, free: 46.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02376/1.655, allocations: 7.464 MB / 0.6507 GB, free: 39.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07681/1.732, allocations: 30.64 MB / 0.6807 GB, free: 8.043 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6717/2.404, allocations: 15.98 MB / 0.6963 GB, free: 55.35 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009253/2.413, allocations: 3.059 MB / 0.6993 GB, free: 55.3 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02596/2.439, allocations: 8.256 MB / 0.7073 GB, free: 54.39 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.894e-05/2.439, allocations: 64.22 kB / 0.7074 GB, free: 54.35 MB / 442.8 MB Notification: Performance of pre-optimization done (n=286): time 5.821e-06/2.439, allocations: 0 / 0.7074 GB, free: 54.35 MB / 442.8 MB Notification: Performance of matching and sorting (n=294): time 0.02432/2.464, allocations: 8.458 MB / 0.7156 GB, free: 52.88 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/2.464, allocations: 82.59 kB / 0.7157 GB, free: 52.81 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007565/2.471, allocations: 3.19 MB / 0.7188 GB, free: 52.55 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006045/2.472, allocations: 74.7 kB / 0.7189 GB, free: 52.52 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002567/2.475, allocations: 3.186 MB / 0.722 GB, free: 51.14 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001332/2.476, allocations: 1.012 MB / 0.723 GB, free: 50.5 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003557/2.476, allocations: 77.38 kB / 0.7231 GB, free: 50.5 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0002218/2.477, allocations: 449.4 kB / 0.7235 GB, free: 50.2 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/2.48, allocations: 1.413 MB / 0.7249 GB, free: 50.19 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004227/2.484, allocations: 2.502 MB / 0.7273 GB, free: 48.91 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004884/2.489, allocations: 1.91 MB / 0.7292 GB, free: 48.85 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.388e-05/2.489, allocations: 7.938 kB / 0.7292 GB, free: 48.85 MB / 442.8 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.01317/2.503, allocations: 4.782 MB / 0.7339 GB, free: 48.37 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.267e-05/2.503, allocations: 21.19 kB / 0.7339 GB, free: 48.37 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.199e-05/2.503, allocations: 38.88 kB / 0.7339 GB, free: 48.37 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/2.504, allocations: 401.1 kB / 0.7343 GB, free: 48.32 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006646/2.511, allocations: 0.8699 MB / 0.7352 GB, free: 48.32 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007972/2.519, allocations: 7.327 MB / 0.7423 GB, free: 43.13 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005461/2.524, allocations: 186.9 kB / 0.7425 GB, free: 43.12 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000658/2.525, allocations: 166.2 kB / 0.7426 GB, free: 43.12 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 446 * 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: 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008388/2.526, allocations: 332.5 kB / 0.743 GB, free: 42.99 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001174/2.527, allocations: 405.6 kB / 0.7434 GB, free: 42.79 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/2.54, allocations: 4.392 MB / 0.7476 GB, free: 42.31 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.502e-05/2.54, allocations: 33.66 kB / 0.7477 GB, free: 42.31 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-05/2.54, allocations: 16.81 kB / 0.7477 GB, free: 42.31 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-05/2.54, allocations: 18.44 kB / 0.7477 GB, free: 42.31 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0283/2.568, allocations: 10.42 MB / 0.7579 GB, free: 38.09 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.776e-05/2.568, allocations: 6.5 kB / 0.7579 GB, free: 38.09 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004145/2.572, allocations: 456.8 kB / 0.7583 GB, free: 38.07 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003708/2.576, allocations: 0.883 MB / 0.7592 GB, free: 37.79 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005584/2.577, allocations: 79.48 kB / 0.7593 GB, free: 37.75 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02207/2.599, allocations: 16.28 MB / 0.7752 GB, free: 24.87 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/2.599, allocations: 4.219 kB / 0.7752 GB, free: 24.87 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01562/2.614, allocations: 6.716 MB / 0.7817 GB, free: 21.36 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002992/2.617, allocations: 0.817 MB / 0.7825 GB, free: 20.82 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/2.619, allocations: 78.72 kB / 0.7826 GB, free: 20.77 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003837/2.623, allocations: 156.3 kB / 0.7827 GB, free: 20.72 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006349/2.623, allocations: 223.3 kB / 0.783 GB, free: 20.68 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002708/2.624, allocations: 81.05 kB / 0.783 GB, free: 20.66 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0054/2.629, allocations: 2.414 MB / 0.7854 GB, free: 19.73 MB / 442.8 MB Notification: Performance of sort global known variables: time 7.92e-07/2.629, allocations: 1.406 kB / 0.7854 GB, free: 19.73 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006894/2.636, allocations: 1.278 MB / 0.7866 GB, free: 19.59 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01675/2.653, allocations: 8.798 MB / 0.7952 GB, free: 14.5 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.009496/2.662, allocations: 4.136 MB / 0.7993 GB, free: 12.23 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/2.662, allocations: 320 / 0.7993 GB, free: 12.23 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006684/2.669, allocations: 2.862 MB / 0.8021 GB, free: 9.562 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008567/2.678, allocations: 1.03 MB / 0.8031 GB, free: 8.762 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03998/2.718, allocations: 12.24 MB / 0.815 GB, free: 14.74 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008194/2.726, allocations: 4.473 MB / 0.8194 GB, free: 11.39 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.005832/2.732, allocations: 0.8922 MB / 0.8203 GB, free: 10.77 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006434/2.738, allocations: 2.745 MB / 0.8229 GB, free: 8.215 MB / 458.8 MB Notification: Performance of SimCode: time 1.753e-06/2.738, allocations: 0 / 0.8229 GB, free: 8.215 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6022/3.34, allocations: 108.8 MB / 0.9292 GB, free: 104.9 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002522/3.341, allocations: 251.6 kB / 0.9295 GB, free: 104.6 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.843/10.18, allocations: 0 / 0.9295 GB, free: 104.6 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat