Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|filter.1..x.1.|filter.1..x.2.|filter.2..x.1.|filter.2..x.2.|harmonic.mean1.x|harmonic.mean2.x|integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 205.8 MB / 218.9 MB, free: 9.363 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.953e-05/2.96e-05, allocations: 7.984 kB / 269.4 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08367/0.08372, allocations: 47.57 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3778/0.4616, allocations: 109.6 MB / 426.5 MB, free: 10.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.4619, allocations: 91.38 kB / 426.6 MB, free: 10.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1354/0.5973, allocations: 34.64 MB / 461.3 MB, free: 13.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.032e-06/0.5973, allocations: 4 kB / 461.3 MB, free: 13.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001708/0.5975, allocations: 47.94 kB / 461.3 MB, free: 13.51 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.005608/0.6031, allocations: 2.117 MB / 463.5 MB, free: 11.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.6032, allocations: 8.031 kB / 463.5 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000584/0.6038, allocations: 233.3 kB / 463.7 MB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003275/0.6071, allocations: 1.384 MB / 465.1 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006522/0.6077, allocations: 233.9 kB / 465.3 MB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003792/0.6081, allocations: 158.4 kB / 465.5 MB, free: 9.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00513/0.6133, allocations: 2.484 MB / 467.9 MB, free: 8.016 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.499e-05/0.6133, allocations: 4 kB / 467.9 MB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002562/0.6136, allocations: 70.34 kB / 468 MB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/0.6137, allocations: 66.45 kB / 468.1 MB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005474/0.6192, allocations: 2.387 MB / 470.5 MB, free: 5.664 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01982/0.6391, allocations: 8.005 MB / 478.5 MB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004304/0.6434, allocations: 1.969 MB / 480.4 MB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002781/0.6462, allocations: 1.331 MB / 481.8 MB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001277/0.6464, allocations: 17.31 kB / 481.8 MB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002388/0.6488, allocations: 1.137 MB / 482.9 MB, free: 9.043 MB / 394.7 MB Notification: Performance of pre-optimization done (n=141): time 5.989e-06/0.6488, allocations: 0 / 482.9 MB, free: 9.043 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.005551/0.6544, allocations: 2.455 MB / 485.4 MB, free: 6.562 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002153/0.6546, allocations: 286.3 kB / 485.7 MB, free: 6.223 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002771/0.6574, allocations: 1.346 MB / 487 MB, free: 4.867 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.6576, allocations: 65.62 kB / 487.1 MB, free: 4.797 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008747/0.6585, allocations: 0.6855 MB / 487.8 MB, free: 4.102 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005826/0.6591, allocations: 441.9 kB / 488.2 MB, free: 3.664 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.6593, allocations: 32 kB / 488.2 MB, free: 3.633 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002467/0.6595, allocations: 369.9 kB / 488.6 MB, free: 3.266 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00198/0.6615, allocations: 0.9019 MB / 489.5 MB, free: 2.363 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/0.6638, allocations: 1.214 MB / 490.7 MB, free: 1.027 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002036/0.6659, allocations: 0.9786 MB / 491.7 MB, free: 44 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.975e-06/0.6659, allocations: 0 / 491.7 MB, free: 44 kB / 394.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005952/0.6719, allocations: 2.674 MB / 494.3 MB, free: 13.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.319e-05/0.672, allocations: 33.7 kB / 494.4 MB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.864e-05/0.672, allocations: 11.95 kB / 494.4 MB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002634/0.6747, allocations: 0.7795 MB / 495.2 MB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.6759, allocations: 219.6 kB / 495.4 MB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01704/0.693, allocations: 9.98 MB / 0.4935 GB, free: 1.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002836/0.6959, allocations: 398.2 kB / 0.4939 GB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.6961, allocations: 52 kB / 0.4939 GB, free: 1.469 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.pwm.svPWM.firstTrigger,pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiRef,pwm.svPWM.phiRef,$PRE.pwm.svPWM.uRef,pwm.svPWM.uRef,$whenCondition3,$whenCondition2,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y,$whenCondition4,$whenCondition1,pwm.svPWM.sampleTrigger,$PRE.pwm.svPWM.ka,pwm.svPWM.ka,$PRE.pwm.svPWM.kb,pwm.svPWM.kb,$PRE.pwm.svPWM.ta,pwm.svPWM.ta,$PRE.pwm.svPWM.tb,pwm.svPWM.tb,$PRE.pwm.svPWM.t0,pwm.svPWM.t0,$PRE.pwm.svPWM.T0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 15,4 15,4 15} Notification: Performance of prepare postOptimizeDAE: time 0.0005684/0.6967, allocations: 266.5 kB / 0.4942 GB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003735/0.6971, allocations: 169.9 kB / 0.4944 GB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006007/0.7031, allocations: 2.666 MB / 0.497 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.7031, allocations: 12 kB / 0.497 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.364e-06/0.7032, allocations: 0 / 0.497 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.639e-05/0.7032, allocations: 15.92 kB / 0.497 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01159/0.7148, allocations: 5.189 MB / 0.5021 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.143e-06/0.7148, allocations: 0 / 0.5021 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/0.7158, allocations: 139.8 kB / 0.5022 GB, free: 8.898 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002447/0.7183, allocations: 0.754 MB / 0.5029 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001835/0.7185, allocations: 43.97 kB / 0.503 GB, free: 8.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.236/0.9545, allocations: 9.708 MB / 0.5125 GB, free: 121.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.96e-06/0.9546, allocations: 0 / 0.5125 GB, free: 121.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008499/0.9631, allocations: 4.082 MB / 0.5164 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/0.9644, allocations: 0.5015 MB / 0.5169 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003655/0.9648, allocations: 36.83 kB / 0.517 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002777/0.9676, allocations: 295.4 kB / 0.5172 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/0.9687, allocations: 381.5 kB / 0.5176 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/0.9689, allocations: 41.3 kB / 0.5176 GB, free: 121.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002092/0.971, allocations: 1.041 MB / 0.5187 GB, free: 121.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.84e-07/0.971, allocations: 0 / 0.5187 GB, free: 121.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002346/0.9733, allocations: 0.5828 MB / 0.5192 GB, free: 121.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (harmonic.mean1.x,harmonic.mean2.x,integrator.y,filter[1].x[1],filter[1].x[2],filter[2].x[1],filter[2].x[2]) * Number of discrete variables: 39 (pwm.svPWM.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pwm.svPWM.firstTrigger,pwm.svPWM.uRef,pwm.svPWM.phiRef,pwm.svPWM.phiPos,pwm.svPWM.ka,pwm.svPWM.kb,pwm.svPWM.phiSec,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.t0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 13 (harmonic.mean1.x,harmonic.mean2.x,pwm.svPWM.T0,pwm.svPWM.t0,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.phiSec,pwm.svPWM.kb,pwm.svPWM.ka,pwm.svPWM.phiPos,pwm.svPWM.phiRef,pwm.svPWM.uRef,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 14,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005052/0.9739, allocations: 230.4 kB / 0.5195 GB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005217/0.9791, allocations: 2.869 MB / 0.5223 GB, free: 120.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.296e-06/0.9791, allocations: 2.797 kB / 0.5223 GB, free: 120.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003287/0.9824, allocations: 1.967 MB / 0.5242 GB, free: 120.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.9846, allocations: 433.7 kB / 0.5246 GB, free: 120.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008902/0.9935, allocations: 3.626 MB / 0.5281 GB, free: 119.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.9951, allocations: 1.734 MB / 0.5298 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001522/0.9966, allocations: 364.3 kB / 0.5302 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004698/0.9971, allocations: 95.2 kB / 0.5303 GB, free: 119 MB / 426.7 MB Notification: Performance of SimCode: time 1.686e-06/0.9971, allocations: 0 / 0.5303 GB, free: 119 MB / 426.7 MB Notification: Performance of Templates: time 0.06816/1.065, allocations: 33.39 MB / 0.5629 GB, free: 111.9 MB / 426.7 MB