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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadModel(Modelica): time 1.858/1.858, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.916e-05, allocations: 4 kB / 292.2 MB, free: 8.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/0.08989, allocations: 50.4 MB / 342.6 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3755/0.4655, allocations: 87.03 MB / 429.6 MB, free: 7.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4658, allocations: 78.33 kB / 429.7 MB, free: 7.184 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05105/0.5168, allocations: 12.91 MB / 442.6 MB, free: 12.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.165e-06/0.5169, allocations: 3.984 kB / 442.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.801e-05/0.5169, allocations: 20 kB / 442.6 MB, free: 12.21 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.002325/0.5193, allocations: 0.9892 MB / 443.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.5193, allocations: 8.031 kB / 443.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.5196, allocations: 102.8 kB / 443.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/0.5213, allocations: 0.5432 MB / 444.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.473e-05/0.5213, allocations: 53.81 kB / 444.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.5215, allocations: 73.5 kB / 444.4 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.5232, allocations: 0.7212 MB / 445.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/0.5232, allocations: 0 / 445.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.584e-05/0.5233, allocations: 29.31 kB / 445.1 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.5234, allocations: 16 kB / 445.1 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.5247, allocations: 500 kB / 445.6 MB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005574/0.5302, allocations: 2.766 MB / 448.4 MB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.5315, allocations: 0.5069 MB / 448.9 MB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000602/0.5322, allocations: 269.5 kB / 449.2 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-05/0.5322, allocations: 10.62 kB / 449.2 MB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008965/0.5332, allocations: 409 kB / 449.6 MB, free: 6.648 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 4.537e-06/0.5332, allocations: 3.938 kB / 449.6 MB, free: 6.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.001623/0.5348, allocations: 0.6105 MB / 450.2 MB, free: 6.199 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/0.5349, allocations: 118.7 kB / 450.3 MB, free: 6.059 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007932/0.5357, allocations: 470 kB / 450.8 MB, free: 5.703 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.5358, allocations: 46.5 kB / 450.8 MB, free: 5.664 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004505/0.5363, allocations: 340.2 kB / 451.1 MB, free: 5.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003445/0.5367, allocations: 211.6 kB / 451.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/0.5367, allocations: 18.5 kB / 451.4 MB, free: 5.246 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002428/0.537, allocations: 383 kB / 451.7 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005195/0.5375, allocations: 191.4 kB / 451.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006721/0.5382, allocations: 373.8 kB / 452.3 MB, free: 4.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005948/0.5388, allocations: 253 kB / 452.5 MB, free: 4.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.602e-06/0.5389, allocations: 0 / 452.5 MB, free: 4.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001802/0.5407, allocations: 0.7452 MB / 453.3 MB, free: 3.582 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001074/0.5418, allocations: 1.872 MB / 455.2 MB, free: 1.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.5418, allocations: 4 kB / 455.2 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006217/0.5424, allocations: 138 kB / 455.3 MB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000745/0.5432, allocations: 135.9 kB / 455.4 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003836/0.547, allocations: 2.291 MB / 457.7 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/0.5478, allocations: 87.41 kB / 457.8 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.094e-05/0.5479, allocations: 32 kB / 457.8 MB, free: 14.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.548, allocations: 7.938 kB / 457.8 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001659/0.5496, allocations: 0.6636 MB / 458.5 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.5497, allocations: 4 kB / 458.5 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000544/0.5502, allocations: 149.2 kB / 458.7 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006766/0.5509, allocations: 123.8 kB / 458.8 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003687/0.5546, allocations: 2.291 MB / 461.1 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006942/0.5553, allocations: 83.53 kB / 461.1 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.102e-05/0.5554, allocations: 28 kB / 461.2 MB, free: 11.25 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.0002723/0.5557, allocations: 172.7 kB / 461.3 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.5559, allocations: 67.16 kB / 461.4 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.5577, allocations: 0.6593 MB / 462.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.5577, allocations: 8 kB / 462.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.997e-06/0.5577, allocations: 0 / 462.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5577, allocations: 7.984 kB / 462.1 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/0.5608, allocations: 1.49 MB / 463.6 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.607e-06/0.5609, allocations: 0 / 463.6 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006753/0.5615, allocations: 91.86 kB / 463.7 MB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005236/0.5621, allocations: 136.9 kB / 463.8 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.618e-05/0.5622, allocations: 23.98 kB / 463.8 MB, free: 8.527 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003687/0.5659, allocations: 2.277 MB / 466.1 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.426e-06/0.5659, allocations: 0 / 466.1 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.5682, allocations: 1.029 MB / 467.1 MB, free: 5.082 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003913/0.5686, allocations: 212.1 kB / 467.3 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.5688, allocations: 23.98 kB / 467.4 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006561/0.5695, allocations: 51.97 kB / 467.4 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.5697, allocations: 68.45 kB / 467.5 MB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.171e-05/0.5698, allocations: 19.98 kB / 467.5 MB, free: 4.695 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006315/0.5704, allocations: 365.6 kB / 467.9 MB, free: 4.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.67e-07/0.5704, allocations: 0 / 467.9 MB, free: 4.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001493/0.5719, allocations: 367.1 kB / 468.2 MB, free: 3.98 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.0002594/0.5722, allocations: 150 kB / 468.4 MB, free: 3.824 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002863/0.5751, allocations: 1.33 MB / 469.7 MB, free: 2.449 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.825e-06/0.5751, allocations: 0 / 469.7 MB, free: 2.449 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009801/0.5761, allocations: 468.5 kB / 470.1 MB, free: 1.984 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007071/0.5768, allocations: 110 kB / 470.3 MB, free: 1.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.5795, allocations: 1.038 MB / 471.3 MB, free: 0.8125 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008316/0.5804, allocations: 0.9756 MB / 472.3 MB, free: 15.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007515/0.5812, allocations: 129.1 kB / 472.4 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.5813, allocations: 43.36 kB / 472.4 MB, free: 15.64 MB / 394.7 MB Notification: Performance of SimCode: time 1.536e-06/0.5814, allocations: 0 / 472.4 MB, free: 15.64 MB / 394.7 MB Notification: Performance of Templates: time 0.0292/0.6106, allocations: 11.28 MB / 483.7 MB, free: 4.438 MB / 394.7 MB