Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.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|harmonic.y_rms|harmonic.y_arg|integrator.y|potentialSensor.phi.1.|potentialSensor.phi.2.|potentialSensor.phi.3.|toPolar.y.1.|toPolar.y.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.489e-05, allocations: 3.938 kB / 292.2 MB, free: 8.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08899, allocations: 50.41 MB / 342.6 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3935/0.4825, allocations: 110.3 MB / 452.9 MB, free: 172 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.4828, allocations: 93.69 kB / 453 MB, free: 120 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1334/0.6163, allocations: 35.04 MB / 488 MB, free: 1.035 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.847e-06/0.6163, allocations: 0 / 488 MB, free: 1.035 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001762/0.6165, allocations: 51.94 kB / 488.1 MB, free: 0.9844 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: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.006223/0.6227, allocations: 2.124 MB / 490.2 MB, free: 14.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.6228, allocations: 8.031 kB / 490.2 MB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008269/0.6236, allocations: 233.3 kB / 490.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003652/0.6273, allocations: 1.37 MB / 491.8 MB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00068/0.628, allocations: 240.6 kB / 492.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004395/0.6285, allocations: 159.9 kB / 492.2 MB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005658/0.6341, allocations: 2.492 MB / 494.7 MB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.833e-05/0.6342, allocations: 4 kB / 494.7 MB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002616/0.6345, allocations: 64 kB / 494.8 MB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.6346, allocations: 70.95 kB / 494.8 MB, free: 9.977 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005581/0.6402, allocations: 2.391 MB / 497.2 MB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0192/0.6595, allocations: 8.005 MB / 0.4934 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004291/0.6638, allocations: 1.961 MB / 0.4953 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.6666, allocations: 1.319 MB / 0.4966 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.6668, allocations: 21.28 kB / 0.4966 GB, free: 12.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002394/0.6692, allocations: 1.133 MB / 0.4977 GB, free: 10.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 5.695e-06/0.6692, allocations: 0 / 0.4977 GB, free: 10.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.005501/0.6747, allocations: 2.452 MB / 0.5001 GB, free: 8.508 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002061/0.675, allocations: 286.3 kB / 0.5004 GB, free: 8.164 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/0.6778, allocations: 1.35 MB / 0.5017 GB, free: 6.805 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.6781, allocations: 61.69 kB / 0.5018 GB, free: 6.738 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008739/0.6789, allocations: 0.6856 MB / 0.5024 GB, free: 6.043 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005986/0.6796, allocations: 445.7 kB / 0.5029 GB, free: 5.602 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.6797, allocations: 32 kB / 0.5029 GB, free: 5.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00024/0.68, allocations: 361.9 kB / 0.5032 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.6819, allocations: 0.8981 MB / 0.5041 GB, free: 4.312 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002265/0.6842, allocations: 1.214 MB / 0.5053 GB, free: 2.977 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002002/0.6862, allocations: 0.9807 MB / 0.5063 GB, free: 1.992 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.6863, allocations: 3.953 kB / 0.5063 GB, free: 1.988 MB / 426.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005847/0.6921, allocations: 2.663 MB / 0.5089 GB, free: 15.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.139e-05/0.6922, allocations: 37.7 kB / 0.5089 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-05/0.6923, allocations: 11.98 kB / 0.5089 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002531/0.6948, allocations: 0.7872 MB / 0.5097 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.696, allocations: 215.6 kB / 0.5099 GB, free: 14.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01679/0.7128, allocations: 9.978 MB / 0.5196 GB, free: 3.859 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/0.7157, allocations: 398.2 kB / 0.52 GB, free: 3.469 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001983/0.7159, allocations: 52 kB / 0.5201 GB, free: 3.418 MB / 442.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_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$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.0005672/0.7165, allocations: 266.5 kB / 0.5203 GB, free: 3.148 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/0.7169, allocations: 166 kB / 0.5205 GB, free: 2.984 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005847/0.7227, allocations: 2.666 MB / 0.5231 GB, free: 296 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.7228, allocations: 12 kB / 0.5231 GB, free: 284 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.67e-06/0.7228, allocations: 0 / 0.5231 GB, free: 284 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.7228, allocations: 3.984 kB / 0.5231 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3083/1.031, allocations: 5.188 MB / 0.5282 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.654e-06/1.031, allocations: 2.188 kB / 0.5282 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/1.032, allocations: 134.1 kB / 0.5283 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002342/1.035, allocations: 0.7579 MB / 0.529 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/1.035, allocations: 41.44 kB / 0.5291 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01425/1.049, allocations: 9.722 MB / 0.5386 GB, free: 119.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.645e-06/1.049, allocations: 3.281 kB / 0.5386 GB, free: 119.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007676/1.057, allocations: 4.086 MB / 0.5426 GB, free: 118.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/1.058, allocations: 0.4943 MB / 0.543 GB, free: 118.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003374/1.058, allocations: 40.31 kB / 0.5431 GB, free: 118.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002245/1.061, allocations: 302 kB / 0.5434 GB, free: 118.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009374/1.062, allocations: 378.4 kB / 0.5437 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/1.062, allocations: 39.03 kB / 0.5438 GB, free: 118.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001853/1.064, allocations: 1.04 MB / 0.5448 GB, free: 117.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.064, allocations: 3.25 kB / 0.5448 GB, free: 117.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002247/1.066, allocations: 0.5812 MB / 0.5453 GB, free: 117.7 MB / 442.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_last,harmonic.mean2.y_last) * 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.0005047/1.066, allocations: 246.5 kB / 0.5456 GB, free: 117.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00481/1.071, allocations: 2.868 MB / 0.5484 GB, free: 116.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/1.071, allocations: 0 / 0.5484 GB, free: 116.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/1.074, allocations: 1.968 MB / 0.5503 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/1.076, allocations: 434.8 kB / 0.5507 GB, free: 115.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009156/1.086, allocations: 3.632 MB / 0.5543 GB, free: 113.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/1.087, allocations: 1.731 MB / 0.556 GB, free: 113 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001528/1.089, allocations: 357.7 kB / 0.5563 GB, free: 113 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004676/1.089, allocations: 94.72 kB / 0.5564 GB, free: 113 MB / 442.7 MB Notification: Performance of SimCode: time 1.706e-06/1.089, allocations: 0 / 0.5564 GB, free: 113 MB / 442.7 MB Notification: Performance of Templates: time 0.06764/1.157, allocations: 33.38 MB / 0.589 GB, free: 101.7 MB / 442.7 MB