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_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadModel(Modelica): time 1.902/1.902, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.246e-05/2.266e-05, allocations: 0 / 292.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09141/0.09145, allocations: 50.42 MB / 343.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4042/0.4957, allocations: 87.02 MB / 430.1 MB, free: 7.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/0.4961, allocations: 88.2 kB / 430.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05084/0.5469, allocations: 12.9 MB / 443.1 MB, free: 12.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.263e-06/0.547, allocations: 4 kB / 443.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.284e-05/0.547, allocations: 20 kB / 443.1 MB, free: 12.23 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002336/0.5494, allocations: 0.9971 MB / 444.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.5494, allocations: 11.97 kB / 444.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002315/0.5497, allocations: 94.88 kB / 444.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.5508, allocations: 0.5392 MB / 444.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.096e-05/0.5509, allocations: 55.75 kB / 444.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001565/0.5511, allocations: 81.36 kB / 444.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.5527, allocations: 0.7103 MB / 445.6 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.5527, allocations: 4 kB / 445.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.5528, allocations: 32.61 kB / 445.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/0.5529, allocations: 23.98 kB / 445.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.5542, allocations: 0.4884 MB / 446.2 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005478/0.5597, allocations: 2.751 MB / 448.9 MB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.5609, allocations: 0.5073 MB / 449.4 MB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00061/0.5616, allocations: 279.6 kB / 449.7 MB, free: 6.984 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-05/0.5616, allocations: 12.55 kB / 449.7 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009071/0.5625, allocations: 411.3 kB / 450.1 MB, free: 6.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 4.22e-06/0.5626, allocations: 0 / 450.1 MB, free: 6.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.001587/0.5642, allocations: 0.6149 MB / 450.7 MB, free: 6.215 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.774e-05/0.5643, allocations: 114.2 kB / 450.8 MB, free: 6.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00079/0.5651, allocations: 470.8 kB / 451.3 MB, free: 5.719 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.402e-05/0.5652, allocations: 48.39 kB / 451.3 MB, free: 5.676 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000316/0.5655, allocations: 342.7 kB / 451.7 MB, free: 5.441 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.5658, allocations: 205.5 kB / 451.9 MB, free: 5.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.078e-05/0.5658, allocations: 14.31 kB / 451.9 MB, free: 5.266 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002407/0.5661, allocations: 385.8 kB / 452.3 MB, free: 4.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.5666, allocations: 189.4 kB / 452.5 MB, free: 4.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006711/0.5673, allocations: 379.4 kB / 452.8 MB, free: 4.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006006/0.5679, allocations: 249.8 kB / 453.1 MB, free: 4.281 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.5679, allocations: 4 kB / 453.1 MB, free: 4.277 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001793/0.5697, allocations: 0.7502 MB / 453.8 MB, free: 3.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001046/0.5708, allocations: 1.853 MB / 455.7 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.5708, allocations: 4 kB / 455.7 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006451/0.5715, allocations: 144.8 kB / 455.8 MB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007265/0.5722, allocations: 127.9 kB / 455.9 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003873/0.5761, allocations: 2.295 MB / 458.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007486/0.5769, allocations: 95.44 kB / 458.3 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-05/0.577, allocations: 28 kB / 458.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.577, allocations: 7.953 kB / 458.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001679/0.5787, allocations: 0.6641 MB / 459 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.5787, allocations: 12 kB / 459 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005324/0.5793, allocations: 140.7 kB / 459.2 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006861/0.58, allocations: 123.8 kB / 459.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/0.5837, allocations: 2.28 MB / 461.6 MB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006664/0.5844, allocations: 87.45 kB / 461.7 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.61e-05/0.5845, allocations: 36.09 kB / 461.7 MB, free: 11.29 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 (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.0002725/0.5848, allocations: 169 kB / 461.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.585, allocations: 71.16 kB / 461.9 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/0.5867, allocations: 0.6593 MB / 462.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.5867, allocations: 15.92 kB / 462.6 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.26e-06/0.5868, allocations: 0 / 462.6 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.135e-06/0.5868, allocations: 0 / 462.6 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/0.5899, allocations: 1.483 MB / 464.1 MB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.038e-06/0.5899, allocations: 0 / 464.1 MB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006432/0.5906, allocations: 99.88 kB / 464.2 MB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005244/0.5911, allocations: 132.8 kB / 464.3 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-05/0.5912, allocations: 15.98 kB / 464.3 MB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/0.5949, allocations: 2.281 MB / 466.6 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5949, allocations: 0 / 466.6 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/0.5973, allocations: 1.029 MB / 467.6 MB, free: 5.125 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003957/0.5977, allocations: 212.1 kB / 467.9 MB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.5979, allocations: 16.12 kB / 467.9 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.5985, allocations: 59.95 kB / 467.9 MB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.5987, allocations: 68.45 kB / 468 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.22e-05/0.5988, allocations: 20 kB / 468 MB, free: 4.738 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006578/0.5995, allocations: 369.6 kB / 468.4 MB, free: 4.379 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.18e-07/0.5995, allocations: 0 / 468.4 MB, free: 4.379 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001516/0.601, allocations: 371 kB / 468.7 MB, free: 4.016 MB / 378.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_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 (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.0002664/0.6013, allocations: 142 kB / 468.9 MB, free: 3.867 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002943/0.6043, allocations: 1.327 MB / 470.2 MB, free: 2.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.726e-06/0.6043, allocations: 8.062 kB / 470.2 MB, free: 2.492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009866/0.6053, allocations: 471.5 kB / 470.7 MB, free: 2.023 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007506/0.6061, allocations: 110.5 kB / 470.8 MB, free: 1.914 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.6088, allocations: 1.034 MB / 471.8 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008176/0.6097, allocations: 0.9716 MB / 472.8 MB, free: 15.86 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000752/0.6104, allocations: 133.1 kB / 472.9 MB, free: 15.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.6106, allocations: 39.44 kB / 473 MB, free: 15.68 MB / 394.7 MB Notification: Performance of SimCode: time 1.936e-06/0.6107, allocations: 3.938 kB / 473 MB, free: 15.68 MB / 394.7 MB Notification: Performance of Templates: time 0.03008/0.6407, allocations: 11.28 MB / 484.2 MB, free: 4.477 MB / 394.7 MB