Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.919/1.919, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.961e-05/3.968e-05, allocations: 8 kB / 292.8 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1283, allocations: 50.4 MB / 343.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5045/0.6329, allocations: 119.7 MB / 462.9 MB, free: 6.805 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003619/0.6333, allocations: 98.62 kB / 463 MB, free: 6.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9358/1.569, allocations: 169.8 MB / 0.618 GB, free: 73.68 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.569, allocations: 7.938 kB / 0.618 GB, free: 73.68 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006559/1.57, allocations: 171.8 kB / 0.6182 GB, free: 73.51 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.598, allocations: 6.707 MB / 0.6247 GB, free: 66.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/1.598, allocations: 12.03 kB / 0.6247 GB, free: 66.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004008/1.602, allocations: 0.9958 MB / 0.6257 GB, free: 65.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01321/1.615, allocations: 1.603 MB / 0.6273 GB, free: 64.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.021/1.636, allocations: 5.96 MB / 0.6331 GB, free: 58.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006613/1.637, allocations: 0.5299 MB / 0.6336 GB, free: 57.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002924/1.64, allocations: 0.7107 MB / 0.6343 GB, free: 56.81 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02956/1.669, allocations: 9.27 MB / 0.6433 GB, free: 47.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003086/1.67, allocations: 15.94 kB / 0.6434 GB, free: 47.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002146/1.672, allocations: 304 kB / 0.6437 GB, free: 47.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003754/1.672, allocations: 338.7 kB / 0.644 GB, free: 46.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0236/1.696, allocations: 7.456 MB / 0.6513 GB, free: 39.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07609/1.772, allocations: 30.64 MB / 0.6812 GB, free: 7.848 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6607/2.433, allocations: 15.98 MB / 0.6968 GB, free: 55.27 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009232/2.442, allocations: 3.057 MB / 0.6998 GB, free: 55.23 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02668/2.469, allocations: 8.253 MB / 0.7078 GB, free: 54.32 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.032e-05/2.469, allocations: 63.66 kB / 0.7079 GB, free: 54.28 MB / 442.8 MB Notification: Performance of pre-optimization done (n=286): time 5.671e-06/2.469, allocations: 0 / 0.7079 GB, free: 54.28 MB / 442.8 MB Notification: Performance of matching and sorting (n=294): time 0.02664/2.496, allocations: 8.451 MB / 0.7162 GB, free: 52.8 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.476e-05/2.496, allocations: 89.52 kB / 0.7162 GB, free: 52.73 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008757/2.504, allocations: 3.195 MB / 0.7194 GB, free: 52.48 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006169/2.505, allocations: 74.45 kB / 0.7194 GB, free: 52.45 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002914/2.508, allocations: 3.185 MB / 0.7225 GB, free: 51.06 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001431/2.509, allocations: 1.008 MB / 0.7235 GB, free: 50.42 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004151/2.51, allocations: 73.19 kB / 0.7236 GB, free: 50.42 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0002641/2.51, allocations: 449 kB / 0.724 GB, free: 50.11 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003767/2.514, allocations: 1.413 MB / 0.7254 GB, free: 50.11 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004789/2.519, allocations: 2.503 MB / 0.7278 GB, free: 48.83 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004975/2.524, allocations: 1.909 MB / 0.7297 GB, free: 48.78 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.494e-05/2.524, allocations: 13.22 kB / 0.7297 GB, free: 48.78 MB / 442.8 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.0133/2.537, allocations: 4.782 MB / 0.7344 GB, free: 48.29 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.381e-05/2.537, allocations: 19.44 kB / 0.7344 GB, free: 48.29 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.073e-05/2.537, allocations: 34.69 kB / 0.7344 GB, free: 48.29 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/2.539, allocations: 409.3 kB / 0.7348 GB, free: 48.25 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006778/2.546, allocations: 0.8657 MB / 0.7357 GB, free: 48.25 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008097/2.554, allocations: 7.331 MB / 0.7428 GB, free: 43.05 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005507/2.559, allocations: 188.8 kB / 0.743 GB, free: 43.04 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008572/2.56, allocations: 165 kB / 0.7432 GB, free: 43.04 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.0008891/2.561, allocations: 336.3 kB / 0.7435 GB, free: 42.91 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/2.563, allocations: 401.2 kB / 0.7439 GB, free: 42.71 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/2.575, allocations: 4.401 MB / 0.7482 GB, free: 42.24 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.995e-05/2.575, allocations: 29.59 kB / 0.7482 GB, free: 42.24 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-05/2.575, allocations: 13.5 kB / 0.7482 GB, free: 42.24 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.144e-05/2.575, allocations: 18.62 kB / 0.7482 GB, free: 42.23 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02896/2.604, allocations: 10.43 MB / 0.7584 GB, free: 37.98 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.084e-05/2.604, allocations: 4.844 kB / 0.7584 GB, free: 37.98 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00419/2.609, allocations: 457.8 kB / 0.7589 GB, free: 37.97 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003789/2.612, allocations: 0.879 MB / 0.7597 GB, free: 37.69 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005956/2.613, allocations: 75 kB / 0.7598 GB, free: 37.65 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02194/2.635, allocations: 16.27 MB / 0.7757 GB, free: 24.77 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/2.635, allocations: 5.219 kB / 0.7757 GB, free: 24.77 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01596/2.651, allocations: 6.721 MB / 0.7822 GB, free: 21.27 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003206/2.654, allocations: 0.8208 MB / 0.783 GB, free: 20.72 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001529/2.656, allocations: 70.08 kB / 0.7831 GB, free: 20.67 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004604/2.66, allocations: 155.8 kB / 0.7833 GB, free: 20.63 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009407/2.661, allocations: 222.4 kB / 0.7835 GB, free: 20.59 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003108/2.662, allocations: 91.25 kB / 0.7836 GB, free: 20.57 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.006178/2.668, allocations: 2.406 MB / 0.7859 GB, free: 19.63 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.232e-06/2.668, allocations: 0 / 0.7859 GB, free: 19.63 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.007428/2.675, allocations: 1.279 MB / 0.7872 GB, free: 19.5 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.01759/2.693, allocations: 8.801 MB / 0.7958 GB, free: 14.4 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.009966/2.703, allocations: 4.135 MB / 0.7998 GB, free: 12.14 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/2.703, allocations: 8.125 kB / 0.7998 GB, free: 12.13 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006874/2.71, allocations: 2.855 MB / 0.8026 GB, free: 9.465 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008899/2.719, allocations: 1.033 MB / 0.8036 GB, free: 8.668 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03936/2.758, allocations: 12.06 MB / 0.8154 GB, free: 14.16 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009842/2.768, allocations: 4.471 MB / 0.8197 GB, free: 10.81 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.006345/2.775, allocations: 0.8971 MB / 0.8206 GB, free: 10.2 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007179/2.782, allocations: 2.741 MB / 0.8233 GB, free: 7.645 MB / 458.8 MB Notification: Performance of SimCode: time 1.814e-06/2.782, allocations: 0 / 0.8233 GB, free: 7.645 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.619/3.401, allocations: 109.1 MB / 0.9298 GB, free: 105.1 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/3.401, allocations: 254.3 kB / 0.9301 GB, free: 104.8 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.58/9.981, allocations: 0 / 0.9301 GB, free: 104.8 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat