Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadModel(Modelica): time 1.914/1.914, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.561e-05, allocations: 0 / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.08933, allocations: 50.42 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4073/0.4967, allocations: 86.71 MB / 429.8 MB, free: 7.578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.497, allocations: 90 kB / 429.9 MB, free: 7.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05091/0.5479, allocations: 12.56 MB / 442.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.089e-06/0.548, allocations: 0 / 442.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.873e-05/0.548, allocations: 20 kB / 442.5 MB, free: 12.85 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.002285/0.5503, allocations: 0.9887 MB / 443.5 MB, free: 11.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001067/0.5505, allocations: 16.02 kB / 443.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.5507, allocations: 94.88 kB / 443.6 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.5518, allocations: 0.5209 MB / 444.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.733e-05/0.5519, allocations: 58.64 kB / 444.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.5521, allocations: 68.44 kB / 444.2 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.5537, allocations: 0.7056 MB / 444.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.5537, allocations: 3.906 kB / 444.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.531e-05/0.5538, allocations: 29.88 kB / 444.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.5539, allocations: 16 kB / 445 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.5551, allocations: 489 kB / 445.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/0.5605, allocations: 2.667 MB / 448.1 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.5618, allocations: 0.5164 MB / 448.6 MB, free: 7.875 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000588/0.5624, allocations: 258.3 kB / 448.9 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.514e-05/0.5625, allocations: 8.562 kB / 448.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009218/0.5634, allocations: 410.3 kB / 449.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 7.343e-06/0.5634, allocations: 7.984 kB / 449.3 MB, free: 7.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001572/0.565, allocations: 0.6042 MB / 449.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.646e-05/0.5651, allocations: 115.4 kB / 450 MB, free: 6.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000792/0.5659, allocations: 477.2 kB / 450.5 MB, free: 6.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.281e-05/0.566, allocations: 40.45 kB / 450.5 MB, free: 6.426 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000298/0.5663, allocations: 329.9 kB / 450.8 MB, free: 6.207 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.5666, allocations: 212.7 kB / 451 MB, free: 6.023 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.5667, allocations: 11.44 kB / 451.1 MB, free: 6.023 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000239/0.5669, allocations: 374.7 kB / 451.4 MB, free: 5.676 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004988/0.5674, allocations: 190.9 kB / 451.6 MB, free: 5.566 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000673/0.5681, allocations: 359.9 kB / 452 MB, free: 5.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005938/0.5687, allocations: 252 kB / 452.2 MB, free: 5.051 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.477e-06/0.5687, allocations: 4 kB / 452.2 MB, free: 5.047 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001754/0.5705, allocations: 0.7381 MB / 452.9 MB, free: 4.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001065/0.5716, allocations: 1.855 MB / 454.8 MB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.5716, allocations: 4 kB / 454.8 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007046/0.5723, allocations: 148.7 kB / 455 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007223/0.5731, allocations: 131.8 kB / 455.1 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/0.5771, allocations: 2.304 MB / 457.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007812/0.5779, allocations: 91.38 kB / 457.5 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.495e-05/0.578, allocations: 39.94 kB / 457.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.942e-06/0.578, allocations: 0 / 457.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001689/0.5797, allocations: 0.6535 MB / 458.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.5797, allocations: 8.031 kB / 458.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006287/0.5804, allocations: 152.9 kB / 458.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006061/0.581, allocations: 123.7 kB / 458.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003791/0.5848, allocations: 2.303 MB / 460.7 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006985/0.5855, allocations: 83.5 kB / 460.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-05/0.5856, allocations: 24 kB / 460.9 MB, free: 12.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002907/0.5859, allocations: 164.7 kB / 461 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.5861, allocations: 71.16 kB / 461.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.5879, allocations: 0.6588 MB / 461.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.061e-06/0.588, allocations: 11.94 kB / 461.8 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.14e-06/0.588, allocations: 0 / 461.8 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.588, allocations: 3.984 kB / 461.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.5911, allocations: 1.459 MB / 463.2 MB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.289e-06/0.5912, allocations: 0 / 463.2 MB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005847/0.5918, allocations: 99.98 kB / 463.3 MB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005735/0.5923, allocations: 140.7 kB / 463.5 MB, free: 9.496 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.498e-05/0.5924, allocations: 15.98 kB / 463.5 MB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003845/0.5963, allocations: 2.305 MB / 465.8 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.223e-06/0.5963, allocations: 7.922 kB / 465.8 MB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.5988, allocations: 1.014 MB / 466.8 MB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000413/0.5992, allocations: 208.1 kB / 467 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.5993, allocations: 16 kB / 467 MB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006082/0.6, allocations: 55.89 kB / 467.1 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.6002, allocations: 72.42 kB / 467.1 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.613e-05/0.6003, allocations: 23.98 kB / 467.2 MB, free: 5.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006663/0.601, allocations: 357.6 kB / 467.5 MB, free: 5.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.95e-07/0.601, allocations: 0 / 467.5 MB, free: 5.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001549/0.6025, allocations: 363 kB / 467.9 MB, free: 4.914 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002757/0.6028, allocations: 155.1 kB / 468 MB, free: 4.754 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002906/0.6058, allocations: 1.324 MB / 469.3 MB, free: 3.383 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.6058, allocations: 0 / 469.3 MB, free: 3.383 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.6068, allocations: 472.4 kB / 469.8 MB, free: 2.914 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007198/0.6075, allocations: 106.3 kB / 469.9 MB, free: 2.812 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.6103, allocations: 0.9945 MB / 470.9 MB, free: 1.789 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008057/0.6111, allocations: 0.956 MB / 471.9 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007256/0.6118, allocations: 125.2 kB / 472 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.612, allocations: 43.42 kB / 472 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of SimCode: time 1.462e-06/0.612, allocations: 0 / 472 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of Templates: time 0.03102/0.6431, allocations: 11.44 MB / 483.5 MB, free: 5.277 MB / 394.7 MB