Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.09/2.09, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.096e-05/3.09e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.03144/0.1427, allocations: 18.67 MB / 363.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01768/0.1604, allocations: 6.326 MB / 370 MB, free: 15.85 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004736/0.1652, allocations: 183.5 kB / 370.2 MB, free: 15.67 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004882/0.1701, allocations: 1.044 MB / 371.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008933/0.1791, allocations: 1.865 MB / 373.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004847/0.184, allocations: 0.9108 MB / 374 MB, free: 11.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.1953, allocations: 3.705 MB / 377.7 MB, free: 8.129 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007191/0.2026, allocations: 2.892 MB / 380.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004594/0.2072, allocations: 1.773 MB / 382.4 MB, free: 3.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005905/0.2132, allocations: 2.39 MB / 384.7 MB, free: 1.039 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003662/0.2169, allocations: 0.5386 MB / 385.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002141/0.2191, allocations: 228 kB / 385.5 MB, free: 284 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003173/0.2223, allocations: 1.281 MB / 386.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002798/0.2252, allocations: 0.5312 MB / 387.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.2412, allocations: 9.232 MB / 396.5 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2413, allocations: 0 / 396.5 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.2413, allocations: 0 / 396.5 MB, free: 5.203 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004193/0.2418, allocations: 4 kB / 396.6 MB, free: 5.199 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.3609/0.6027, allocations: 5.727 MB / 402.3 MB, free: 41.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.6028, allocations: 11.36 kB / 402.3 MB, free: 41.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01065/0.6134, allocations: 1.222 MB / 403.5 MB, free: 41.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01411/0.6276, allocations: 3.77 MB / 407.3 MB, free: 39.31 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007491/0.6284, allocations: 446.5 kB / 407.7 MB, free: 39.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002339/0.6308, allocations: 0.5536 MB / 408.3 MB, free: 38.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02598/0.6568, allocations: 7.232 MB / 415.5 MB, free: 35.99 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000243/0.6571, allocations: 3.938 kB / 415.5 MB, free: 35.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001553/0.6587, allocations: 240.4 kB / 415.7 MB, free: 35.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003701/0.659, allocations: 266 kB / 416 MB, free: 35.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02024/0.6793, allocations: 6.149 MB / 422.2 MB, free: 32.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05958/0.7389, allocations: 23.94 MB / 446.1 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01211/0.7511, allocations: 8.71 MB / 454.8 MB, free: 444 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02109/0.7722, allocations: 6.636 MB / 461.4 MB, free: 9.676 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.45e-05/0.7724, allocations: 72.45 kB / 461.5 MB, free: 9.594 MB / 346.7 MB Notification: Performance of pre-optimization done (n=244): time 8.316e-06/0.7724, allocations: 0 / 461.5 MB, free: 9.594 MB / 346.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : (-smeeM.is[3]) - smeeM.is[2] - smeeM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smeeM.is[2] ; smeeM.is[1] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=299): time 0.07256/0.845, allocations: 16.57 MB / 478.1 MB, free: 8.762 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/0.8451, allocations: 81.73 kB / 478.2 MB, free: 8.668 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008187/0.8533, allocations: 3.023 MB / 481.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006273/0.854, allocations: 74.88 kB / 481.3 MB, free: 5.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002674/0.8566, allocations: 2.47 MB / 483.7 MB, free: 3.094 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00166/0.8583, allocations: 1.021 MB / 484.7 MB, free: 2.082 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003828/0.8587, allocations: 77.33 kB / 484.8 MB, free: 2.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003385/0.8591, allocations: 458.9 kB / 485.3 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005331/0.8644, allocations: 1.648 MB / 486.9 MB, free: 15.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006783/0.8713, allocations: 2.806 MB / 489.7 MB, free: 12.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006624/0.878, allocations: 2.111 MB / 491.8 MB, free: 10.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.513e-05/0.878, allocations: 15.98 kB / 491.8 MB, free: 10.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=482) (initialization): time 0.01753/0.8956, allocations: 5.459 MB / 497.3 MB, free: 4.914 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.103e-05/0.8957, allocations: 22.97 kB / 497.3 MB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.708e-05/0.8958, allocations: 44.03 kB / 497.4 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003447/0.8992, allocations: 0.8169 MB / 498.2 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006815/0.9061, allocations: 0.8775 MB / 499.1 MB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02002/0.9262, allocations: 10.12 MB / 0.4973 GB, free: 8.621 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005469/0.9317, allocations: 243.6 kB / 0.4975 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008226/0.9326, allocations: 166.2 kB / 0.4976 GB, free: 8.223 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 416 * 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: 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 {(3,100.0%) 12,(1,100.0%) 3,(4,81.2%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004972/0.9375, allocations: 1.617 MB / 0.4992 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001376/0.9389, allocations: 395.2 kB / 0.4996 GB, free: 6.203 MB / 394.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : (-smeeM.is[3]) - smeeM.is[2] - smeeM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smeeM.is[2] ; smeeM.is[1] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.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.01533/0.9543, allocations: 4.852 MB / 0.5043 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-05/0.9544, allocations: 32 kB / 0.5044 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.633e-05/0.9544, allocations: 12 kB / 0.5044 GB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.154e-05/0.9545, allocations: 15.94 kB / 0.5044 GB, free: 1.172 MB / 394.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : (-smeeM.is[3]) - smeeM.is[2] - smeeM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smeeM.is[2] ; smeeM.is[1] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.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.03139/0.9859, allocations: 10.54 MB / 0.5147 GB, free: 6.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/0.986, allocations: 4 kB / 0.5147 GB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004794/0.9908, allocations: 0.539 MB / 0.5152 GB, free: 5.887 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003818/0.9947, allocations: 0.8354 MB / 0.516 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005832/0.9953, allocations: 76.59 kB / 0.5161 GB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02332/1.019, allocations: 14.38 MB / 0.5301 GB, free: 5.859 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-05/1.019, allocations: 11.94 kB / 0.5302 GB, free: 5.848 MB / 426.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : (-smeeM.is[3]) - smeeM.is[2] - smeeM.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smeeM.is[2] ; smeeM.is[1] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.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.02126/1.04, allocations: 7.749 MB / 0.5377 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003137/1.043, allocations: 0.8086 MB / 0.5385 GB, free: 12.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00152/1.045, allocations: 63.98 kB / 0.5386 GB, free: 12.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004731/1.049, allocations: 196.5 kB / 0.5388 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000966/1.05, allocations: 227 kB / 0.539 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00033/1.051, allocations: 83.97 kB / 0.5391 GB, free: 12.31 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006369/1.057, allocations: 2.294 MB / 0.5413 GB, free: 10.03 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.057, allocations: 0 / 0.5413 GB, free: 10.03 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006489/1.064, allocations: 1.135 MB / 0.5424 GB, free: 8.902 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 10 (smeeM.phiMechanical,smeeM.is[3],smeeM.stator.zeroInductor.i0,smeeM.stator.core.Phi.re,smeeM.stator.core.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 (247): * Single equations (assignments): 238 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(5,72.0%) 30,(1,100.0%) 1,(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.00117/1.065, allocations: 266.8 kB / 0.5427 GB, free: 8.641 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01451/1.079, allocations: 4.913 MB / 0.5475 GB, free: 3.629 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/1.08, allocations: 4 kB / 0.5475 GB, free: 3.625 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009106/1.089, allocations: 2.964 MB / 0.5504 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006905/1.096, allocations: 0.8308 MB / 0.5512 GB, free: 15.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03355/1.129, allocations: 12.67 MB / 0.5635 GB, free: 2.984 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3034/1.433, allocations: 3.552 MB / 0.567 GB, free: 149.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002281/1.435, allocations: 284.8 kB / 0.5673 GB, free: 149.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.284e-06/1.435, allocations: 0.5312 kB / 0.5673 GB, free: 149.4 MB / 458.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] .