Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadModel(Modelica): time 1.824/1.824, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.146e-05/2.151e-05, allocations: 0 / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 47.57 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3447/0.4499, allocations: 85.74 MB / 402.7 MB, free: 2.457 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.4502, allocations: 87.5 kB / 402.8 MB, free: 2.406 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05264/0.5029, allocations: 12.64 MB / 415.4 MB, free: 7.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.554e-06/0.5029, allocations: 0 / 415.4 MB, free: 7.703 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.617e-05/0.5031, allocations: 16 kB / 415.4 MB, free: 7.688 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.003977/0.5071, allocations: 0.9949 MB / 416.4 MB, free: 6.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/0.5071, allocations: 12.03 kB / 416.4 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004288/0.5076, allocations: 98.83 kB / 416.5 MB, free: 6.578 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/0.5095, allocations: 0.5256 MB / 417.1 MB, free: 6.102 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.5097, allocations: 65.3 kB / 417.1 MB, free: 6.059 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002458/0.5099, allocations: 78 kB / 417.2 MB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/0.5127, allocations: 0.6971 MB / 417.9 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.843e-05/0.5128, allocations: 11.19 kB / 417.9 MB, free: 5.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001653/0.513, allocations: 22.31 kB / 417.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.513, allocations: 16 kB / 417.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/0.5153, allocations: 0.4955 MB / 418.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005877/0.5213, allocations: 2.719 MB / 421.2 MB, free: 2.957 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.5226, allocations: 0.5025 MB / 421.7 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006045/0.5232, allocations: 278.4 kB / 421.9 MB, free: 2.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.29e-05/0.5233, allocations: 11.31 kB / 421.9 MB, free: 2.469 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009294/0.5242, allocations: 416.6 kB / 422.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of pre-optimization done (n=69): time 4.309e-06/0.5242, allocations: 0 / 422.4 MB, free: 2.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=69): time 0.001622/0.5259, allocations: 0.6097 MB / 423 MB, free: 1.707 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.526, allocations: 119.2 kB / 423.1 MB, free: 1.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008597/0.5269, allocations: 478.2 kB / 423.5 MB, free: 1.203 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.782e-05/0.527, allocations: 44.89 kB / 423.6 MB, free: 1.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000326/0.5273, allocations: 338.2 kB / 423.9 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.5276, allocations: 208.2 kB / 424.1 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.096e-05/0.5276, allocations: 14.44 kB / 424.1 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002522/0.5279, allocations: 381.8 kB / 424.5 MB, free: 416 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.5284, allocations: 190.6 kB / 424.7 MB, free: 300 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006801/0.5291, allocations: 365.7 kB / 425.1 MB, free: 15.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005958/0.5297, allocations: 255.9 kB / 425.3 MB, free: 15.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.48e-06/0.5298, allocations: 4 kB / 425.3 MB, free: 15.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001784/0.5316, allocations: 0.7504 MB / 426.1 MB, free: 15.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001048/0.5326, allocations: 1.855 MB / 427.9 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.5326, allocations: 7.984 kB / 427.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006026/0.5333, allocations: 144.8 kB / 428.1 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007199/0.534, allocations: 135.7 kB / 428.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/0.5377, allocations: 2.288 MB / 430.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007226/0.5384, allocations: 88.38 kB / 430.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-05/0.5385, allocations: 30.31 kB / 430.6 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.5385, allocations: 4 kB / 430.6 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/0.5401, allocations: 0.6679 MB / 431.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.5402, allocations: 4 kB / 431.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005202/0.5407, allocations: 146.6 kB / 431.4 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006533/0.5414, allocations: 131.6 kB / 431.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003551/0.5449, allocations: 2.281 MB / 433.8 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006754/0.5456, allocations: 81.83 kB / 433.9 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.089e-05/0.5457, allocations: 34.73 kB / 433.9 MB, free: 8.125 MB / 346.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,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002629/0.546, allocations: 162 kB / 434.1 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001657/0.5462, allocations: 71.16 kB / 434.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.5479, allocations: 0.6666 MB / 434.8 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1e-05/0.5479, allocations: 4 kB / 434.8 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.558e-06/0.5479, allocations: 7.953 kB / 434.8 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.5479, allocations: 7.984 kB / 434.9 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.5509, allocations: 1.471 MB / 436.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.5509, allocations: 0 / 436.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006384/0.5516, allocations: 99.56 kB / 436.4 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005195/0.5521, allocations: 144.6 kB / 436.6 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.811e-05/0.5522, allocations: 14.77 kB / 436.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/0.5558, allocations: 2.289 MB / 438.9 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.579e-06/0.5558, allocations: 0 / 438.9 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.5581, allocations: 1.026 MB / 439.9 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003937/0.5585, allocations: 207.7 kB / 440.1 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.5586, allocations: 18.56 kB / 440.1 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005966/0.5592, allocations: 55.02 kB / 440.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.5595, allocations: 66.22 kB / 440.2 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.5596, allocations: 19.36 kB / 440.2 MB, free: 3.125 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006486/0.5602, allocations: 366.6 kB / 440.6 MB, free: 2.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.5602, allocations: 0 / 440.6 MB, free: 2.848 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001516/0.5618, allocations: 375 kB / 441 MB, free: 2.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002627/0.562, allocations: 137.5 kB / 441.1 MB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002891/0.5649, allocations: 1.326 MB / 442.4 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.567e-06/0.565, allocations: 4.688 kB / 442.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009961/0.566, allocations: 467.6 kB / 442.9 MB, free: 0.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.5668, allocations: 117.9 kB / 443 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002833/0.5696, allocations: 1.046 MB / 444.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008026/0.5704, allocations: 0.9716 MB / 445 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007641/0.5712, allocations: 121.1 kB / 445.1 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.5714, allocations: 43.42 kB / 445.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of SimCode: time 1.757e-06/0.5714, allocations: 0 / 445.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of Templates: time 0.02974/0.6012, allocations: 11.28 MB / 456.5 MB, free: 2.914 MB / 362.7 MB