Running command: translateModel(Modelica.Electrical.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.TransformerTestbench") Notification: Performance of loadModel(Modelica): time 1.157/1.157, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.463e-05/2.453e-05, allocations: 4 kB / 154.5 MB, free: 2.84 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05183/0.05187, allocations: 25.18 MB / 179.7 MB, free: 9.625 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.TransformerTestbench): time 0.008923/0.06085, allocations: 5.383 MB / 185.1 MB, free: 4.223 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.004862/0.06577, allocations: 1.722 MB / 186.8 MB, free: 2.496 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000995/0.06681, allocations: 63.75 kB / 186.9 MB, free: 2.434 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.06812, allocations: 397.8 kB / 187.2 MB, free: 2.043 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001658/0.0698, allocations: 418.6 kB / 187.6 MB, free: 1.633 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009502/0.07078, allocations: 231.6 kB / 187.9 MB, free: 1.406 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.003193/0.07399, allocations: 1.341 MB / 189.2 MB, free: 64 kB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003367/0.0774, allocations: 1.707 MB / 190.9 MB, free: 14.34 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001855/0.07931, allocations: 0.7909 MB / 191.7 MB, free: 13.55 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00233/0.08168, allocations: 1.004 MB / 192.7 MB, free: 12.54 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008802/0.0826, allocations: 128 kB / 192.8 MB, free: 12.41 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004959/0.08312, allocations: 108 kB / 192.9 MB, free: 12.31 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.08457, allocations: 0.7438 MB / 193.7 MB, free: 11.56 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009217/0.08552, allocations: 232 kB / 193.9 MB, free: 11.34 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006422/0.09196, allocations: 4.239 MB / 198.2 MB, free: 7.086 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.09202, allocations: 0 / 198.2 MB, free: 7.086 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.09204, allocations: 4 kB / 198.2 MB, free: 7.082 MB / 170.7 MB Notification: Performance of Transformations before backend: time 0.0001541/0.0922, allocations: 4 kB / 198.2 MB, free: 7.078 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 672 * Number of variables: 672 Notification: Performance of Generate backend data structure: time 0.008856/0.1011, allocations: 2.637 MB / 200.8 MB, free: 4.379 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.1011, allocations: 8.031 kB / 200.8 MB, free: 4.371 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.1025, allocations: 312.2 kB / 201.1 MB, free: 4.062 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005057/0.1076, allocations: 1.716 MB / 202.8 MB, free: 2.289 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002862/0.108, allocations: 189 kB / 203 MB, free: 2.102 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008561/0.1088, allocations: 247.9 kB / 203.3 MB, free: 1.859 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1505/0.2594, allocations: 3.662 MB / 206.9 MB, free: 19.38 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.56e-05/0.2595, allocations: 3.188 kB / 206.9 MB, free: 19.38 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004641/0.26, allocations: 105.2 kB / 207 MB, free: 19.3 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002511/0.2602, allocations: 127.7 kB / 207.1 MB, free: 19.29 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009944/0.2702, allocations: 3.049 MB / 210.2 MB, free: 18.18 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0231/0.2933, allocations: 9.417 MB / 219.6 MB, free: 12.09 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003762/0.2971, allocations: 2.528 MB / 222.1 MB, free: 10.09 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001422/0.2973, allocations: 25.88 kB / 222.2 MB, free: 10.09 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.2974, allocations: 45.72 kB / 222.2 MB, free: 10.04 MB / 170.7 MB Notification: Performance of pre-optimization done (n=117): time 5.269e-06/0.2974, allocations: 3.984 kB / 222.2 MB, free: 10.04 MB / 170.7 MB Notification: Performance of matching and sorting (n=121): time 0.01354/0.3109, allocations: 5.305 MB / 227.5 MB, free: 5.664 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.311, allocations: 94.11 kB / 227.6 MB, free: 5.555 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7955:5-7956:40:writable] Warning: Parameter transformerData.P_sc has no value, and is fixed during initialization (fixed=true), using available start value (start=300.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7953:5-7954:36:writable] Warning: Parameter transformerData.v_sc has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7951:5-7952:33:writable] Warning: Parameter transformerData.SNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=30000.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7945:5-7946:86:writable] Warning: Parameter transformerData.V2 has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7940:5-7941:53:writable] Warning: Parameter transformerData.V1 has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7939:5-7939:73:writable] Warning: Parameter transformerData.f has no value, and is fixed during initialization (fixed=true), using available start value (start=50.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/0.3136, allocations: 1.284 MB / 228.9 MB, free: 4.262 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.3139, allocations: 47.11 kB / 228.9 MB, free: 4.211 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006883/0.3146, allocations: 1.123 MB / 230.1 MB, free: 3.078 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004295/0.315, allocations: 416 kB / 230.5 MB, free: 2.676 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.3151, allocations: 24.62 kB / 230.5 MB, free: 2.652 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3152, allocations: 374.7 kB / 230.9 MB, free: 2.277 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.317, allocations: 0.7159 MB / 231.6 MB, free: 1.562 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.3188, allocations: 1.036 MB / 232.6 MB, free: 400 kB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002298/0.3212, allocations: 0.8989 MB / 233.5 MB, free: 15.49 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/0.3212, allocations: 4 kB / 233.5 MB, free: 15.49 MB / 186.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006257/0.3275, allocations: 2.178 MB / 235.7 MB, free: 13.3 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.3276, allocations: 8 kB / 235.7 MB, free: 13.29 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.3276, allocations: 8 kB / 235.7 MB, free: 13.29 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003124/0.3307, allocations: 0.4962 MB / 236.2 MB, free: 12.79 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/0.3332, allocations: 295.5 kB / 236.5 MB, free: 12.5 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009362/0.3426, allocations: 4.395 MB / 240.9 MB, free: 7.973 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.3444, allocations: 87.97 kB / 241 MB, free: 7.887 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001946/0.3446, allocations: 51.98 kB / 241 MB, free: 7.836 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: transformer.l1sigma.inductor[3].i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real [3] transformer.l1sigma.inductor[2].i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 129 * 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 {(3,77.8%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002315/0.3469, allocations: 0.9526 MB / 242 MB, free: 6.875 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005102/0.3474, allocations: 174 kB / 242.1 MB, free: 6.703 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000609/0.348, allocations: 207.4 kB / 242.4 MB, free: 6.492 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.387e-05/0.3481, allocations: 12 kB / 242.4 MB, free: 6.48 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/0.3481, allocations: 4 kB / 242.4 MB, free: 6.477 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.3482, allocations: 3.984 kB / 242.4 MB, free: 6.473 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/0.3601, allocations: 4.496 MB / 246.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.3602, allocations: 4 kB / 246.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001857/0.3621, allocations: 207.6 kB / 247.1 MB, free: 1.727 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003016/0.3651, allocations: 488.5 kB / 247.6 MB, free: 1.246 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/0.3653, allocations: 27.98 kB / 247.6 MB, free: 1.219 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00909/0.3744, allocations: 4.348 MB / 251.9 MB, free: 12.74 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3744, allocations: 0 / 251.9 MB, free: 12.74 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008243/0.3827, allocations: 3.009 MB / 254.9 MB, free: 9.711 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/0.384, allocations: 383.1 kB / 255.3 MB, free: 9.316 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003984/0.3844, allocations: 29.72 kB / 255.3 MB, free: 9.289 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.3857, allocations: 79.97 kB / 255.4 MB, free: 9.211 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003003/0.3861, allocations: 84.81 kB / 255.5 MB, free: 9.129 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.3862, allocations: 31.98 kB / 255.5 MB, free: 9.098 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.002294/0.3885, allocations: 0.9957 MB / 256.5 MB, free: 8.102 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3885, allocations: 4 kB / 256.5 MB, free: 8.098 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.002217/0.3908, allocations: 466.9 kB / 257 MB, free: 7.645 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * 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 {(3,88.9%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005453/0.3913, allocations: 167.5 kB / 257.2 MB, free: 7.484 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.005782/0.3971, allocations: 2.031 MB / 259.2 MB, free: 5.441 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.3972, allocations: 0 / 259.2 MB, free: 5.441 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003462/0.4007, allocations: 1.156 MB / 260.3 MB, free: 4.273 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003766/0.4045, allocations: 418.5 kB / 260.7 MB, free: 3.863 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01333/0.4178, allocations: 5.791 MB / 266.5 MB, free: 14.04 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003268/0.4212, allocations: 2.232 MB / 268.8 MB, free: 11.77 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008011/0.422, allocations: 111.4 kB / 268.9 MB, free: 11.66 MB / 218.7 MB Notification: Performance of SimCode: time 1.152e-06/0.422, allocations: 0 / 268.9 MB, free: 11.66 MB / 218.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(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(load.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.l1sigma.inductor[1].i, transformer.l1sigma.inductor[2].i, transformer.l1sigma.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(load.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.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.l1sigma.inductor[1].i, transformer.l1sigma.inductor[2].i, transformer.l1sigma.inductor[3].i})[1] .