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.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadModel(Modelica): time 1.773/1.773, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.102e-05, allocations: 4 kB / 255.4 MB, free: 2.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07819/0.07824, allocations: 44.5 MB / 299.9 MB, free: 6.109 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3295/0.4077, allocations: 79.76 MB / 379.7 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.4081, allocations: 82 kB / 379.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04497/0.4531, allocations: 12.05 MB / 391.8 MB, free: 19.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.72e-06/0.4531, allocations: 0 / 391.8 MB, free: 19.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.109e-05/0.4532, allocations: 19.5 kB / 391.8 MB, free: 19.92 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001987/0.4552, allocations: 0.9763 MB / 392.8 MB, free: 19.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.4552, allocations: 11.78 kB / 392.8 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.4555, allocations: 93.56 kB / 392.9 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000875/0.4563, allocations: 0.5124 MB / 393.4 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.4564, allocations: 50.56 kB / 393.5 MB, free: 18.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.4566, allocations: 79.17 kB / 393.5 MB, free: 18.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.458, allocations: 0.6947 MB / 394.2 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.091e-05/0.4581, allocations: 4 kB / 394.2 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.4582, allocations: 31.86 kB / 394.3 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.4582, allocations: 15.72 kB / 394.3 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.4594, allocations: 487.2 kB / 394.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/0.4643, allocations: 2.692 MB / 397.5 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.4656, allocations: 0.4996 MB / 397.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005504/0.4661, allocations: 281.4 kB / 398.2 MB, free: 17.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.439e-05/0.4662, allocations: 11.77 kB / 398.2 MB, free: 17.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008066/0.467, allocations: 411.2 kB / 398.6 MB, free: 17.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 5.771e-06/0.4671, allocations: 7.922 kB / 398.6 MB, free: 17.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001475/0.4685, allocations: 0.6133 MB / 399.3 MB, free: 17.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.4686, allocations: 115.1 kB / 399.4 MB, free: 17.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007187/0.4693, allocations: 460.8 kB / 399.8 MB, free: 17.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.141e-05/0.4694, allocations: 55.55 kB / 399.9 MB, free: 17.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.4697, allocations: 328.3 kB / 400.2 MB, free: 17.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.4699, allocations: 199.8 kB / 400.4 MB, free: 16.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.814e-05/0.47, allocations: 17.84 kB / 400.4 MB, free: 16.95 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.4701, allocations: 374.3 kB / 400.8 MB, free: 16.63 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004813/0.4706, allocations: 192.4 kB / 401 MB, free: 16.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.4712, allocations: 371.3 kB / 401.3 MB, free: 16.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.4718, allocations: 256.9 kB / 401.6 MB, free: 16.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.649e-06/0.4718, allocations: 0 / 401.6 MB, free: 16.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001663/0.4735, allocations: 0.7475 MB / 402.3 MB, free: 16.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003667/0.4738, allocations: 1.863 MB / 404.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.4739, allocations: 3.969 kB / 404.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000576/0.4745, allocations: 148.4 kB / 404.3 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006559/0.4751, allocations: 131.1 kB / 404.5 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.4786, allocations: 2.285 MB / 406.7 MB, free: 28.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008302/0.4794, allocations: 91.72 kB / 406.8 MB, free: 28.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.378e-05/0.4795, allocations: 30.17 kB / 406.9 MB, free: 28.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.4796, allocations: 5.062 kB / 406.9 MB, free: 28.82 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001434/0.481, allocations: 0.6677 MB / 407.5 MB, free: 28.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.481, allocations: 3.719 kB / 407.5 MB, free: 28.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000483/0.4815, allocations: 147.3 kB / 407.7 MB, free: 28.72 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006078/0.4822, allocations: 119.4 kB / 407.8 MB, free: 28.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/0.4855, allocations: 2.287 MB / 410.1 MB, free: 27.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008032/0.4863, allocations: 88.5 kB / 410.2 MB, free: 27.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.97e-05/0.4864, allocations: 29.88 kB / 410.2 MB, free: 27.27 MB / 330.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.0002828/0.4867, allocations: 157.6 kB / 410.4 MB, free: 27.15 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.4868, allocations: 70.41 kB / 410.4 MB, free: 27.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.4884, allocations: 0.6694 MB / 411.1 MB, free: 27.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.009e-06/0.4884, allocations: 11.88 kB / 411.1 MB, free: 27.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.544e-06/0.4884, allocations: 3.906 kB / 411.1 MB, free: 27.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.4885, allocations: 3.516 kB / 411.1 MB, free: 27.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.4911, allocations: 1.468 MB / 412.6 MB, free: 26.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.044e-06/0.4911, allocations: 0 / 412.6 MB, free: 26.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006746/0.4918, allocations: 99.09 kB / 412.7 MB, free: 26.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004781/0.4923, allocations: 138.6 kB / 412.8 MB, free: 26.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.208e-05/0.4924, allocations: 17.92 kB / 412.8 MB, free: 26.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/0.4956, allocations: 2.27 MB / 415.1 MB, free: 25.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.966e-06/0.4957, allocations: 0 / 415.1 MB, free: 25.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002149/0.4978, allocations: 1.025 MB / 416.1 MB, free: 25.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003601/0.4982, allocations: 203.2 kB / 416.3 MB, free: 24.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.4983, allocations: 18.19 kB / 416.3 MB, free: 24.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006503/0.499, allocations: 52.02 kB / 416.4 MB, free: 24.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.4992, allocations: 64.94 kB / 416.5 MB, free: 24.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.839e-05/0.4993, allocations: 29.58 kB / 416.5 MB, free: 24.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005785/0.4999, allocations: 360.4 kB / 416.8 MB, free: 24.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.4999, allocations: 0 / 416.8 MB, free: 24.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001508/0.5014, allocations: 363.6 kB / 417.2 MB, free: 24.77 MB / 330.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.0002421/0.5017, allocations: 145.9 kB / 417.3 MB, free: 24.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002528/0.5042, allocations: 1.32 MB / 418.7 MB, free: 24.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.949e-06/0.5043, allocations: 3.938 kB / 418.7 MB, free: 24.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008846/0.5052, allocations: 469.3 kB / 419.1 MB, free: 24.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007619/0.5059, allocations: 110.9 kB / 419.2 MB, free: 24.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.5085, allocations: 1.016 MB / 420.2 MB, free: 23.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006874/0.5092, allocations: 0.9621 MB / 421.2 MB, free: 23.01 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007266/0.5099, allocations: 124.8 kB / 421.3 MB, free: 22.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.5101, allocations: 45.98 kB / 421.4 MB, free: 22.98 MB / 330.7 MB Notification: Performance of SimCode: time 1.611e-06/0.5101, allocations: 3.938 kB / 421.4 MB, free: 22.97 MB / 330.7 MB Notification: Performance of Templates: time 0.02595/0.5361, allocations: 11.13 MB / 432.5 MB, free: 17.88 MB / 330.7 MB