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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.785e-05, allocations: 0 / 258.8 MB, free: 8.684 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3316, allocations: 44.5 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.04294/0.3746, allocations: 22.98 MB / 326.3 MB, free: 6.656 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.3954, allocations: 7.108 MB / 333.4 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005903/0.4014, allocations: 227.4 kB / 333.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005911/0.4073, allocations: 1.293 MB / 334.9 MB, free: 14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.4182, allocations: 2.192 MB / 337.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005967/0.4242, allocations: 1.113 MB / 338.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01492/0.4392, allocations: 5.441 MB / 343.7 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01147/0.4507, allocations: 4.648 MB / 348.3 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006391/0.4571, allocations: 2.571 MB / 350.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008294/0.4655, allocations: 3.348 MB / 354.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004366/0.4699, allocations: 0.5817 MB / 354.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002685/0.4726, allocations: 324 kB / 355.1 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00368/0.4763, allocations: 1.689 MB / 356.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003771/0.4802, allocations: 0.7617 MB / 357.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02831/0.5085, allocations: 14.27 MB / 371.8 MB, free: 8.965 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.5086, allocations: 0 / 371.8 MB, free: 8.965 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5086, allocations: 0 / 371.8 MB, free: 8.965 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005438/0.5091, allocations: 0 / 371.8 MB, free: 8.965 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.03543/0.5446, allocations: 8.534 MB / 380.4 MB, free: 344 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.5447, allocations: 16.03 kB / 380.4 MB, free: 328 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01803/0.5627, allocations: 2.069 MB / 382.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01836/0.5811, allocations: 5.413 MB / 387.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00107/0.5823, allocations: 0.638 MB / 388.5 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003437/0.5857, allocations: 0.8397 MB / 389.3 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0403/0.6261, allocations: 11.3 MB / 400.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004253/0.6265, allocations: 7.906 kB / 400.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002643/0.6292, allocations: 356 kB / 401 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000581/0.6298, allocations: 373.5 kB / 401.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03381/0.6636, allocations: 9.614 MB / 411 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7326/1.396, allocations: 36.03 MB / 447 MB, free: 77.26 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0343/1.431, allocations: 16.8 MB / 463.8 MB, free: 61.49 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03768/1.468, allocations: 9.213 MB / 473 MB, free: 54.85 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/1.469, allocations: 74.89 kB / 473.1 MB, free: 54.78 MB / 362.8 MB Notification: Performance of pre-optimization done (n=315): time 9.968e-06/1.469, allocations: 0 / 473.1 MB, free: 54.78 MB / 362.8 MB Notification: Performance of matching and sorting (n=369): time 0.09002/1.559, allocations: 16.54 MB / 489.6 MB, free: 41.72 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.466e-05/1.559, allocations: 94.23 kB / 489.7 MB, free: 41.61 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01408/1.573, allocations: 3.917 MB / 493.6 MB, free: 37.7 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008531/1.574, allocations: 81.7 kB / 493.7 MB, free: 37.61 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004115/1.578, allocations: 3.582 MB / 497.3 MB, free: 34 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002179/1.58, allocations: 1.255 MB / 498.6 MB, free: 32.76 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008265/1.581, allocations: 95.75 kB / 498.6 MB, free: 32.67 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0004892/1.582, allocations: 492.7 kB / 499.1 MB, free: 32.18 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00812/1.59, allocations: 1.957 MB / 0.4893 GB, free: 30.21 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01007/1.6, allocations: 3.368 MB / 0.4926 GB, free: 26.2 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01157/1.612, allocations: 2.534 MB / 0.4951 GB, free: 23.66 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.881e-05/1.612, allocations: 12 kB / 0.4951 GB, free: 23.65 MB / 362.8 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.02844/1.64, allocations: 6.336 MB / 0.5013 GB, free: 17.25 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.521e-05/1.64, allocations: 28 kB / 0.5013 GB, free: 17.22 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/1.64, allocations: 44 kB / 0.5014 GB, free: 17.18 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004845/1.645, allocations: 0.7734 MB / 0.5021 GB, free: 16.39 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01138/1.657, allocations: 1.08 MB / 0.5032 GB, free: 15.3 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02436/1.681, allocations: 10.58 MB / 0.5135 GB, free: 4.203 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009552/1.691, allocations: 251.6 kB / 0.5138 GB, free: 3.957 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.692, allocations: 204 kB / 0.514 GB, free: 3.758 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.009494/1.702, allocations: 2.522 MB / 0.5164 GB, free: 1.227 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002152/1.704, allocations: 486.1 kB / 0.5169 GB, free: 0.7461 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/1.731, allocations: 5.651 MB / 0.5224 GB, free: 11 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001129/1.731, allocations: 39.98 kB / 0.5224 GB, free: 10.96 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.646e-05/1.731, allocations: 12 kB / 0.5224 GB, free: 10.95 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001133/1.731, allocations: 15.94 kB / 0.5225 GB, free: 10.94 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05283/1.784, allocations: 13.7 MB / 0.5358 GB, free: 13.04 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.853e-05/1.784, allocations: 4 kB / 0.5358 GB, free: 13.04 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005942/1.79, allocations: 0.6483 MB / 0.5365 GB, free: 12.39 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004227/1.794, allocations: 0.911 MB / 0.5374 GB, free: 11.46 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007563/1.795, allocations: 85.38 kB / 0.5374 GB, free: 11.38 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02729/1.822, allocations: 14.32 MB / 0.5514 GB, free: 12.41 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.31e-05/1.822, allocations: 16 kB / 0.5515 GB, free: 12.39 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02587/1.848, allocations: 9.009 MB / 0.5602 GB, free: 2.965 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003984/1.852, allocations: 0.987 MB / 0.5612 GB, free: 1.953 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001862/1.854, allocations: 75.98 kB / 0.5613 GB, free: 1.879 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005403/1.86, allocations: 211.8 kB / 0.5615 GB, free: 1.672 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/1.861, allocations: 285.7 kB / 0.5618 GB, free: 1.395 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004321/1.861, allocations: 104 kB / 0.5619 GB, free: 1.293 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.008883/1.87, allocations: 2.976 MB / 0.5648 GB, free: 14.32 MB / 426.8 MB Notification: Performance of sort global known variables: time 4.81e-07/1.87, allocations: 0 / 0.5648 GB, free: 14.32 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.008598/1.879, allocations: 1.479 MB / 0.5662 GB, free: 12.84 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.001227/1.88, allocations: 248 kB / 0.5664 GB, free: 12.6 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01774/1.898, allocations: 5.752 MB / 0.5721 GB, free: 6.742 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/1.898, allocations: 8.438 kB / 0.5721 GB, free: 6.738 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01065/1.909, allocations: 3.49 MB / 0.5755 GB, free: 3.176 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009231/1.918, allocations: 1.056 MB / 0.5765 GB, free: 2.117 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3691/2.287, allocations: 17.88 MB / 0.594 GB, free: 136.1 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01539/2.303, allocations: 5.093 MB / 0.5989 GB, free: 135.1 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003862/2.307, allocations: 355.2 kB / 0.5993 GB, free: 135.1 MB / 426.8 MB Notification: Performance of SimCode: time 2.615e-06/2.307, allocations: 0 / 0.5993 GB, free: 135.1 MB / 426.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] .