Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,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.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.172/2.172, allocations: 194.9 MB / 211.2 MB, free: 8.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.067e-05, allocations: 0 / 258.8 MB, free: 8.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3059, allocations: 44.5 MB / 303.3 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.0318/0.3377, allocations: 18.8 MB / 322.1 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.3553, allocations: 6.202 MB / 328.3 MB, free: 4.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004887/0.3603, allocations: 167.6 kB / 328.5 MB, free: 4.426 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004865/0.3652, allocations: 1.049 MB / 329.5 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009179/0.3744, allocations: 1.849 MB / 331.4 MB, free: 1.516 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004989/0.3795, allocations: 0.9357 MB / 332.3 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.3905, allocations: 3.706 MB / 336 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006894/0.3974, allocations: 2.784 MB / 338.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004479/0.402, allocations: 1.776 MB / 340.6 MB, free: 8.273 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005708/0.4077, allocations: 2.387 MB / 343 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003471/0.4113, allocations: 0.5502 MB / 343.5 MB, free: 5.328 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002103/0.4134, allocations: 228 kB / 343.7 MB, free: 5.105 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002874/0.4163, allocations: 1.277 MB / 345 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002715/0.4191, allocations: 0.5273 MB / 345.5 MB, free: 3.297 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01554/0.4347, allocations: 9.17 MB / 354.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4348, allocations: 0 / 354.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4348, allocations: 0 / 354.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003848/0.4352, allocations: 0 / 354.7 MB, free: 10.1 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02257/0.4578, allocations: 5.698 MB / 360.4 MB, free: 4.324 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.4578, allocations: 8.031 kB / 360.4 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01026/0.4681, allocations: 1.226 MB / 361.6 MB, free: 3.082 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01253/0.4807, allocations: 3.589 MB / 365.2 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000642/0.4814, allocations: 431.3 kB / 365.6 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002386/0.4838, allocations: 0.5583 MB / 366.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02579/0.5096, allocations: 7.17 MB / 373.4 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002727/0.51, allocations: 11.89 kB / 373.4 MB, free: 7.203 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001706/0.5117, allocations: 232 kB / 373.6 MB, free: 6.977 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004479/0.5122, allocations: 259.2 kB / 373.9 MB, free: 6.723 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02185/0.534, allocations: 6.068 MB / 379.9 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06768/0.6017, allocations: 23.84 MB / 403.8 MB, free: 8.164 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01441/0.6162, allocations: 8.653 MB / 412.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02122/0.6375, allocations: 6.606 MB / 419 MB, free: 7.754 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.132e-05/0.6376, allocations: 56.56 kB / 419.1 MB, free: 7.688 MB / 362.7 MB Notification: Performance of pre-optimization done (n=241): time 5.981e-06/0.6376, allocations: 0 / 419.1 MB, free: 7.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=287): time 0.3379/0.9755, allocations: 15.29 MB / 434.4 MB, free: 98.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.9757, allocations: 80.89 kB / 434.4 MB, free: 98.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008045/0.9837, allocations: 3.009 MB / 437.5 MB, free: 97.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006114/0.9844, allocations: 74.45 kB / 437.5 MB, free: 97.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002275/0.9867, allocations: 2.456 MB / 440 MB, free: 95.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001391/0.9881, allocations: 0.9811 MB / 441 MB, free: 94.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003715/0.9885, allocations: 76.64 kB / 441 MB, free: 94.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002706/0.9888, allocations: 460.6 kB / 441.5 MB, free: 94.06 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004855/0.9937, allocations: 1.572 MB / 443.1 MB, free: 93.49 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005696/0.9994, allocations: 2.738 MB / 445.8 MB, free: 91.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00581/1.005, allocations: 2.045 MB / 447.8 MB, free: 90.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.525e-05/1.005, allocations: 11 kB / 447.9 MB, free: 90.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=470) (initialization): time 0.01567/1.021, allocations: 5.286 MB / 453.1 MB, free: 87.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.962e-05/1.021, allocations: 20 kB / 453.2 MB, free: 87.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.32e-05/1.021, allocations: 47.83 kB / 453.2 MB, free: 87.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002844/1.024, allocations: 0.6804 MB / 453.9 MB, free: 86.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006408/1.031, allocations: 0.8814 MB / 454.8 MB, free: 85.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01366/1.044, allocations: 9.713 MB / 464.5 MB, free: 75.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005274/1.05, allocations: 235.6 kB / 464.7 MB, free: 75.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007515/1.05, allocations: 160 kB / 464.9 MB, free: 75.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (428): * Single equations (assignments): 418 * 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,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004694/1.055, allocations: 1.608 MB / 466.5 MB, free: 73.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001291/1.056, allocations: 388.4 kB / 466.9 MB, free: 73.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/1.069, allocations: 4.622 MB / 471.5 MB, free: 68.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.942e-05/1.069, allocations: 31.98 kB / 471.5 MB, free: 68.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/1.069, allocations: 8 kB / 471.5 MB, free: 68.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.055e-05/1.069, allocations: 11.95 kB / 471.5 MB, free: 68.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02673/1.096, allocations: 10.31 MB / 481.8 MB, free: 57.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.934e-05/1.096, allocations: 4 kB / 481.8 MB, free: 57.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004411/1.1, allocations: 0.5313 MB / 482.4 MB, free: 57.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003164/1.103, allocations: 0.7327 MB / 483.1 MB, free: 56.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000534/1.104, allocations: 79.91 kB / 483.2 MB, free: 56.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01718/1.121, allocations: 13.2 MB / 496.4 MB, free: 42.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/1.121, allocations: 19.88 kB / 496.4 MB, free: 42.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0174/1.139, allocations: 7.513 MB / 0.4921 GB, free: 34.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002803/1.142, allocations: 0.7852 MB / 0.4929 GB, free: 33.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001417/1.143, allocations: 68.61 kB / 0.4929 GB, free: 33.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004318/1.147, allocations: 185.3 kB / 0.4931 GB, free: 33.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008508/1.148, allocations: 209.8 kB / 0.4933 GB, free: 33.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002911/1.149, allocations: 91.97 kB / 0.4934 GB, free: 33.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005708/1.154, allocations: 2.278 MB / 0.4956 GB, free: 31.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.154, allocations: 0 / 0.4956 GB, free: 31.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006059/1.16, allocations: 1.105 MB / 0.4967 GB, free: 29.94 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (243): * Single equations (assignments): 233 * 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 {(2,100.0%) 13,(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.001029/1.162, allocations: 249.6 kB / 0.4969 GB, free: 29.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/1.173, allocations: 4.741 MB / 0.5016 GB, free: 24.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.173, allocations: 4 kB / 0.5016 GB, free: 24.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007515/1.181, allocations: 2.898 MB / 0.5044 GB, free: 21.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006414/1.187, allocations: 0.8381 MB / 0.5052 GB, free: 21.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/1.215, allocations: 12.47 MB / 0.5174 GB, free: 8.422 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005379/1.22, allocations: 3.52 MB / 0.5209 GB, free: 4.871 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/1.222, allocations: 287.4 kB / 0.5211 GB, free: 4.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.413e-06/1.222, allocations: 4 kB / 0.5211 GB, free: 4.586 MB / 362.7 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(sineVoltage.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(smeeM.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(smeeE.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(sineVoltage.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(smeeE.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(smeeM.is)[1] .