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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.657/1.657, allocations: 171.1 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.94e-05/2.936e-05, allocations: 0 / 228.1 MB, free: 7.961 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08271/0.08277, allocations: 38.78 MB / 266.9 MB, free: 1.109 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.03634/0.1192, allocations: 21.52 MB / 288.4 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01864/0.1379, allocations: 6.522 MB / 294.9 MB, free: 4.969 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005537/0.1435, allocations: 227.3 kB / 295.2 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005873/0.1494, allocations: 1.251 MB / 296.4 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.1595, allocations: 1.92 MB / 298.3 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006397/0.1659, allocations: 1.068 MB / 299.4 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2435/0.4095, allocations: 5.172 MB / 304.6 MB, free: 5.457 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01256/0.4221, allocations: 4.739 MB / 309.3 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008355/0.4305, allocations: 2.447 MB / 311.8 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00932/0.4399, allocations: 3.135 MB / 314.9 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005356/0.4453, allocations: 481.2 kB / 315.4 MB, free: 4.801 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002935/0.4483, allocations: 308.5 kB / 315.7 MB, free: 4.801 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003885/0.4522, allocations: 1.628 MB / 317.3 MB, free: 4.797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00491/0.4572, allocations: 0.7322 MB / 318 MB, free: 4.797 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02156/0.4788, allocations: 13.78 MB / 331.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.4789, allocations: 0 / 331.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4789, allocations: 1.406 kB / 331.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0006133/0.4795, allocations: 0 / 331.8 MB, free: 11.78 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.03624/0.5158, allocations: 8.202 MB / 340 MB, free: 4.246 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.5158, allocations: 12.03 kB / 340 MB, free: 4.234 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01205/0.5279, allocations: 1.526 MB / 341.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01741/0.5453, allocations: 5.109 MB / 346.7 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009341/0.5463, allocations: 0.6007 MB / 347.3 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00343/0.5498, allocations: 0.7956 MB / 348.1 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0392/0.589, allocations: 10.53 MB / 358.6 MB, free: 4.891 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004458/0.5896, allocations: 15.89 kB / 358.6 MB, free: 4.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002777/0.5924, allocations: 336 kB / 358.9 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005287/0.5929, allocations: 336.3 kB / 359.3 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03646/0.6294, allocations: 8.593 MB / 367.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09769/0.7272, allocations: 33.17 MB / 401 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01233/0.7396, allocations: 6.028 MB / 407.1 MB, free: 3.793 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004558/0.7401, allocations: 37.75 kB / 407.1 MB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.47e-05/0.7402, allocations: 72.81 kB / 407.2 MB, free: 3.676 MB / 330.7 MB Notification: Performance of pre-optimization done (n=295): time 7.043e-06/0.7402, allocations: 0 / 407.2 MB, free: 3.676 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.06913/0.8094, allocations: 16.39 MB / 423.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.8095, allocations: 90.2 kB / 423.6 MB, free: 2.996 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01554/0.8251, allocations: 3.821 MB / 427.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008658/0.826, allocations: 85.7 kB / 427.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00478/0.8308, allocations: 3.363 MB / 430.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002447/0.8333, allocations: 1.217 MB / 432.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005855/0.8339, allocations: 84 kB / 432.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000504/0.8345, allocations: 480.1 kB / 432.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008735/0.8432, allocations: 1.948 MB / 434.6 MB, free: 7.977 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01032/0.8536, allocations: 3.167 MB / 437.8 MB, free: 4.273 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/0.8641, allocations: 2.5 MB / 440.3 MB, free: 1.797 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.743e-05/0.8642, allocations: 19.38 kB / 440.3 MB, free: 1.781 MB / 362.7 MB Notification: Performance of matching and sorting (n=547) (initialization): time 0.4887/1.353, allocations: 6.287 MB / 446.6 MB, free: 108 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.376e-05/1.353, allocations: 23.36 kB / 446.6 MB, free: 108 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/1.353, allocations: 39.44 kB / 446.7 MB, free: 108 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004854/1.358, allocations: 1.055 MB / 447.7 MB, free: 108 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007575/1.366, allocations: 0.9499 MB / 448.7 MB, free: 108 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02507/1.391, allocations: 12.78 MB / 461.4 MB, free: 99.57 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006185/1.397, allocations: 229.8 kB / 461.7 MB, free: 99.5 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/1.398, allocations: 180 kB / 461.8 MB, free: 99.47 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.006564/1.405, allocations: 2.476 MB / 464.3 MB, free: 98.19 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001518/1.406, allocations: 477.6 kB / 464.8 MB, free: 98.19 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.01626/1.423, allocations: 5.748 MB / 470.5 MB, free: 95.67 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.952e-05/1.423, allocations: 35.34 kB / 470.6 MB, free: 95.67 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.241e-05/1.423, allocations: 15.78 kB / 470.6 MB, free: 95.67 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.043e-05/1.423, allocations: 18.38 kB / 470.6 MB, free: 95.67 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.03921/1.462, allocations: 14.36 MB / 485 MB, free: 88.8 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-05/1.462, allocations: 10.75 kB / 485 MB, free: 88.8 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004825/1.467, allocations: 0.5734 MB / 485.5 MB, free: 88.65 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004537/1.472, allocations: 1.168 MB / 486.7 MB, free: 87.56 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006287/1.472, allocations: 91.92 kB / 486.8 MB, free: 87.47 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02756/1.5, allocations: 15.73 MB / 0.4908 GB, free: 71.41 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/1.5, allocations: 11.94 kB / 0.4908 GB, free: 71.39 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.02236/1.522, allocations: 9.399 MB / 0.4999 GB, free: 61.68 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00352/1.526, allocations: 0.9716 MB / 0.5009 GB, free: 60.68 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00188/1.528, allocations: 91.94 kB / 0.501 GB, free: 60.59 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005326/1.533, allocations: 195.8 kB / 0.5012 GB, free: 60.4 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001107/1.534, allocations: 292 kB / 0.5014 GB, free: 60.12 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004181/1.535, allocations: 99.97 kB / 0.5015 GB, free: 60.02 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.00732/1.542, allocations: 2.924 MB / 0.5044 GB, free: 57.1 MB / 362.8 MB Notification: Performance of sort global known variables: time 8.41e-07/1.542, allocations: 0 / 0.5044 GB, free: 57.1 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.00748/1.55, allocations: 1.422 MB / 0.5058 GB, free: 55.68 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.001001/1.551, allocations: 225.8 kB / 0.506 GB, free: 55.45 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.01586/1.567, allocations: 5.844 MB / 0.5117 GB, free: 49.52 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/1.567, allocations: 1.875 kB / 0.5117 GB, free: 49.52 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01031/1.577, allocations: 3.666 MB / 0.5153 GB, free: 45.8 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008472/1.585, allocations: 1.066 MB / 0.5163 GB, free: 44.73 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04147/1.627, allocations: 17.38 MB / 0.5333 GB, free: 27.24 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01047/1.637, allocations: 5.024 MB / 0.5382 GB, free: 22.18 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002213/1.64, allocations: 311.4 kB / 0.5385 GB, free: 21.88 MB / 362.8 MB Notification: Performance of SimCode: time 1.513e-06/1.64, allocations: 0 / 0.5385 GB, free: 21.88 MB / 362.8 MB [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(sineVoltage3.v)[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(smee3.is)[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(sineVoltage3.v)[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(smee3.is)[1] .