Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadModel(Modelica): time 2.042/2.042, allocations: 194.9 MB / 211.2 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.896e-05, allocations: 3.906 kB / 258.8 MB, free: 8.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3157, allocations: 44.49 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.02676/0.3425, allocations: 10.74 MB / 314 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.3583, allocations: 4.139 MB / 318.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003444/0.3618, allocations: 91.69 kB / 318.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004573/0.3664, allocations: 0.707 MB / 319 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00788/0.3744, allocations: 1.082 MB / 320 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004194/0.3786, allocations: 0.6197 MB / 320.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009355/0.388, allocations: 2.336 MB / 323 MB, free: 9.887 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006237/0.3944, allocations: 1.667 MB / 324.7 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003931/0.3984, allocations: 1.11 MB / 325.8 MB, free: 7.094 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005244/0.4036, allocations: 1.409 MB / 327.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00328/0.407, allocations: 411.6 kB / 327.6 MB, free: 5.277 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001787/0.4088, allocations: 144 kB / 327.7 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002827/0.4117, allocations: 0.8409 MB / 328.6 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002424/0.4142, allocations: 320 kB / 328.9 MB, free: 3.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01385/0.4281, allocations: 5.902 MB / 334.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4282, allocations: 0 / 334.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.067e-06/0.4282, allocations: 0 / 334.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003142/0.4285, allocations: 0 / 334.8 MB, free: 14.06 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.02008/0.4486, allocations: 3.88 MB / 338.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.18e-05/0.4487, allocations: 12.03 kB / 338.7 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01072/0.4595, allocations: 0.8771 MB / 339.6 MB, free: 9.211 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/0.4714, allocations: 2.495 MB / 342.1 MB, free: 6.641 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005853/0.4721, allocations: 254.7 kB / 342.3 MB, free: 6.391 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002086/0.4742, allocations: 339.8 kB / 342.6 MB, free: 6.059 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/0.4968, allocations: 4.504 MB / 347.1 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001705/0.497, allocations: 7.906 kB / 347.1 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009526/0.498, allocations: 136 kB / 347.3 MB, free: 1.367 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003637/0.4984, allocations: 154.7 kB / 347.4 MB, free: 1.215 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0178/0.5162, allocations: 3.891 MB / 351.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03993/0.5562, allocations: 14.18 MB / 365.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01308/0.5693, allocations: 6.892 MB / 372.4 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01082/0.5802, allocations: 3.624 MB / 376 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.936e-05/0.5803, allocations: 51.88 kB / 376.1 MB, free: 3.367 MB / 314.7 MB Notification: Performance of pre-optimization done (n=167): time 6.222e-06/0.5803, allocations: 0 / 376.1 MB, free: 3.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=187): time 0.0305/0.6108, allocations: 8.056 MB / 384.1 MB, free: 11.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.402e-05/0.611, allocations: 73.41 kB / 384.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005697/0.6167, allocations: 2.295 MB / 386.5 MB, free: 8.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003905/0.6171, allocations: 57.7 kB / 386.5 MB, free: 8.676 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001679/0.6188, allocations: 1.487 MB / 388 MB, free: 7.172 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001038/0.6199, allocations: 0.6353 MB / 388.7 MB, free: 6.527 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.6201, allocations: 36 kB / 388.7 MB, free: 6.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002636/0.6204, allocations: 386.8 kB / 389.1 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003035/0.6234, allocations: 0.9058 MB / 390 MB, free: 5.199 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003433/0.6269, allocations: 1.281 MB / 391.3 MB, free: 3.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0037/0.6306, allocations: 1.14 MB / 392.4 MB, free: 2.633 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.71e-05/0.6307, allocations: 4 kB / 392.4 MB, free: 2.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.01066/0.6414, allocations: 2.916 MB / 395.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.997e-05/0.6415, allocations: 45.64 kB / 395.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-05/0.6415, allocations: 8 kB / 395.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002636/0.6442, allocations: 0.5713 MB / 395.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003729/0.6479, allocations: 431.4 kB / 396.4 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01602/0.664, allocations: 7.206 MB / 403.6 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/0.6668, allocations: 88.02 kB / 403.7 MB, free: 7.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003717/0.6672, allocations: 76.23 kB / 403.7 MB, free: 6.996 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 193 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(8,62.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003495/0.6707, allocations: 1.157 MB / 404.9 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008729/0.6716, allocations: 256.8 kB / 405.1 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009721/0.6814, allocations: 2.89 MB / 408 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.973e-05/0.6815, allocations: 28 kB / 408.1 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.499e-05/0.6815, allocations: 8 kB / 408.1 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-05/0.6816, allocations: 7.969 kB / 408.1 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/0.7003, allocations: 6.303 MB / 414.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.313e-05/0.7004, allocations: 0 / 414.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002815/0.7032, allocations: 283.6 kB / 414.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002951/0.7062, allocations: 0.6161 MB / 415.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003653/0.7066, allocations: 47.98 kB / 415.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3831/1.09, allocations: 10.77 MB / 426.1 MB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.09, allocations: 1.938 kB / 426.1 MB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01317/1.103, allocations: 4.207 MB / 430.3 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/1.105, allocations: 0.5352 MB / 430.8 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006646/1.105, allocations: 40.42 kB / 430.9 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002323/1.108, allocations: 99.34 kB / 431 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005825/1.108, allocations: 140.3 kB / 431.1 MB, free: 101.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001991/1.109, allocations: 58.23 kB / 431.2 MB, free: 101.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003943/1.113, allocations: 1.786 MB / 433 MB, free: 100.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.174e-06/1.113, allocations: 0 / 433 MB, free: 100.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003713/1.116, allocations: 0.6932 MB / 433.6 MB, free: 100.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 121 * 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%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001154/1.118, allocations: 303.7 kB / 433.9 MB, free: 100.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008237/1.126, allocations: 2.893 MB / 436.8 MB, free: 99.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/1.126, allocations: 1.203 kB / 436.8 MB, free: 99.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004956/1.131, allocations: 1.945 MB / 438.8 MB, free: 98.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004087/1.135, allocations: 0.5237 MB / 439.3 MB, free: 98.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01897/1.154, allocations: 8.348 MB / 447.7 MB, free: 91.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004469/1.159, allocations: 2.628 MB / 450.3 MB, free: 89.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/1.16, allocations: 183.4 kB / 450.5 MB, free: 89.65 MB / 362.7 MB Notification: Performance of SimCode: time 1.562e-06/1.16, allocations: 0 / 450.5 MB, free: 89.65 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({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[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({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[1] .