Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|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.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.662/1.662, allocations: 171.2 MB / 185.7 MB, free: 1.387 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.054e-05/3.059e-05, allocations: 7.938 kB / 228.2 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08146/0.08152, allocations: 38.77 MB / 266.9 MB, free: 476 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.03113/0.1127, allocations: 18.01 MB / 284.9 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.1286, allocations: 5.827 MB / 290.8 MB, free: 8.539 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00412/0.1327, allocations: 171.5 kB / 290.9 MB, free: 8.371 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004573/0.1374, allocations: 1.029 MB / 292 MB, free: 7.336 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008053/0.1455, allocations: 1.709 MB / 293.7 MB, free: 5.621 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004495/0.15, allocations: 0.9059 MB / 294.6 MB, free: 4.715 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01025/0.1603, allocations: 3.593 MB / 298.2 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2365/0.3968, allocations: 2.834 MB / 301 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004513/0.4014, allocations: 1.731 MB / 302.7 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006273/0.4078, allocations: 2.272 MB / 305 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003854/0.4117, allocations: 442.7 kB / 305.4 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002004/0.4137, allocations: 221.3 kB / 305.7 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002586/0.4163, allocations: 1.269 MB / 306.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002872/0.4192, allocations: 0.5115 MB / 307.4 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0132/0.4325, allocations: 8.917 MB / 316.4 MB, free: 2.461 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.4325, allocations: 5.25 kB / 316.4 MB, free: 2.457 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.4326, allocations: 4 kB / 316.4 MB, free: 2.453 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0004056/0.433, allocations: 0 / 316.4 MB, free: 2.453 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.02052/0.4535, allocations: 5.52 MB / 321.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4536, allocations: 9.594 kB / 321.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00699/0.4606, allocations: 0.9676 MB / 322.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01089/0.4715, allocations: 3.442 MB / 326.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003763/0.4719, allocations: 409.7 kB / 326.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00164/0.4736, allocations: 0.526 MB / 327.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.495, allocations: 6.842 MB / 334.1 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001943/0.4953, allocations: 11.89 kB / 334.1 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007999/0.4961, allocations: 223.5 kB / 334.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004146/0.4965, allocations: 249.4 kB / 334.5 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01796/0.5145, allocations: 5.618 MB / 340.2 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05876/0.5733, allocations: 22.52 MB / 362.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00818/0.5815, allocations: 4.366 MB / 367 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005124/0.5821, allocations: 142.7 kB / 367.2 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.078e-05/0.5822, allocations: 57.22 kB / 367.2 MB, free: 9.336 MB / 298.7 MB Notification: Performance of pre-optimization done (n=242): time 6.062e-06/0.5822, allocations: 4 kB / 367.2 MB, free: 9.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=288): time 0.06473/0.6469, allocations: 15.33 MB / 382.6 MB, free: 9.801 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.6471, allocations: 81.64 kB / 382.7 MB, free: 9.707 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008067/0.6551, allocations: 2.914 MB / 385.6 MB, free: 6.805 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000623/0.6558, allocations: 77.7 kB / 385.6 MB, free: 6.723 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003145/0.659, allocations: 2.534 MB / 388.2 MB, free: 4.172 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001725/0.6608, allocations: 0.9825 MB / 389.2 MB, free: 3.195 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003884/0.6612, allocations: 71.59 kB / 389.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003817/0.6616, allocations: 449.5 kB / 389.7 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005405/0.667, allocations: 1.578 MB / 391.2 MB, free: 1.105 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006449/0.6735, allocations: 2.642 MB / 393.9 MB, free: 14.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0063/0.6799, allocations: 2.029 MB / 395.9 MB, free: 12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.406e-05/0.68, allocations: 12 kB / 395.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=454) (initialization): time 0.01748/0.6975, allocations: 5.503 MB / 401.4 MB, free: 6.602 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.984e-05/0.6976, allocations: 20 kB / 401.4 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.932e-05/0.6977, allocations: 32 kB / 401.5 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003301/0.701, allocations: 0.7598 MB / 402.2 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008014/0.709, allocations: 0.8344 MB / 403.1 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03051/0.7396, allocations: 10.61 MB / 413.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00819/0.7479, allocations: 223.2 kB / 413.9 MB, free: 9.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/0.7491, allocations: 156 kB / 414.1 MB, free: 9.547 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (406): * Single equations (assignments): 396 * Array equations: 4 * 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 {(3,100.0%) 12,(1,100.0%) 3,(4,93.8%) 17,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007955/0.7571, allocations: 1.587 MB / 415.6 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002237/0.7594, allocations: 391.3 kB / 416 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0244/0.7839, allocations: 4.677 MB / 420.7 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/0.784, allocations: 32 kB / 420.7 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.328e-05/0.7841, allocations: 8 kB / 420.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001117/0.7843, allocations: 19.94 kB / 420.8 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04554/0.8298, allocations: 10.88 MB / 431.6 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.362e-05/0.8299, allocations: 16.16 kB / 431.6 MB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004365/0.8343, allocations: 0.504 MB / 432.2 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003696/0.838, allocations: 0.8125 MB / 433 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005192/0.8386, allocations: 71.97 kB / 433 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2594/1.098, allocations: 14.07 MB / 447.1 MB, free: 112.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/1.098, allocations: 11.16 kB / 447.1 MB, free: 112.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0205/1.119, allocations: 7.856 MB / 455 MB, free: 108.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002947/1.122, allocations: 0.7736 MB / 455.7 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001487/1.123, allocations: 67.67 kB / 455.8 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004102/1.127, allocations: 184.4 kB / 456 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007918/1.128, allocations: 221.1 kB / 456.2 MB, free: 108 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003052/1.128, allocations: 84.38 kB / 456.3 MB, free: 108 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005356/1.134, allocations: 2.229 MB / 458.5 MB, free: 107.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.134, allocations: 0 / 458.5 MB, free: 107.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006098/1.14, allocations: 1.062 MB / 459.6 MB, free: 107.1 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 17,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001027/1.141, allocations: 222.4 kB / 459.8 MB, free: 106.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01285/1.154, allocations: 4.805 MB / 464.6 MB, free: 104.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.334e-05/1.154, allocations: 3.656 kB / 464.6 MB, free: 104.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009855/1.164, allocations: 3.018 MB / 467.6 MB, free: 103.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008923/1.173, allocations: 0.8283 MB / 468.5 MB, free: 103 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03674/1.21, allocations: 12.29 MB / 480.7 MB, free: 93.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008036/1.218, allocations: 3.572 MB / 484.3 MB, free: 90.97 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006625/1.224, allocations: 0.7744 MB / 485.1 MB, free: 90.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002138/1.227, allocations: 238.9 kB / 485.3 MB, free: 90.17 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/1.227, allocations: 0 / 485.3 MB, free: 90.17 MB / 362.7 MB Notification: Performance of Templates: time 0.178/1.405, allocations: 50.04 MB / 0.5228 GB, free: 40.96 MB / 362.7 MB