Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.091e-05/3.138e-05, allocations: 7.906 kB / 258.8 MB, free: 8.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3035, allocations: 44.49 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.01467/0.3182, allocations: 6.363 MB / 309.7 MB, free: 7.301 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008607/0.3269, allocations: 2.413 MB / 312.1 MB, free: 4.883 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.3287, allocations: 71.69 kB / 312.1 MB, free: 4.812 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.3307, allocations: 457.5 kB / 312.6 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003254/0.334, allocations: 0.545 MB / 313.1 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.3357, allocations: 267.7 kB / 313.4 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005405/0.3411, allocations: 1.638 MB / 315 MB, free: 1.91 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005355/0.3466, allocations: 1.849 MB / 316.9 MB, free: 48 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00289/0.3495, allocations: 0.9 MB / 317.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004171/0.3537, allocations: 1.242 MB / 319 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.3559, allocations: 287.7 kB / 319.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001139/0.3571, allocations: 124 kB / 319.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002101/0.3592, allocations: 0.7905 MB / 320.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.361, allocations: 276 kB / 320.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.3712, allocations: 4.953 MB / 325.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3713, allocations: 0 / 325.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.917e-06/0.3713, allocations: 0 / 325.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000181/0.3715, allocations: 0 / 325.4 MB, free: 7.465 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.01051/0.382, allocations: 2.893 MB / 328.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.3821, allocations: 16.02 kB / 328.3 MB, free: 4.496 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001975/0.3841, allocations: 391.7 kB / 328.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005352/0.3895, allocations: 1.897 MB / 330.6 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/0.3898, allocations: 221.8 kB / 330.8 MB, free: 1.938 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000895/0.3907, allocations: 280 kB / 331.1 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.4037, allocations: 4.144 MB / 335.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.212e-05/0.4038, allocations: 0 / 335.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005954/0.4044, allocations: 124 kB / 335.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003053/0.4048, allocations: 141.9 kB / 335.5 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/0.4163, allocations: 3.47 MB / 339 MB, free: 9.727 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03177/0.4481, allocations: 11 MB / 350 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005002/0.4531, allocations: 2.631 MB / 352.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004496/0.4536, allocations: 122.1 kB / 352.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/0.4537, allocations: 43.67 kB / 352.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=128): time 4.959e-06/0.4537, allocations: 7.938 kB / 352.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.01606/0.4698, allocations: 5.573 MB / 358.4 MB, free: 5.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.347e-05/0.4699, allocations: 94.38 kB / 358.5 MB, free: 5.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00447/0.4744, allocations: 1.706 MB / 360.2 MB, free: 3.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003068/0.4748, allocations: 49.7 kB / 360.2 MB, free: 3.918 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001344/0.4761, allocations: 1.256 MB / 361.5 MB, free: 2.648 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007767/0.477, allocations: 453.5 kB / 361.9 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.4772, allocations: 28 kB / 361.9 MB, free: 2.172 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002307/0.4774, allocations: 370.8 kB / 362.3 MB, free: 1.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.4799, allocations: 0.8392 MB / 363.1 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002885/0.4828, allocations: 1.179 MB / 364.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.4858, allocations: 1.033 MB / 365.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-05/0.4859, allocations: 4 kB / 365.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.007463/0.4934, allocations: 2.437 MB / 367.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.4934, allocations: 12.19 kB / 367.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.152e-05/0.4935, allocations: 15.98 kB / 367.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003136/0.4966, allocations: 488.3 kB / 368.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/0.4994, allocations: 331.5 kB / 368.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009191/0.5086, allocations: 4.351 MB / 373 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002416/0.5111, allocations: 87.98 kB / 373.1 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003919/0.5115, allocations: 63.97 kB / 373.1 MB, free: 6.68 MB / 314.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 (154): * Single equations (assignments): 149 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002975/0.5145, allocations: 1.048 MB / 374.2 MB, free: 5.621 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007726/0.5153, allocations: 185.8 kB / 374.4 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006427/0.5218, allocations: 2.18 MB / 376.5 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.686e-05/0.5219, allocations: 23.98 kB / 376.6 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.5219, allocations: 8 kB / 376.6 MB, free: 3.207 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.192e-05/0.5219, allocations: 3.984 kB / 376.6 MB, free: 3.203 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/0.5367, allocations: 5.169 MB / 381.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.5368, allocations: 0 / 381.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/0.5388, allocations: 223.7 kB / 382 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003052/0.5419, allocations: 481.1 kB / 382.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003219/0.5423, allocations: 27.98 kB / 382.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009185/0.5515, allocations: 4.305 MB / 386.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.5516, allocations: 8.094 kB / 386.8 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009182/0.5608, allocations: 3.305 MB / 390.1 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.5624, allocations: 462.7 kB / 390.5 MB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005513/0.563, allocations: 27.98 kB / 390.5 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001948/0.565, allocations: 103.9 kB / 390.7 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003316/0.5653, allocations: 96.8 kB / 390.7 MB, free: 4.758 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/0.5655, allocations: 35.98 kB / 390.8 MB, free: 4.723 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003292/0.5688, allocations: 1.326 MB / 392.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.5689, allocations: 0 / 392.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002737/0.5716, allocations: 0.5547 MB / 392.7 MB, free: 2.848 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 93 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007138/0.5724, allocations: 197.3 kB / 392.9 MB, free: 2.652 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006345/0.5787, allocations: 2.222 MB / 395.1 MB, free: 428 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.5788, allocations: 0 / 395.1 MB, free: 428 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003815/0.5826, allocations: 1.228 MB / 396.3 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003909/0.5866, allocations: 477.5 kB / 396.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01726/0.6039, allocations: 6.733 MB / 403.5 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003809/0.6078, allocations: 2.413 MB / 405.9 MB, free: 5.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/0.6089, allocations: 143.4 kB / 406.1 MB, free: 5.348 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.609, allocations: 0 / 406.1 MB, free: 5.348 MB / 346.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(transformer.v1)[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({-source.i[1], -source.i[2], -source.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(transformer.v2)[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({-transformer.l2sigma.inductor[1].i, -transformer.l2sigma.inductor[2].i, -transformer.l2sigma.inductor[3].i})[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(transformer.v1)[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(transformer.v2)[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({-transformer.i2[1], -transformer.l2sigma.inductor[2].i, -transformer.l2sigma.inductor[3].i})[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({-source.i[1], -source.i[2], -source.i[3]})[1] .