Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase") Notification: Performance of loadModel(Modelica): time 2.073/2.073, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.276e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1256, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.04055/0.1662, allocations: 22.74 MB / 367.7 MB, free: 2.117 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02149/0.1878, allocations: 7.204 MB / 374.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006326/0.1941, allocations: 239.4 kB / 375.2 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006334/0.2005, allocations: 1.301 MB / 376.5 MB, free: 9.352 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.212, allocations: 2.219 MB / 378.7 MB, free: 7.125 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006335/0.2184, allocations: 1.084 MB / 379.8 MB, free: 6.039 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01545/0.2339, allocations: 5.436 MB / 385.2 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01219/0.2461, allocations: 4.78 MB / 390 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006413/0.2526, allocations: 2.559 MB / 392.6 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008106/0.2607, allocations: 3.34 MB / 395.9 MB, free: 5.867 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004355/0.2652, allocations: 0.5933 MB / 396.5 MB, free: 5.273 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002767/0.268, allocations: 320 kB / 396.8 MB, free: 4.961 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003625/0.2716, allocations: 1.685 MB / 398.5 MB, free: 3.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003913/0.2756, allocations: 0.7578 MB / 399.2 MB, free: 2.512 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3259/0.6016, allocations: 14.32 MB / 413.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.6016, allocations: 0 / 413.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6017, allocations: 0 / 413.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006798/0.6024, allocations: 0 / 413.6 MB, free: 11.46 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03781/0.6402, allocations: 8.574 MB / 422.1 MB, free: 7.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.6402, allocations: 9.531 kB / 422.2 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01904/0.6593, allocations: 2.084 MB / 424.2 MB, free: 6.184 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02001/0.6794, allocations: 5.635 MB / 429.9 MB, free: 4.426 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001074/0.6805, allocations: 0.651 MB / 430.5 MB, free: 4.398 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003887/0.6844, allocations: 0.8467 MB / 431.4 MB, free: 4.387 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04263/0.7271, allocations: 11.35 MB / 442.7 MB, free: 1.598 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005708/0.7278, allocations: 7.859 kB / 442.7 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003428/0.7312, allocations: 356 kB / 443.1 MB, free: 1.516 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005003/0.7317, allocations: 376.6 kB / 443.4 MB, free: 1.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03594/0.7677, allocations: 9.698 MB / 453.1 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1131/0.8808, allocations: 36.12 MB / 489.3 MB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02884/0.9097, allocations: 16.88 MB / 0.4943 GB, free: 3.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03142/0.9412, allocations: 9.248 MB / 0.5033 GB, free: 9.613 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.305e-05/0.9414, allocations: 72.52 kB / 0.5034 GB, free: 9.535 MB / 410.7 MB Notification: Performance of pre-optimization done (n=318): time 7.154e-06/0.9414, allocations: 0 / 0.5034 GB, free: 9.535 MB / 410.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[3]) - smee3.is[2] - smee3.is[1] = 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 matching and sorting (n=381): time 0.0724/1.014, allocations: 17.05 MB / 0.52 GB, free: 8.324 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/1.014, allocations: 90.39 kB / 0.5201 GB, free: 8.223 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01247/1.026, allocations: 3.929 MB / 0.524 GB, free: 4.293 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009155/1.027, allocations: 93.64 kB / 0.524 GB, free: 4.195 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004239/1.032, allocations: 3.587 MB / 0.5275 GB, free: 0.582 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002251/1.034, allocations: 1.294 MB / 0.5288 GB, free: 15.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005397/1.035, allocations: 92 kB / 0.5289 GB, free: 15.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004196/1.035, allocations: 497 kB / 0.5294 GB, free: 14.71 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007025/1.042, allocations: 2.024 MB / 0.5313 GB, free: 12.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008953/1.051, allocations: 3.419 MB / 0.5347 GB, free: 8.641 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008747/1.06, allocations: 2.614 MB / 0.5372 GB, free: 6.059 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.191e-05/1.06, allocations: 12 kB / 0.5372 GB, free: 6.047 MB / 442.7 MB Notification: Performance of matching and sorting (n=598) (initialization): time 0.02378/1.084, allocations: 6.516 MB / 0.5436 GB, free: 15.79 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.594e-05/1.084, allocations: 24 kB / 0.5436 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.535e-05/1.084, allocations: 44 kB / 0.5437 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004258/1.088, allocations: 0.9149 MB / 0.5446 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008842/1.097, allocations: 1.071 MB / 0.5456 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02269/1.12, allocations: 10.98 MB / 0.5563 GB, free: 2.469 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007486/1.127, allocations: 259.7 kB / 0.5566 GB, free: 2.215 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001225/1.129, allocations: 204 kB / 0.5568 GB, free: 2.016 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (527): * Single equations (assignments): 520 * 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 {(4,81.2%) 31,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.3275/1.456, allocations: 2.528 MB / 0.5593 GB, free: 151 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/1.458, allocations: 495.6 kB / 0.5597 GB, free: 151 MB / 458.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[3]) - smee3.is[2] - smee3.is[1] = 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.01904/1.477, allocations: 5.868 MB / 0.5655 GB, free: 149.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-05/1.477, allocations: 46.09 kB / 0.5655 GB, free: 149.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.958e-05/1.477, allocations: 19.66 kB / 0.5655 GB, free: 149.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-05/1.477, allocations: 16.97 kB / 0.5655 GB, free: 149.8 MB / 458.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[3]) - smee3.is[2] - smee3.is[1] = 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.04783/1.525, allocations: 13.94 MB / 0.5791 GB, free: 143.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.66e-05/1.525, allocations: 7.312 kB / 0.5792 GB, free: 143.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007817/1.533, allocations: 0.6456 MB / 0.5798 GB, free: 143.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005535/1.539, allocations: 0.9948 MB / 0.5808 GB, free: 143.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009616/1.54, allocations: 98.39 kB / 0.5808 GB, free: 143.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03602/1.576, allocations: 15.53 MB / 0.596 GB, free: 132.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/1.576, allocations: 7.875 kB / 0.596 GB, free: 132.1 MB / 458.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[3]) - smee3.is[2] - smee3.is[1] = 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.0244/1.6, allocations: 9.225 MB / 0.605 GB, free: 124 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004084/1.605, allocations: 0.9986 MB / 0.606 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002378/1.607, allocations: 84.53 kB / 0.6061 GB, free: 123.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006111/1.613, allocations: 215.8 kB / 0.6063 GB, free: 122.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001374/1.615, allocations: 290.4 kB / 0.6066 GB, free: 122.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000427/1.615, allocations: 110.3 kB / 0.6067 GB, free: 122.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007985/1.623, allocations: 2.988 MB / 0.6096 GB, free: 119.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.623, allocations: 3.938 kB / 0.6096 GB, free: 119.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008969/1.632, allocations: 1.503 MB / 0.6111 GB, free: 118.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.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 (295): * Single equations (assignments): 289 * 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 {(2,100.0%) 13,(4,93.8%) 33,(5,68.0%) 30,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001202/1.633, allocations: 259.7 kB / 0.6113 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01495/1.648, allocations: 5.916 MB / 0.6171 GB, free: 111.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/1.648, allocations: 0 / 0.6171 GB, free: 111.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009048/1.657, allocations: 3.524 MB / 0.6205 GB, free: 108.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008804/1.666, allocations: 1.073 MB / 0.6216 GB, free: 107.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04401/1.71, allocations: 18.04 MB / 0.6392 GB, free: 89.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01034/1.721, allocations: 5.121 MB / 0.6442 GB, free: 83.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002648/1.723, allocations: 359.4 kB / 0.6445 GB, free: 83.53 MB / 458.7 MB Notification: Performance of SimCode: time 1.252e-06/1.723, allocations: 0 / 0.6445 GB, free: 83.53 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(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] .