Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadModel(Modelica): time 1.739/1.739, allocations: 171.1 MB / 186.3 MB, free: 1.426 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.507e-05, allocations: 7.984 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0861/0.08616, allocations: 38.78 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.01116/0.09739, allocations: 6.316 MB / 273.2 MB, free: 10.77 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006865/0.1043, allocations: 2.385 MB / 275.6 MB, free: 8.375 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.1061, allocations: 75.69 kB / 275.7 MB, free: 8.301 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001956/0.1081, allocations: 445.6 kB / 276.1 MB, free: 7.863 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0032/0.1113, allocations: 0.5489 MB / 276.7 MB, free: 7.312 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.1129, allocations: 259.7 kB / 276.9 MB, free: 7.059 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.1177, allocations: 1.65 MB / 278.6 MB, free: 5.406 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004223/0.122, allocations: 1.857 MB / 280.4 MB, free: 3.535 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.1245, allocations: 0.9234 MB / 281.3 MB, free: 2.609 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003351/0.1279, allocations: 1.176 MB / 282.5 MB, free: 1.43 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/0.1295, allocations: 215.8 kB / 282.7 MB, free: 1.219 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000768/0.1303, allocations: 124 kB / 282.9 MB, free: 1.098 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001818/0.1322, allocations: 0.8022 MB / 283.7 MB, free: 300 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.1336, allocations: 276 kB / 283.9 MB, free: 24 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008515/0.1421, allocations: 4.85 MB / 288.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1422, allocations: 0 / 288.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1422, allocations: 0 / 288.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001995/0.1424, allocations: 0 / 288.8 MB, free: 11.16 MB / 250.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.01052/0.1529, allocations: 2.885 MB / 291.7 MB, free: 8.215 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.153, allocations: 8.031 kB / 291.7 MB, free: 8.207 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.1551, allocations: 391.7 kB / 292 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006041/0.1612, allocations: 1.803 MB / 293.9 MB, free: 5.961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003488/0.1616, allocations: 217.8 kB / 294.1 MB, free: 5.746 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.1628, allocations: 283.9 kB / 294.3 MB, free: 5.469 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01447/0.1773, allocations: 4.152 MB / 298.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001041/0.1775, allocations: 4 kB / 298.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009034/0.1784, allocations: 120 kB / 298.6 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003105/0.1787, allocations: 141.8 kB / 298.8 MB, free: 1.004 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2539/0.4327, allocations: 3.473 MB / 302.2 MB, free: 26.14 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03119/0.4639, allocations: 10.91 MB / 313.1 MB, free: 20.25 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00435/0.4683, allocations: 2.639 MB / 315.8 MB, free: 18.18 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004098/0.4688, allocations: 128.3 kB / 315.9 MB, free: 18.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.4688, allocations: 46.62 kB / 315.9 MB, free: 18.02 MB / 250.7 MB Notification: Performance of pre-optimization done (n=128): time 5.19e-06/0.4689, allocations: 0 / 315.9 MB, free: 18.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=132): time 0.01426/0.4831, allocations: 5.558 MB / 321.5 MB, free: 14.68 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.4832, allocations: 89.77 kB / 321.6 MB, free: 14.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/0.4865, allocations: 1.603 MB / 323.2 MB, free: 13.33 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002679/0.4868, allocations: 50.25 kB / 323.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007905/0.4876, allocations: 1.241 MB / 324.5 MB, free: 12.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000487/0.4881, allocations: 461.3 kB / 324.9 MB, free: 11.58 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.4882, allocations: 24 kB / 325 MB, free: 11.55 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.4883, allocations: 370.7 kB / 325.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001902/0.4902, allocations: 0.8354 MB / 326.2 MB, free: 10.35 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002053/0.4923, allocations: 1.189 MB / 327.3 MB, free: 9.012 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.4946, allocations: 1.025 MB / 328.4 MB, free: 7.988 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.4946, allocations: 4 kB / 328.4 MB, free: 7.984 MB / 250.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.006261/0.5009, allocations: 2.452 MB / 330.8 MB, free: 5.523 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.501, allocations: 9.562 kB / 330.8 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.501, allocations: 12 kB / 330.8 MB, free: 5.504 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002882/0.5039, allocations: 496 kB / 331.3 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002561/0.5065, allocations: 327.5 kB / 331.6 MB, free: 4.699 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007794/0.5144, allocations: 4.358 MB / 336 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/0.5165, allocations: 91.89 kB / 336.1 MB, free: 112 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003409/0.5169, allocations: 62.81 kB / 336.2 MB, free: 52 kB / 250.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.002886/0.5198, allocations: 1.032 MB / 337.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007231/0.5205, allocations: 185.8 kB / 337.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006775/0.5273, allocations: 2.197 MB / 339.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.508e-05/0.5275, allocations: 16 kB / 339.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.5275, allocations: 4 kB / 339.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-05/0.5275, allocations: 7.969 kB / 339.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/0.5433, allocations: 5.111 MB / 344.7 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.5433, allocations: 0 / 344.7 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/0.5454, allocations: 227.8 kB / 344.9 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003065/0.5485, allocations: 464.3 kB / 345.4 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002631/0.5488, allocations: 32.61 kB / 345.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009217/0.558, allocations: 4.311 MB / 349.7 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5581, allocations: 0 / 349.7 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009212/0.5673, allocations: 3.305 MB / 353 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/0.5689, allocations: 454.8 kB / 353.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005669/0.5695, allocations: 30.7 kB / 353.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001855/0.5714, allocations: 105.3 kB / 353.6 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003773/0.5718, allocations: 88.83 kB / 353.7 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/0.572, allocations: 39.98 kB / 353.7 MB, free: 14.22 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.003153/0.5752, allocations: 1.24 MB / 355 MB, free: 12.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.928e-06/0.5752, allocations: 0 / 355 MB, free: 12.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002831/0.5781, allocations: 0.5522 MB / 355.5 MB, free: 12.44 MB / 282.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.0007294/0.5788, allocations: 173.3 kB / 355.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00643/0.5853, allocations: 2.225 MB / 357.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/0.5853, allocations: 4 kB / 357.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003712/0.5891, allocations: 1.223 MB / 359.1 MB, free: 8.801 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003691/0.5928, allocations: 471.5 kB / 359.6 MB, free: 8.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/0.6097, allocations: 6.589 MB / 366.2 MB, free: 1.707 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003662/0.6134, allocations: 2.404 MB / 368.6 MB, free: 15.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.6145, allocations: 131.4 kB / 368.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6145, allocations: 0 / 368.7 MB, free: 15.14 MB / 298.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] .