Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.577e-05, allocations: 0 / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 50.41 MB / 345 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01732/0.1245, allocations: 9.024 MB / 354 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.1372, allocations: 3.424 MB / 357.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002975/0.1403, allocations: 79.75 kB / 357.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00358/0.1439, allocations: 0.5866 MB / 358.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00543/0.1494, allocations: 0.7514 MB / 358.8 MB, free: 11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00241/0.1519, allocations: 307.5 kB / 359.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006303/0.1582, allocations: 1.56 MB / 360.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004537/0.1629, allocations: 1.355 MB / 362.1 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00282/0.1657, allocations: 0.822 MB / 362.9 MB, free: 6.938 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00396/0.1698, allocations: 1.168 MB / 364 MB, free: 5.766 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002545/0.1724, allocations: 291.7 kB / 364.3 MB, free: 5.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001248/0.1737, allocations: 108 kB / 364.4 MB, free: 5.375 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002375/0.1761, allocations: 0.7047 MB / 365.1 MB, free: 4.668 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00187/0.1781, allocations: 252 kB / 365.4 MB, free: 4.422 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006961/0.1851, allocations: 4.001 MB / 369.4 MB, free: 420 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1852, allocations: 0 / 369.4 MB, free: 420 kB / 298.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1852, allocations: 0 / 369.4 MB, free: 420 kB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001784/0.1854, allocations: 0 / 369.4 MB, free: 420 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.008782/0.1942, allocations: 2.641 MB / 372 MB, free: 13.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.1942, allocations: 15.97 kB / 372 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002491/0.1967, allocations: 408.1 kB / 372.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005329/0.2021, allocations: 1.745 MB / 374.2 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003112/0.2025, allocations: 197 kB / 374.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008521/0.2034, allocations: 255.9 kB / 374.6 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/0.2134, allocations: 3.224 MB / 377.9 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/0.2136, allocations: 4 kB / 377.9 MB, free: 7.738 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003706/0.214, allocations: 100 kB / 378 MB, free: 7.641 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002274/0.2142, allocations: 120.9 kB / 378.1 MB, free: 7.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01101/0.2252, allocations: 2.705 MB / 380.8 MB, free: 4.801 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03946/0.2647, allocations: 10.42 MB / 391.2 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005676/0.2705, allocations: 1.782 MB / 393 MB, free: 8.152 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005956/0.2711, allocations: 219.1 kB / 393.2 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.784e-05/0.2712, allocations: 43.56 kB / 393.2 MB, free: 7.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=115): time 5.911e-06/0.2712, allocations: 0 / 393.2 MB, free: 7.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.3221/0.5934, allocations: 7.861 MB / 401.1 MB, free: 47.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.5935, allocations: 65.44 kB / 401.2 MB, free: 47.35 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005078/0.5986, allocations: 1.647 MB / 402.8 MB, free: 47.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000299/0.5989, allocations: 47.64 kB / 402.9 MB, free: 47.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.6001, allocations: 1.171 MB / 404 MB, free: 46.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006927/0.6008, allocations: 466.3 kB / 404.5 MB, free: 46.17 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.601, allocations: 35.91 kB / 404.5 MB, free: 46.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.6012, allocations: 379 kB / 404.9 MB, free: 45.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002688/0.6039, allocations: 0.827 MB / 405.7 MB, free: 45.53 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003036/0.6069, allocations: 1.315 MB / 407 MB, free: 44.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003128/0.6101, allocations: 1.03 MB / 408.1 MB, free: 44.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.02e-05/0.6102, allocations: 4.844 kB / 408.1 MB, free: 44.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.008331/0.6186, allocations: 2.671 MB / 410.7 MB, free: 43.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.547e-05/0.6187, allocations: 13.55 kB / 410.8 MB, free: 43.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.423e-05/0.6187, allocations: 20.06 kB / 410.8 MB, free: 43.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001645/0.6204, allocations: 396.8 kB / 411.2 MB, free: 43.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003521/0.6239, allocations: 417 kB / 411.6 MB, free: 43.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008509/0.6325, allocations: 5.207 MB / 416.8 MB, free: 39.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002817/0.6354, allocations: 140.5 kB / 416.9 MB, free: 39.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/0.6358, allocations: 73.8 kB / 417 MB, free: 39.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 185 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002052/0.6378, allocations: 0.7948 MB / 417.8 MB, free: 38.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006829/0.6385, allocations: 196.2 kB / 418 MB, free: 38.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007158/0.6457, allocations: 2.398 MB / 420.4 MB, free: 37.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.013e-05/0.6458, allocations: 13.75 kB / 420.4 MB, free: 37.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.6458, allocations: 7.828 kB / 420.4 MB, free: 37.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.39e-05/0.6459, allocations: 5.391 kB / 420.4 MB, free: 37.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/0.6598, allocations: 5.269 MB / 425.7 MB, free: 34.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/0.6599, allocations: 7.25 kB / 425.7 MB, free: 34.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002127/0.662, allocations: 268.9 kB / 425.9 MB, free: 34.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/0.6639, allocations: 436.4 kB / 426.4 MB, free: 34.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002664/0.6642, allocations: 47 kB / 426.4 MB, free: 34.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009257/0.6735, allocations: 6.692 MB / 433.1 MB, free: 28.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.6736, allocations: 7.938 kB / 433.1 MB, free: 28.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008989/0.6826, allocations: 3.9 MB / 437 MB, free: 24.03 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/0.6841, allocations: 454.5 kB / 437.4 MB, free: 23.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007088/0.6849, allocations: 36.69 kB / 437.5 MB, free: 23.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002295/0.6872, allocations: 111.9 kB / 437.6 MB, free: 23.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.6876, allocations: 112.7 kB / 437.7 MB, free: 23.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/0.6878, allocations: 39.98 kB / 437.7 MB, free: 23.27 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002804/0.6906, allocations: 1.267 MB / 439 MB, free: 22.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6906, allocations: 2.625 kB / 439 MB, free: 22.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002881/0.6935, allocations: 0.5434 MB / 439.6 MB, free: 21.47 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 113 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.0005986/0.6942, allocations: 191.3 kB / 439.7 MB, free: 21.29 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006295/0.7005, allocations: 2.411 MB / 442.2 MB, free: 18.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/0.7005, allocations: 0 / 442.2 MB, free: 18.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003992/0.7045, allocations: 1.51 MB / 443.7 MB, free: 17.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003333/0.7079, allocations: 423.2 kB / 444.1 MB, free: 16.88 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01901/0.727, allocations: 6.109 MB / 450.2 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004173/0.7312, allocations: 2.02 MB / 452.2 MB, free: 8.633 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/0.7327, allocations: 143.4 kB / 452.3 MB, free: 8.492 MB / 330.7 MB Notification: Performance of SimCode: time 2.425e-06/0.7328, allocations: 0 / 452.3 MB, free: 8.492 MB / 330.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(smee.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] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[2] - terminalBox.plug_sn.pin[3].v, sineVoltage.v[3] - terminalBox.plug_sn.pin[3].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(smee.is)[1] .