Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.774/1.774, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.497e-05/2.498e-05, allocations: 4 kB / 258.8 MB, free: 8.035 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2833, allocations: 44.5 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.0361/0.3194, allocations: 22.99 MB / 326.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01836/0.3378, allocations: 7.092 MB / 333.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004964/0.3428, allocations: 227.4 kB / 333.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00537/0.3483, allocations: 1.301 MB / 334.9 MB, free: 13.9 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009869/0.3582, allocations: 2.2 MB / 337.1 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005556/0.3637, allocations: 1.11 MB / 338.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01398/0.3777, allocations: 5.433 MB / 343.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009103/0.3869, allocations: 4.66 MB / 348.3 MB, free: 464 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005288/0.3922, allocations: 2.563 MB / 350.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007187/0.3995, allocations: 3.352 MB / 354.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003639/0.4032, allocations: 0.5817 MB / 354.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00177/0.405, allocations: 324 kB / 355.1 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002397/0.4074, allocations: 1.693 MB / 356.8 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003021/0.4104, allocations: 0.7578 MB / 357.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02119/0.4316, allocations: 14.26 MB / 371.9 MB, free: 8.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4317, allocations: 0 / 371.9 MB, free: 8.863 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4317, allocations: 0 / 371.9 MB, free: 8.863 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004458/0.4322, allocations: 4 kB / 371.9 MB, free: 8.859 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03351/0.4657, allocations: 8.534 MB / 380.4 MB, free: 236 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.4658, allocations: 8.031 kB / 380.4 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01748/0.4832, allocations: 2.077 MB / 382.5 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/0.4996, allocations: 5.413 MB / 387.9 MB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007441/0.5004, allocations: 0.6419 MB / 388.5 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002911/0.5033, allocations: 0.8319 MB / 389.4 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03553/0.5388, allocations: 11.29 MB / 400.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002684/0.5392, allocations: 11.89 kB / 400.7 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001674/0.5409, allocations: 356 kB / 401 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005304/0.5414, allocations: 377.5 kB / 401.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03048/0.5719, allocations: 9.61 MB / 411 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5724/1.144, allocations: 36.02 MB / 447 MB, free: 77.09 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02121/1.166, allocations: 16.81 MB / 463.8 MB, free: 61.31 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02118/1.187, allocations: 9.212 MB / 473 MB, free: 54.67 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.143e-05/1.187, allocations: 71.62 kB / 473.1 MB, free: 54.61 MB / 362.8 MB Notification: Performance of pre-optimization done (n=315): time 8.085e-06/1.187, allocations: 0 / 473.1 MB, free: 54.61 MB / 362.8 MB Notification: Performance of matching and sorting (n=369): time 0.05398/1.241, allocations: 16.55 MB / 489.7 MB, free: 41.54 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/1.241, allocations: 90.3 kB / 489.8 MB, free: 41.44 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007682/1.249, allocations: 3.913 MB / 493.7 MB, free: 37.53 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005842/1.249, allocations: 82.64 kB / 493.7 MB, free: 37.44 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002462/1.252, allocations: 3.846 MB / 497.6 MB, free: 33.57 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/1.253, allocations: 1.261 MB / 498.9 MB, free: 32.32 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003672/1.254, allocations: 88 kB / 498.9 MB, free: 32.23 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0002326/1.254, allocations: 487.9 kB / 499.4 MB, free: 31.75 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004908/1.259, allocations: 1.965 MB / 0.4896 GB, free: 29.78 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005308/1.264, allocations: 3.358 MB / 0.4929 GB, free: 25.78 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005559/1.27, allocations: 2.539 MB / 0.4954 GB, free: 23.23 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.459e-05/1.27, allocations: 12 kB / 0.4954 GB, free: 23.22 MB / 362.8 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.01566/1.285, allocations: 6.641 MB / 0.5019 GB, free: 16.51 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.607e-05/1.285, allocations: 24 kB / 0.5019 GB, free: 16.49 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-05/1.285, allocations: 44 kB / 0.502 GB, free: 16.45 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002987/1.288, allocations: 0.7679 MB / 0.5027 GB, free: 15.66 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007423/1.296, allocations: 1.08 MB / 0.5038 GB, free: 14.58 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01388/1.31, allocations: 10.58 MB / 0.5141 GB, free: 3.473 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005904/1.316, allocations: 247.7 kB / 0.5143 GB, free: 3.23 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005033/1.316, allocations: 200 kB / 0.5145 GB, free: 3.035 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 201 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (530): * Single equations (assignments): 522 * Array equations: 2 * 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 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005464/1.322, allocations: 2.52 MB / 0.517 GB, free: 0.5039 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.323, allocations: 490 kB / 0.5174 GB, free: 20 kB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01546/1.338, allocations: 5.654 MB / 0.523 GB, free: 10.28 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.41e-05/1.339, allocations: 36 kB / 0.523 GB, free: 10.24 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/1.339, allocations: 12 kB / 0.523 GB, free: 10.23 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.29e-05/1.339, allocations: 15.94 kB / 0.523 GB, free: 10.21 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03374/1.372, allocations: 13.71 MB / 0.5364 GB, free: 12.32 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.276e-05/1.372, allocations: 8 kB / 0.5364 GB, free: 12.31 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005445/1.378, allocations: 0.6482 MB / 0.5371 GB, free: 11.66 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/1.382, allocations: 0.9187 MB / 0.5379 GB, free: 10.73 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003279/1.382, allocations: 83.97 kB / 0.538 GB, free: 10.64 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02375/1.406, allocations: 14.32 MB / 0.552 GB, free: 11.67 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/1.406, allocations: 16 kB / 0.552 GB, free: 11.65 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02334/1.429, allocations: 8.998 MB / 0.5608 GB, free: 2.242 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003422/1.433, allocations: 0.9987 MB / 0.5618 GB, free: 1.219 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001316/1.434, allocations: 72 kB / 0.5619 GB, free: 1.148 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004428/1.439, allocations: 211.8 kB / 0.5621 GB, free: 0.9414 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008459/1.439, allocations: 290.2 kB / 0.5623 GB, free: 0.6562 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003636/1.44, allocations: 104 kB / 0.5624 GB, free: 0.5547 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.007243/1.447, allocations: 2.976 MB / 0.5653 GB, free: 13.58 MB / 426.8 MB Notification: Performance of sort global known variables: time 9.92e-07/1.447, allocations: 0 / 0.5653 GB, free: 13.58 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007125/1.454, allocations: 1.474 MB / 0.5668 GB, free: 12.11 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (291): * Single equations (assignments): 284 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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,(2,100.0%) 13,(4,93.8%) 33,(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.0009002/1.455, allocations: 245.2 kB / 0.567 GB, free: 11.87 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01538/1.471, allocations: 5.755 MB / 0.5726 GB, free: 6.012 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/1.471, allocations: 5.938 kB / 0.5726 GB, free: 6.008 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009549/1.48, allocations: 3.49 MB / 0.5761 GB, free: 2.445 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007691/1.488, allocations: 1.068 MB / 0.5771 GB, free: 1.375 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3008/1.789, allocations: 17.87 MB / 0.5945 GB, free: 136.3 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007941/1.797, allocations: 5.22 MB / 0.5996 GB, free: 135.4 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.006154/1.803, allocations: 1.055 MB / 0.6007 GB, free: 135.2 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/1.805, allocations: 318.3 kB / 0.601 GB, free: 135.2 MB / 426.8 MB Notification: Performance of SimCode: time 9.72e-07/1.805, allocations: 0 / 0.601 GB, free: 135.2 MB / 426.8 MB Notification: Performance of Templates: time 0.1645/1.969, allocations: 64.31 MB / 0.6638 GB, free: 76.38 MB / 426.8 MB