Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadModel(Modelica): time 2.148/2.148, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.512e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 50.41 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01588/0.1292, allocations: 9.313 MB / 354.3 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009719/0.139, allocations: 3.471 MB / 357.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002247/0.1413, allocations: 83.75 kB / 357.8 MB, free: 12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002664/0.1441, allocations: 0.606 MB / 358.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003945/0.148, allocations: 0.7748 MB / 359.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001797/0.1499, allocations: 327.5 kB / 359.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004952/0.1549, allocations: 1.662 MB / 361.2 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003399/0.1583, allocations: 1.447 MB / 362.7 MB, free: 7.164 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002138/0.1605, allocations: 0.8765 MB / 363.5 MB, free: 6.285 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002944/0.1635, allocations: 1.242 MB / 364.8 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.1652, allocations: 291.8 kB / 365.1 MB, free: 4.754 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000847/0.1661, allocations: 116 kB / 365.2 MB, free: 4.641 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001341/0.1675, allocations: 0.7632 MB / 365.9 MB, free: 3.875 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.1686, allocations: 272 kB / 366.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007066/0.1757, allocations: 4.242 MB / 370.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1758, allocations: 0 / 370.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.1758, allocations: 0 / 370.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001881/0.176, allocations: 0 / 370.4 MB, free: 15.36 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.009528/0.1855, allocations: 2.826 MB / 373.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.1856, allocations: 12.02 kB / 373.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/0.1883, allocations: 431.8 kB / 373.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006181/0.1945, allocations: 1.868 MB / 375.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003786/0.1949, allocations: 209.4 kB / 375.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.196, allocations: 264 kB / 376 MB, free: 9.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/0.2079, allocations: 3.498 MB / 379.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.208, allocations: 7.906 kB / 379.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005362/0.2086, allocations: 108 kB / 379.6 MB, free: 5.953 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002453/0.2089, allocations: 121.2 kB / 379.8 MB, free: 5.832 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01042/0.2193, allocations: 2.983 MB / 382.7 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03207/0.2514, allocations: 11.14 MB / 393.9 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005217/0.2567, allocations: 2.3 MB / 396.2 MB, free: 4.902 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005484/0.2573, allocations: 203.5 kB / 396.4 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.141e-05/0.2574, allocations: 47.88 kB / 396.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of pre-optimization done (n=131): time 5.511e-06/0.2574, allocations: 0 / 396.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=148): time 0.3166/0.574, allocations: 7.774 MB / 404.2 MB, free: 47.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.5741, allocations: 69.5 kB / 404.3 MB, free: 46.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005455/0.5796, allocations: 1.732 MB / 406 MB, free: 46.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003447/0.58, allocations: 51.14 kB / 406.1 MB, free: 46.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.5812, allocations: 1.237 MB / 407.3 MB, free: 45.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009007/0.5822, allocations: 0.5044 MB / 407.8 MB, free: 44.81 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/0.5824, allocations: 38.47 kB / 407.8 MB, free: 44.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.5826, allocations: 380.4 kB / 408.2 MB, free: 44.44 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002962/0.5855, allocations: 0.8945 MB / 409.1 MB, free: 44.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004384/0.59, allocations: 1.377 MB / 410.5 MB, free: 43.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004484/0.5945, allocations: 1.096 MB / 411.6 MB, free: 42.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-05/0.5946, allocations: 3.438 kB / 411.6 MB, free: 42.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01268/0.6073, allocations: 2.847 MB / 414.4 MB, free: 41.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.157e-05/0.6074, allocations: 11.84 kB / 414.4 MB, free: 41.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.703e-05/0.6075, allocations: 11.81 kB / 414.4 MB, free: 41.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002358/0.6099, allocations: 446.6 kB / 414.9 MB, free: 41.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00453/0.6144, allocations: 448.6 kB / 415.3 MB, free: 41.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/0.627, allocations: 5.476 MB / 420.8 MB, free: 37.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004071/0.6311, allocations: 135.3 kB / 420.9 MB, free: 37.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004892/0.6317, allocations: 79.77 kB / 421 MB, free: 37.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 197 * 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%) 16,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003182/0.6349, allocations: 0.8399 MB / 421.8 MB, free: 37.11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/0.6359, allocations: 216.3 kB / 422.1 MB, free: 37 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009888/0.6458, allocations: 2.593 MB / 424.6 MB, free: 35.86 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.659e-05/0.646, allocations: 14.97 kB / 424.7 MB, free: 35.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/0.646, allocations: 6.031 kB / 424.7 MB, free: 35.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-05/0.6461, allocations: 7.969 kB / 424.7 MB, free: 35.85 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02067/0.6667, allocations: 5.637 MB / 430.3 MB, free: 31.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/0.6668, allocations: 5.641 kB / 430.3 MB, free: 31.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00258/0.6694, allocations: 300 kB / 430.6 MB, free: 30.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002139/0.6716, allocations: 470 kB / 431.1 MB, free: 30.4 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003001/0.6719, allocations: 43.92 kB / 431.1 MB, free: 30.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009888/0.6818, allocations: 6.978 MB / 438.1 MB, free: 22.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.6819, allocations: 11.97 kB / 438.1 MB, free: 22.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009857/0.6918, allocations: 4.079 MB / 442.2 MB, free: 18.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/0.6936, allocations: 478.4 kB / 442.7 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007806/0.6944, allocations: 35.98 kB / 442.7 MB, free: 18.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002405/0.6969, allocations: 112.7 kB / 442.8 MB, free: 18.06 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004529/0.6974, allocations: 124.2 kB / 442.9 MB, free: 17.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001782/0.6976, allocations: 43.98 kB / 443 MB, free: 17.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003012/0.7006, allocations: 1.336 MB / 444.3 MB, free: 16.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.7006, allocations: 0 / 444.3 MB, free: 16.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003333/0.704, allocations: 0.5878 MB / 444.9 MB, free: 15.96 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 123 * 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%) 16,(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.000687/0.7047, allocations: 188.6 kB / 445.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007009/0.7117, allocations: 2.613 MB / 447.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/0.7118, allocations: 0 / 447.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004291/0.7161, allocations: 1.593 MB / 449.3 MB, free: 11.49 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003742/0.7199, allocations: 455.3 kB / 449.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01448/0.7344, allocations: 6.698 MB / 456.4 MB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002724/0.7372, allocations: 2.155 MB / 458.6 MB, free: 2.094 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/0.7384, allocations: 151.4 kB / 458.7 MB, free: 1.945 MB / 330.7 MB Notification: Performance of SimCode: time 1.512e-06/0.7384, allocations: 7.938 kB / 458.7 MB, free: 1.938 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({currentQuasiRMSSensor.plug_p.pin[1].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[2].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[3].v - 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] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({currentQuasiRMSSensor.plug_p.pin[1].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[2].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[3].v - terminalBox.plug_sn.pin[3].v})[1] .