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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 171.1 MB / 186.3 MB, free: 1.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.669e-05, allocations: 0 / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.0904, allocations: 38.77 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.03138/0.1218, allocations: 18 MB / 284.9 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.017/0.1389, allocations: 5.85 MB / 290.8 MB, free: 9.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004728/0.1437, allocations: 171.5 kB / 290.9 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004928/0.1487, allocations: 1.025 MB / 291.9 MB, free: 7.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0087/0.1574, allocations: 1.694 MB / 293.6 MB, free: 6.281 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004851/0.1623, allocations: 0.9201 MB / 294.6 MB, free: 5.359 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.1734, allocations: 3.577 MB / 298.1 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2384/0.4119, allocations: 2.837 MB / 301 MB, free: 5.77 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004905/0.4168, allocations: 1.729 MB / 302.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006457/0.4234, allocations: 2.272 MB / 305 MB, free: 5.766 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003988/0.4274, allocations: 443.6 kB / 305.4 MB, free: 5.766 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001831/0.4293, allocations: 224.2 kB / 305.6 MB, free: 5.762 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002639/0.432, allocations: 1.265 MB / 306.9 MB, free: 5.758 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003155/0.4351, allocations: 0.5119 MB / 307.4 MB, free: 5.758 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01361/0.4488, allocations: 8.921 MB / 316.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.4489, allocations: 0 / 316.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.4489, allocations: 0 / 316.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0003682/0.4493, allocations: 0.9688 kB / 316.3 MB, free: 2.148 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.0213/0.4706, allocations: 5.538 MB / 321.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.4706, allocations: 9.062 kB / 321.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007207/0.4779, allocations: 0.9698 MB / 322.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.489, allocations: 3.439 MB / 326.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00042/0.4895, allocations: 413.5 kB / 326.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002017/0.4915, allocations: 0.5247 MB / 327.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02451/0.5161, allocations: 6.842 MB / 334 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000265/0.5164, allocations: 13.81 kB / 334.1 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00158/0.518, allocations: 218.6 kB / 334.3 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004362/0.5184, allocations: 250.8 kB / 334.5 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02023/0.5387, allocations: 5.622 MB / 340.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06574/0.6045, allocations: 22.52 MB / 362.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00908/0.6136, allocations: 4.362 MB / 367 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006694/0.6144, allocations: 137.2 kB / 367.2 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.648e-05/0.6144, allocations: 60.56 kB / 367.2 MB, free: 9.836 MB / 298.7 MB Notification: Performance of pre-optimization done (n=242): time 6.452e-06/0.6145, allocations: 0 / 367.2 MB, free: 9.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=288): time 0.07049/0.685, allocations: 15.33 MB / 382.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.6851, allocations: 81.64 kB / 382.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008975/0.6941, allocations: 2.918 MB / 385.6 MB, free: 7.305 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006872/0.6948, allocations: 77.7 kB / 385.6 MB, free: 7.223 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003032/0.6979, allocations: 2.343 MB / 388 MB, free: 4.867 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001824/0.6998, allocations: 0.9883 MB / 389 MB, free: 3.887 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003899/0.7002, allocations: 68 kB / 389 MB, free: 3.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000409/0.7006, allocations: 450.4 kB / 389.5 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005423/0.706, allocations: 1.58 MB / 391 MB, free: 1.793 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006846/0.7129, allocations: 2.641 MB / 393.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006788/0.7198, allocations: 2.03 MB / 395.7 MB, free: 12.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.757e-05/0.7199, allocations: 11.94 kB / 395.7 MB, free: 12.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=454) (initialization): time 0.01854/0.7385, allocations: 5.28 MB / 401 MB, free: 7.516 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.114e-05/0.7386, allocations: 20.56 kB / 401 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.863e-05/0.7387, allocations: 40 kB / 401.1 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003383/0.7421, allocations: 0.7512 MB / 401.8 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006783/0.7489, allocations: 0.8363 MB / 402.7 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02091/0.7698, allocations: 10.61 MB / 413.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005542/0.7754, allocations: 227.5 kB / 413.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009752/0.7765, allocations: 156 kB / 413.6 MB, free: 10.44 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.005686/0.7822, allocations: 1.583 MB / 415.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/0.7837, allocations: 387.3 kB / 415.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01562/0.7994, allocations: 4.679 MB / 420.3 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/0.7995, allocations: 28 kB / 420.3 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.135e-05/0.7996, allocations: 12 kB / 420.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.304e-05/0.7997, allocations: 15.94 kB / 420.3 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03529/0.835, allocations: 10.88 MB / 431.2 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.353e-05/0.8351, allocations: 8 kB / 431.2 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004426/0.8395, allocations: 0.5016 MB / 431.7 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003736/0.8433, allocations: 0.8221 MB / 432.5 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005956/0.8439, allocations: 67.98 kB / 432.6 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3172/1.161, allocations: 14.07 MB / 446.7 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-05/1.161, allocations: 13.81 kB / 446.7 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02163/1.183, allocations: 7.842 MB / 454.5 MB, free: 109.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003238/1.186, allocations: 0.7771 MB / 455.3 MB, free: 109.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/1.188, allocations: 72.8 kB / 455.4 MB, free: 109.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005197/1.193, allocations: 186.5 kB / 455.6 MB, free: 109.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001035/1.194, allocations: 226.6 kB / 455.8 MB, free: 109.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003384/1.195, allocations: 84.44 kB / 455.9 MB, free: 109.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00666/1.201, allocations: 2.225 MB / 458.1 MB, free: 108.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.201, allocations: 0 / 458.1 MB, free: 108.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006705/1.208, allocations: 1.061 MB / 459.2 MB, free: 108.4 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.001109/1.209, allocations: 223.8 kB / 459.4 MB, free: 108.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01323/1.222, allocations: 4.804 MB / 464.2 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/1.223, allocations: 0 / 464.2 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009687/1.232, allocations: 3.018 MB / 467.2 MB, free: 104.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008108/1.24, allocations: 0.8414 MB / 468 MB, free: 104.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07498/1.315, allocations: 12.3 MB / 480.3 MB, free: 94.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.013/1.329, allocations: 3.482 MB / 483.8 MB, free: 92.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002626/1.331, allocations: 263.8 kB / 484.1 MB, free: 91.98 MB / 362.7 MB Notification: Performance of SimCode: time 2.695e-06/1.331, allocations: 0 / 484.1 MB, free: 91.98 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] .