Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Ie.re|Ie.im|Im.re|Im.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance") Notification: Performance of loadModel(Modelica): time 1.867/1.867, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.288e-05/2.29e-05, allocations: 0 / 249.6 MB, free: 15.28 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2465, allocations: 44.5 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1373/0.3838, allocations: 89.49 MB / 383.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.3842, allocations: 83.89 kB / 383.7 MB, free: 8.375 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.258/1.643, allocations: 309.2 MB / 0.6766 GB, free: 23.42 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.897e-06/1.643, allocations: 0 / 0.6766 GB, free: 23.42 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004031/1.643, allocations: 179.8 kB / 0.6768 GB, free: 23.25 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2549 * Number of variables: 2549 Notification: Performance of Generate backend data structure: time 0.03771/1.681, allocations: 9.556 MB / 0.6861 GB, free: 13.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/1.681, allocations: 12.03 kB / 0.6861 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04057/1.722, allocations: 5.51 MB / 0.6915 GB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01844/1.74, allocations: 6.132 MB / 0.6975 GB, free: 1.875 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009131/1.741, allocations: 288 kB / 0.6978 GB, free: 1.594 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004021/1.745, allocations: 483.9 kB / 0.6982 GB, free: 1.121 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.549/2.294, allocations: 14.15 MB / 0.712 GB, free: 44.38 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04038/2.334, allocations: 15.27 MB / 0.727 GB, free: 43.6 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003027/2.335, allocations: 3.531 kB / 0.727 GB, free: 43.6 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002786/2.338, allocations: 9.406 kB / 0.727 GB, free: 43.6 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008593/2.338, allocations: 0.7142 MB / 0.7277 GB, free: 43.58 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1022/2.441, allocations: 50.47 MB / 0.777 GB, free: 29.11 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02246/2.463, allocations: 13.79 MB / 0.7904 GB, free: 22.4 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01603/2.479, allocations: 9.335 MB / 0.7995 GB, free: 18.29 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001105/2.48, allocations: 315.4 kB / 0.7998 GB, free: 18.03 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.022e-05/2.481, allocations: 116.6 kB / 0.8 GB, free: 17.91 MB / 394.8 MB Notification: Performance of pre-optimization done (n=968): time 1.776e-05/2.481, allocations: 0 / 0.8 GB, free: 17.91 MB / 394.8 MB Notification: Performance of matching and sorting (n=968): time 0.04372/2.524, allocations: 18.65 MB / 0.8182 GB, free: 1.945 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/2.525, allocations: 158.1 kB / 0.8183 GB, free: 1.773 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004747/2.529, allocations: 1.504 MB / 0.8198 GB, free: 488 kB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002346/2.532, allocations: 27.89 kB / 0.8198 GB, free: 456 kB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003079/2.535, allocations: 2.48 MB / 0.8222 GB, free: 14.37 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.006575/2.541, allocations: 3.039 MB / 0.8252 GB, free: 11.55 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001858/2.543, allocations: 0 / 0.8252 GB, free: 11.55 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.001268/2.545, allocations: 0.6549 MB / 0.8258 GB, free: 10.99 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0148/2.559, allocations: 6.56 MB / 0.8322 GB, free: 5.258 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01992/2.579, allocations: 7.337 MB / 0.8394 GB, free: 15.45 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02373/2.603, allocations: 9.067 MB / 0.8483 GB, free: 8.09 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.508e-05/2.603, allocations: 3.469 kB / 0.8483 GB, free: 8.09 MB / 426.8 MB Notification: Performance of matching and sorting (n=1038) (initialization): time 0.3091/2.912, allocations: 20.06 MB / 0.8679 GB, free: 70.16 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/2.913, allocations: 6.25 kB / 0.8679 GB, free: 70.16 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.92e-05/2.913, allocations: 4.625 kB / 0.8679 GB, free: 70.16 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01619/2.929, allocations: 6.531 MB / 0.8743 GB, free: 70.07 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007157/2.936, allocations: 1.231 MB / 0.8755 GB, free: 70.07 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/2.956, allocations: 13.29 MB / 0.8884 GB, free: 67.93 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00607/2.962, allocations: 0.7137 MB / 0.8891 GB, free: 67.93 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001987/2.964, allocations: 272.1 kB / 0.8894 GB, free: 67.93 MB / 426.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: inductor_e.inductor[4].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[4].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_e.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_e.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] inductor_e.inductor[5].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[5].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_e.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[5].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[5].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[4].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[4].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistor_m.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[5].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[5].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[4].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[4].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_m.plugToPins_p.pin_p[5].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[4].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[5].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[4].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (599): * Single equations (assignments): 520 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 75 * 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: 0 * Non-linear torn systems: 4 {10 25,10 63,10 25,10 95} Notification: Performance of prepare postOptimizeDAE: time 0.002164/2.966, allocations: 296.2 kB / 0.8897 GB, free: 67.8 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00138/2.967, allocations: 407.2 kB / 0.8901 GB, free: 67.58 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04461/3.012, allocations: 20.59 MB / 0.9102 GB, free: 67.14 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003749/3.012, allocations: 280.4 kB / 0.9104 GB, free: 67.14 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.412e-05/3.012, allocations: 0 / 0.9104 GB, free: 67.14 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001302/3.013, allocations: 44.52 kB / 0.9105 GB, free: 67.14 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07152/3.084, allocations: 34.3 MB / 0.944 GB, free: 57.43 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.583e-05/3.084, allocations: 0 / 0.944 GB, free: 57.43 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006653/3.091, allocations: 1.162 MB / 0.9451 GB, free: 57.39 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01578/3.107, allocations: 6.548 MB / 0.9515 GB, free: 55.62 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001981/3.109, allocations: 114.9 kB / 0.9516 GB, free: 55.58 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01904/3.128, allocations: 13.24 MB / 0.9646 GB, free: 45.89 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.387e-06/3.128, allocations: 7.953 kB / 0.9646 GB, free: 45.89 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05819/3.186, allocations: 30.25 MB / 0.9941 GB, free: 19.87 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005762/3.192, allocations: 2.132 MB / 0.9962 GB, free: 18.09 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/3.194, allocations: 3.703 kB / 0.9962 GB, free: 18.09 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005169/3.199, allocations: 355.2 kB / 0.9965 GB, free: 17.89 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002433/3.201, allocations: 0.7089 MB / 0.9972 GB, free: 17.44 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001002/3.202, allocations: 261.1 kB / 0.9975 GB, free: 17.21 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.001859/3.204, allocations: 1.151 MB / 0.9986 GB, free: 16.21 MB / 426.8 MB Notification: Performance of sort global known variables: time 8.88e-07/3.204, allocations: 0 / 0.9986 GB, free: 16.21 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.00731/3.212, allocations: 2.175 MB / 1.001 GB, free: 14.07 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (resistor_m.plug_p.reference.gamma,resistor_e.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (574): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 75 * 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: 0 * Non-linear torn systems: 4 {10 25,10 63,10 25,10 95} Notification: Performance of Backend phase and start with SimCode phase: time 0.00183/3.214, allocations: 203.9 kB / 1.001 GB, free: 13.93 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.2723/3.486, allocations: 15.75 MB / 1.016 GB, free: 77.36 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/3.486, allocations: 4.344 kB / 1.016 GB, free: 77.36 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02032/3.506, allocations: 8.431 MB / 1.025 GB, free: 77.29 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004908/3.511, allocations: 445.6 kB / 1.025 GB, free: 77.28 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04389/3.555, allocations: 19.82 MB / 1.044 GB, free: 75 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01133/3.566, allocations: 6.249 MB / 1.05 GB, free: 74.14 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003479/3.57, allocations: 367.4 kB / 1.051 GB, free: 74.14 MB / 426.8 MB Notification: Performance of SimCode: time 1.934e-06/3.57, allocations: 0 / 1.051 GB, free: 74.14 MB / 426.8 MB Notification: Performance of Templates: time 0.9555/4.526, allocations: 313.2 MB / 1.357 GB, free: 103.2 MB / 458.8 MB