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_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadModel(Modelica): time 1.743/1.743, allocations: 194.9 MB / 208 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.62e-05/2.636e-05, allocations: 3.984 kB / 255.4 MB, free: 2.668 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07714/0.07719, allocations: 44.51 MB / 299.9 MB, free: 6.102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3277/0.405, allocations: 79.47 MB / 379.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.4053, allocations: 84.72 kB / 379.5 MB, free: 21.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04381/0.4491, allocations: 11.71 MB / 391.2 MB, free: 19.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.617e-06/0.4492, allocations: 0 / 391.2 MB, free: 19.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.48e-05/0.4492, allocations: 19.52 kB / 391.2 MB, free: 19.94 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.00187/0.4511, allocations: 0.9582 MB / 392.1 MB, free: 19.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.4512, allocations: 7.812 kB / 392.2 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.4514, allocations: 101.5 kB / 392.3 MB, free: 19.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008579/0.4522, allocations: 0.4986 MB / 392.8 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.4523, allocations: 50.28 kB / 392.8 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.4525, allocations: 68.38 kB / 392.9 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.4539, allocations: 0.67 MB / 393.5 MB, free: 18.87 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.4539, allocations: 7.422 kB / 393.5 MB, free: 18.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.849e-05/0.454, allocations: 32.62 kB / 393.6 MB, free: 18.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.4541, allocations: 15.62 kB / 393.6 MB, free: 18.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.4552, allocations: 476.2 kB / 394.1 MB, free: 18.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004819/0.46, allocations: 2.598 MB / 396.7 MB, free: 17.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.4612, allocations: 0.5112 MB / 397.2 MB, free: 17.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005436/0.4618, allocations: 268.1 kB / 397.4 MB, free: 17.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.267e-05/0.4619, allocations: 8.406 kB / 397.4 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008292/0.4627, allocations: 407.5 kB / 397.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 4.138e-06/0.4627, allocations: 0 / 397.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.001512/0.4643, allocations: 0.6045 MB / 398.4 MB, free: 17.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.4643, allocations: 122.9 kB / 398.6 MB, free: 17.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007012/0.465, allocations: 455.3 kB / 399 MB, free: 17.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.18e-05/0.4651, allocations: 47.66 kB / 399.1 MB, free: 17.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.4654, allocations: 320.4 kB / 399.4 MB, free: 17.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/0.4656, allocations: 199.9 kB / 399.6 MB, free: 17.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/0.4657, allocations: 14.53 kB / 399.6 MB, free: 17.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4658, allocations: 379 kB / 399.9 MB, free: 16.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004834/0.4663, allocations: 184.3 kB / 400.1 MB, free: 16.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005718/0.4669, allocations: 364 kB / 400.5 MB, free: 16.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005444/0.4674, allocations: 248.6 kB / 400.7 MB, free: 16.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.611e-06/0.4675, allocations: 3.938 kB / 400.7 MB, free: 16.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001647/0.4691, allocations: 0.7279 MB / 401.5 MB, free: 16.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003833/0.4695, allocations: 1.864 MB / 403.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.4695, allocations: 7.906 kB / 403.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006091/0.4702, allocations: 156 kB / 403.5 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.4708, allocations: 121.1 kB / 403.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003443/0.4743, allocations: 2.311 MB / 405.9 MB, free: 28.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007783/0.4751, allocations: 96.7 kB / 406 MB, free: 28.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.4752, allocations: 27.11 kB / 406 MB, free: 28.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.4752, allocations: 3.938 kB / 406 MB, free: 28.91 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001501/0.4767, allocations: 0.6548 MB / 406.7 MB, free: 28.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.4767, allocations: 9.031 kB / 406.7 MB, free: 28.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006105/0.4774, allocations: 147.8 kB / 406.8 MB, free: 28.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006538/0.478, allocations: 130 kB / 407 MB, free: 28.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003294/0.4814, allocations: 2.305 MB / 409.3 MB, free: 27.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000745/0.4821, allocations: 76.75 kB / 409.3 MB, free: 27.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-05/0.4822, allocations: 30.28 kB / 409.4 MB, free: 27.37 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 (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.0002806/0.4825, allocations: 165.2 kB / 409.5 MB, free: 27.24 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.4827, allocations: 69.94 kB / 409.6 MB, free: 27.2 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/0.4842, allocations: 0.6572 MB / 410.3 MB, free: 27.13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.729e-06/0.4842, allocations: 7.812 kB / 410.3 MB, free: 27.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.245e-06/0.4842, allocations: 3.938 kB / 410.3 MB, free: 27.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.435e-06/0.4843, allocations: 0 / 410.3 MB, free: 27.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.4869, allocations: 1.458 MB / 411.7 MB, free: 26.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.563e-06/0.487, allocations: 3.938 kB / 411.7 MB, free: 26.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006078/0.4876, allocations: 84.95 kB / 411.8 MB, free: 26.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005413/0.4881, allocations: 148.1 kB / 412 MB, free: 26.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.544e-05/0.4882, allocations: 14.72 kB / 412 MB, free: 26.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003244/0.4915, allocations: 2.31 MB / 414.3 MB, free: 25.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.868e-06/0.4915, allocations: 3.906 kB / 414.3 MB, free: 25.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.4937, allocations: 1.007 MB / 415.3 MB, free: 25.14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003493/0.494, allocations: 208.5 kB / 415.5 MB, free: 25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.4942, allocations: 22.41 kB / 415.5 MB, free: 25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005752/0.4948, allocations: 52.7 kB / 415.6 MB, free: 24.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.495, allocations: 65.98 kB / 415.6 MB, free: 24.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-05/0.4951, allocations: 19.11 kB / 415.7 MB, free: 24.99 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005431/0.4956, allocations: 358.4 kB / 416 MB, free: 24.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.4956, allocations: 0 / 416 MB, free: 24.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001402/0.497, allocations: 345.8 kB / 416.3 MB, free: 24.86 MB / 330.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,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 (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.0002373/0.4973, allocations: 149.7 kB / 416.5 MB, free: 24.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002507/0.4998, allocations: 1.318 MB / 417.8 MB, free: 24.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.142e-06/0.4998, allocations: 0.8125 kB / 417.8 MB, free: 24.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008687/0.5007, allocations: 473.9 kB / 418.3 MB, free: 24.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006892/0.5014, allocations: 107.6 kB / 418.4 MB, free: 24.19 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.5038, allocations: 0.961 MB / 419.3 MB, free: 23.88 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006686/0.5045, allocations: 0.9556 MB / 420.3 MB, free: 23.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006963/0.5052, allocations: 121 kB / 420.4 MB, free: 23.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.5054, allocations: 34.78 kB / 420.4 MB, free: 23.13 MB / 330.7 MB Notification: Performance of SimCode: time 1.567e-06/0.5054, allocations: 0 / 420.4 MB, free: 23.13 MB / 330.7 MB Notification: Performance of Templates: time 0.02584/0.5313, allocations: 11.31 MB / 431.8 MB, free: 18.12 MB / 330.7 MB