Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,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.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.654/1.654, allocations: 171.2 MB / 185.7 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/2.98e-05, allocations: 7.984 kB / 228.2 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08224, allocations: 38.77 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.03784/0.1201, allocations: 21.53 MB / 288.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.1389, allocations: 6.526 MB / 295 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005143/0.1441, allocations: 227.3 kB / 295.2 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005829/0.1499, allocations: 1.254 MB / 296.5 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009607/0.1596, allocations: 1.916 MB / 298.4 MB, free: 0.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.2221/0.3818, allocations: 1.059 MB / 299.4 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01443/0.3962, allocations: 5.174 MB / 304.6 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01188/0.4082, allocations: 4.739 MB / 309.3 MB, free: 5.484 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007805/0.416, allocations: 2.447 MB / 311.8 MB, free: 5.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008572/0.4246, allocations: 3.138 MB / 314.9 MB, free: 5.477 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005198/0.4299, allocations: 474.8 kB / 315.4 MB, free: 5.477 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002843/0.4328, allocations: 308.9 kB / 315.7 MB, free: 5.477 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005744/0.4386, allocations: 1.635 MB / 317.3 MB, free: 5.469 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006568/0.4452, allocations: 0.7295 MB / 318.1 MB, free: 5.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.021/0.4663, allocations: 13.78 MB / 331.8 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4664, allocations: 3.938 kB / 331.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.4664, allocations: 4 kB / 331.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0005562/0.467, allocations: 0 / 331.8 MB, free: 12.03 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.03418/0.5012, allocations: 8.202 MB / 340.1 MB, free: 4.496 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.5012, allocations: 11.97 kB / 340.1 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/0.5133, allocations: 1.529 MB / 341.6 MB, free: 2.984 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01713/0.5305, allocations: 5.108 MB / 346.7 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009093/0.5315, allocations: 0.5966 MB / 347.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003217/0.5347, allocations: 0.7989 MB / 348.1 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03822/0.573, allocations: 10.53 MB / 358.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000419/0.5734, allocations: 7.469 kB / 358.6 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002532/0.576, allocations: 339.5 kB / 359 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000528/0.5766, allocations: 344.3 kB / 359.3 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03045/0.607, allocations: 8.586 MB / 367.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09358/0.7007, allocations: 33.17 MB / 401.1 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01149/0.7122, allocations: 6.027 MB / 407.1 MB, free: 3.707 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004288/0.7127, allocations: 36.97 kB / 407.1 MB, free: 3.672 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.192e-05/0.7128, allocations: 64.88 kB / 407.2 MB, free: 3.598 MB / 330.7 MB Notification: Performance of pre-optimization done (n=295): time 8.707e-06/0.7128, allocations: 4 kB / 407.2 MB, free: 3.594 MB / 330.7 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[1] ; smee3.is[2] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=358): time 0.06143/0.7743, allocations: 16.4 MB / 423.6 MB, free: 3.016 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.7744, allocations: 86.2 kB / 423.7 MB, free: 2.918 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009656/0.784, allocations: 3.825 MB / 427.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007297/0.7848, allocations: 85.7 kB / 427.6 MB, free: 15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004058/0.7889, allocations: 3.621 MB / 431.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001988/0.7909, allocations: 1.216 MB / 432.4 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004184/0.7914, allocations: 84 kB / 432.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003882/0.7918, allocations: 479.2 kB / 433 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006052/0.7978, allocations: 1.937 MB / 434.9 MB, free: 7.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007777/0.8056, allocations: 3.172 MB / 438.1 MB, free: 3.938 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007887/0.8136, allocations: 2.501 MB / 440.6 MB, free: 1.461 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.913e-05/0.8137, allocations: 12 kB / 440.6 MB, free: 1.449 MB / 362.7 MB Notification: Performance of matching and sorting (n=547) (initialization): time 0.5159/1.33, allocations: 6.59 MB / 447.2 MB, free: 108.2 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.957e-05/1.33, allocations: 24.48 kB / 447.2 MB, free: 108.2 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.432e-05/1.33, allocations: 37.75 kB / 447.2 MB, free: 108.2 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00445/1.334, allocations: 1.06 MB / 448.3 MB, free: 107.9 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007427/1.342, allocations: 0.9494 MB / 449.2 MB, free: 107.9 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0238/1.366, allocations: 12.77 MB / 462 MB, free: 99.47 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005964/1.372, allocations: 232.2 kB / 462.2 MB, free: 99.4 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009336/1.373, allocations: 177.3 kB / 462.4 MB, free: 99.37 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 457 * 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: 3 * 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: 3 {(5,76.0%) 36,(4,93.8%) 17,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006963/1.38, allocations: 2.48 MB / 464.9 MB, free: 98.09 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001387/1.381, allocations: 481.1 kB / 465.4 MB, free: 98.09 MB / 362.8 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01707/1.398, allocations: 5.741 MB / 471.1 MB, free: 95.58 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.016e-05/1.398, allocations: 35.38 kB / 471.1 MB, free: 95.58 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.72e-05/1.398, allocations: 17.06 kB / 471.2 MB, free: 95.58 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.271e-05/1.398, allocations: 18.7 kB / 471.2 MB, free: 95.58 MB / 362.8 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03762/1.436, allocations: 14.37 MB / 485.5 MB, free: 88.67 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.706e-05/1.436, allocations: 7.938 kB / 485.6 MB, free: 88.67 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004792/1.441, allocations: 0.5667 MB / 486.1 MB, free: 88.23 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004354/1.445, allocations: 1.169 MB / 487.3 MB, free: 87.05 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000561/1.446, allocations: 87.92 kB / 487.4 MB, free: 86.96 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02636/1.472, allocations: 15.73 MB / 0.4913 GB, free: 70.9 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/1.472, allocations: 19.92 kB / 0.4913 GB, free: 70.88 MB / 362.8 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02081/1.493, allocations: 9.407 MB / 0.5005 GB, free: 61.01 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003379/1.497, allocations: 0.9755 MB / 0.5015 GB, free: 60.01 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001748/1.498, allocations: 81.2 kB / 0.5016 GB, free: 59.93 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004999/1.503, allocations: 207.8 kB / 0.5017 GB, free: 59.73 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001137/1.504, allocations: 286.1 kB / 0.502 GB, free: 59.45 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004297/1.505, allocations: 99.98 kB / 0.5021 GB, free: 59.35 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.007442/1.512, allocations: 2.928 MB / 0.505 GB, free: 56.42 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.112e-06/1.512, allocations: 0 / 0.505 GB, free: 56.42 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.007432/1.52, allocations: 1.421 MB / 0.5064 GB, free: 55 MB / 362.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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.is[3],smee3.stator.zeroInductor.i0,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 254 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,93.8%) 17,(4,93.8%) 33,(8,50.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001006/1.521, allocations: 220.9 kB / 0.5066 GB, free: 54.78 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.01566/1.537, allocations: 5.834 MB / 0.5123 GB, free: 48.86 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/1.537, allocations: 8.25 kB / 0.5123 GB, free: 48.85 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01019/1.547, allocations: 3.672 MB / 0.5159 GB, free: 45.12 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008022/1.555, allocations: 1.065 MB / 0.5169 GB, free: 44.06 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03913/1.594, allocations: 17.44 MB / 0.5339 GB, free: 26.52 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009356/1.604, allocations: 5.156 MB / 0.539 GB, free: 21.33 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.005917/1.61, allocations: 0.9259 MB / 0.5399 GB, free: 20.4 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001875/1.611, allocations: 291.3 kB / 0.5402 GB, free: 20.11 MB / 362.8 MB Notification: Performance of SimCode: time 1.272e-06/1.611, allocations: 0 / 0.5402 GB, free: 20.11 MB / 362.8 MB Notification: Performance of Templates: time 0.4625/2.074, allocations: 65.1 MB / 0.6037 GB, free: 98.93 MB / 378.8 MB