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_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadModel(Modelica): time 1.855/1.855, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.964e-05, allocations: 4 kB / 292.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09029/0.09034, allocations: 50.42 MB / 343.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4027/0.4931, allocations: 110.3 MB / 453.4 MB, free: 252 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.4934, allocations: 92.69 kB / 453.5 MB, free: 200 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1373/0.6307, allocations: 35.04 MB / 488.6 MB, free: 1.133 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.985e-06/0.6308, allocations: 4 kB / 488.6 MB, free: 1.129 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001596/0.6309, allocations: 47.94 kB / 488.6 MB, free: 1.082 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.005562/0.6365, allocations: 2.132 MB / 490.7 MB, free: 14.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.6366, allocations: 8.031 kB / 490.7 MB, free: 14.87 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005797/0.6372, allocations: 237.2 kB / 491 MB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003373/0.6406, allocations: 1.374 MB / 492.4 MB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006806/0.6413, allocations: 232.6 kB / 492.6 MB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003983/0.6417, allocations: 160 kB / 492.7 MB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005363/0.6471, allocations: 2.492 MB / 495.2 MB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/0.6471, allocations: 0 / 495.2 MB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002648/0.6474, allocations: 68 kB / 495.3 MB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/0.6475, allocations: 70.95 kB / 495.4 MB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005375/0.6529, allocations: 2.391 MB / 497.8 MB, free: 7.672 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01823/0.6712, allocations: 7.997 MB / 0.4939 GB, free: 15.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004117/0.6753, allocations: 1.969 MB / 0.4958 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002661/0.678, allocations: 1.311 MB / 0.4971 GB, free: 12.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.6782, allocations: 21.31 kB / 0.4971 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002325/0.6805, allocations: 1.141 MB / 0.4982 GB, free: 11.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 8.233e-06/0.6805, allocations: 0 / 0.4982 GB, free: 11.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.005379/0.6859, allocations: 2.444 MB / 0.5006 GB, free: 8.605 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002064/0.6861, allocations: 294.3 kB / 0.5009 GB, free: 8.254 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/0.6888, allocations: 1.35 MB / 0.5022 GB, free: 6.895 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001835/0.689, allocations: 57.7 kB / 0.5023 GB, free: 6.832 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008581/0.6899, allocations: 0.6856 MB / 0.5029 GB, free: 6.137 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005613/0.6905, allocations: 449.7 kB / 0.5034 GB, free: 5.691 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.6906, allocations: 24 kB / 0.5034 GB, free: 5.668 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002446/0.6909, allocations: 369.9 kB / 0.5038 GB, free: 5.301 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001915/0.6928, allocations: 0.8981 MB / 0.5046 GB, free: 4.402 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002243/0.6951, allocations: 1.218 MB / 0.5058 GB, free: 3.062 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001986/0.6971, allocations: 0.9767 MB / 0.5068 GB, free: 2.082 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.472e-06/0.6971, allocations: 4 kB / 0.5068 GB, free: 2.078 MB / 426.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005717/0.7028, allocations: 2.663 MB / 0.5094 GB, free: 15.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.68e-05/0.7029, allocations: 33.7 kB / 0.5094 GB, free: 15.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.261e-05/0.703, allocations: 15.98 kB / 0.5094 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002509/0.7055, allocations: 0.7826 MB / 0.5102 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.7067, allocations: 219.6 kB / 0.5104 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/0.7234, allocations: 9.971 MB / 0.5201 GB, free: 3.953 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/0.7262, allocations: 398.2 kB / 0.5205 GB, free: 3.562 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/0.7264, allocations: 56 kB / 0.5206 GB, free: 3.508 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.0005483/0.727, allocations: 273.2 kB / 0.5208 GB, free: 3.234 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003645/0.7274, allocations: 170 kB / 0.521 GB, free: 3.066 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005751/0.7332, allocations: 2.654 MB / 0.5236 GB, free: 392 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.7332, allocations: 12 kB / 0.5236 GB, free: 380 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.052e-06/0.7332, allocations: 4 kB / 0.5236 GB, free: 376 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/0.7332, allocations: 11.97 kB / 0.5236 GB, free: 364 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2491/0.9823, allocations: 5.183 MB / 0.5287 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.772e-06/0.9824, allocations: 2.672 kB / 0.5287 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009209/0.9833, allocations: 132.3 kB / 0.5288 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002273/0.9856, allocations: 0.7556 MB / 0.5295 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001805/0.9858, allocations: 40.27 kB / 0.5296 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01397/0.9998, allocations: 9.724 MB / 0.5391 GB, free: 118.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.659e-06/0.9998, allocations: 1.219 kB / 0.5391 GB, free: 118.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008099/1.008, allocations: 4.077 MB / 0.5431 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/1.009, allocations: 0.5045 MB / 0.5435 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/1.01, allocations: 33.56 kB / 0.5436 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002304/1.012, allocations: 306.3 kB / 0.5439 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009507/1.013, allocations: 380.6 kB / 0.5442 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/1.013, allocations: 41.72 kB / 0.5443 GB, free: 117.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001878/1.015, allocations: 1.04 MB / 0.5453 GB, free: 117.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.09e-07/1.015, allocations: 0 / 0.5453 GB, free: 117.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002367/1.017, allocations: 0.5829 MB / 0.5459 GB, free: 117.3 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.0005169/1.018, allocations: 236.9 kB / 0.5461 GB, free: 117.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004985/1.023, allocations: 2.865 MB / 0.5489 GB, free: 115.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.467e-06/1.023, allocations: 3.25 kB / 0.5489 GB, free: 115.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003196/1.026, allocations: 1.968 MB / 0.5508 GB, free: 114.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/1.028, allocations: 434.6 kB / 0.5512 GB, free: 114.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00885/1.037, allocations: 3.629 MB / 0.5548 GB, free: 113.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001582/1.039, allocations: 1.735 MB / 0.5565 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001569/1.04, allocations: 363.5 kB / 0.5568 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004896/1.041, allocations: 96.41 kB / 0.5569 GB, free: 112.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.589e-06/1.041, allocations: 0 / 0.5569 GB, free: 112.6 MB / 442.7 MB Notification: Performance of Templates: time 0.06941/1.11, allocations: 33.39 MB / 0.5895 GB, free: 101.5 MB / 442.7 MB