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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadModel(Modelica): time 1.863/1.863, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.989e-05/3.005e-05, allocations: 0 / 292.2 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.0901, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.361/0.4511, allocations: 86.7 MB / 429.3 MB, free: 7.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.4514, allocations: 89.94 kB / 429.4 MB, free: 7.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05123/0.5027, allocations: 12.56 MB / 441.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.362e-06/0.5027, allocations: 0 / 441.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.263e-05/0.5028, allocations: 20 kB / 441.9 MB, free: 12.84 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.00226/0.5051, allocations: 0.9882 MB / 442.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.5051, allocations: 12.03 kB / 442.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.5054, allocations: 98.86 kB / 443 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.5065, allocations: 0.5183 MB / 443.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-05/0.5066, allocations: 67.27 kB / 443.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.5067, allocations: 68.88 kB / 443.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.5083, allocations: 0.6974 MB / 444.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.5084, allocations: 7.906 kB / 444.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.304e-05/0.5085, allocations: 25.25 kB / 444.4 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.5085, allocations: 16 kB / 444.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.5098, allocations: 495.5 kB / 444.9 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005513/0.5154, allocations: 2.667 MB / 447.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.5167, allocations: 0.5153 MB / 448.1 MB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005836/0.5173, allocations: 260.5 kB / 448.4 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.567e-05/0.5173, allocations: 15.81 kB / 448.4 MB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009101/0.5183, allocations: 411.5 kB / 448.8 MB, free: 7.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 4.133e-06/0.5183, allocations: 0 / 448.8 MB, free: 7.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001597/0.5199, allocations: 0.6088 MB / 449.4 MB, free: 6.945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.425e-05/0.52, allocations: 111.4 kB / 449.5 MB, free: 6.812 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008568/0.5209, allocations: 474.4 kB / 450 MB, free: 6.457 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.521, allocations: 45.08 kB / 450 MB, free: 6.418 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003226/0.5213, allocations: 328.5 kB / 450.3 MB, free: 6.199 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.5216, allocations: 204.6 kB / 450.5 MB, free: 6.023 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.5216, allocations: 13.44 kB / 450.5 MB, free: 6.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002393/0.5219, allocations: 375.8 kB / 450.9 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004978/0.5224, allocations: 191.2 kB / 451.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006567/0.5231, allocations: 362.1 kB / 451.4 MB, free: 5.227 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005733/0.5236, allocations: 251.3 kB / 451.7 MB, free: 5.051 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.118e-06/0.5237, allocations: 0 / 451.7 MB, free: 5.051 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001744/0.5254, allocations: 0.7371 MB / 452.4 MB, free: 4.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.5265, allocations: 1.856 MB / 454.3 MB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.5265, allocations: 4 kB / 454.3 MB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006614/0.5272, allocations: 152.7 kB / 454.4 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006653/0.5279, allocations: 127.7 kB / 454.6 MB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003887/0.5318, allocations: 2.312 MB / 456.9 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008015/0.5326, allocations: 99.38 kB / 457 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.5327, allocations: 27.94 kB / 457 MB, free: 15.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.5328, allocations: 4 kB / 457 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00167/0.5344, allocations: 0.6571 MB / 457.6 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.5345, allocations: 4 kB / 457.7 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005639/0.535, allocations: 148.7 kB / 457.8 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006013/0.5357, allocations: 120 kB / 457.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003798/0.5395, allocations: 2.31 MB / 460.2 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007322/0.5402, allocations: 75.5 kB / 460.3 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/0.5403, allocations: 32 kB / 460.3 MB, free: 12.15 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 (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.0002977/0.5406, allocations: 169 kB / 460.5 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.5408, allocations: 71.28 kB / 460.6 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.5426, allocations: 0.655 MB / 461.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.5426, allocations: 12 kB / 461.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.5426, allocations: 3.938 kB / 461.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.5426, allocations: 3.984 kB / 461.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.5457, allocations: 1.463 MB / 462.7 MB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.89e-06/0.5458, allocations: 4 kB / 462.7 MB, free: 9.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.5464, allocations: 83.88 kB / 462.8 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005658/0.5469, allocations: 140.8 kB / 462.9 MB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.848e-05/0.547, allocations: 19.98 kB / 462.9 MB, free: 9.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003778/0.5508, allocations: 2.309 MB / 465.3 MB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.871e-06/0.5509, allocations: 0 / 465.3 MB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.5533, allocations: 1.022 MB / 466.3 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/0.5537, allocations: 208.1 kB / 466.5 MB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.5538, allocations: 12 kB / 466.5 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000609/0.5545, allocations: 59.89 kB / 466.5 MB, free: 5.676 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.5547, allocations: 72.42 kB / 466.6 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/0.5548, allocations: 19.98 kB / 466.6 MB, free: 5.586 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006611/0.5554, allocations: 361.6 kB / 467 MB, free: 5.234 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.5555, allocations: 0 / 467 MB, free: 5.234 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001514/0.557, allocations: 359.1 kB / 467.3 MB, free: 4.883 MB / 378.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_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 (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.0002666/0.5573, allocations: 152.2 kB / 467.5 MB, free: 4.727 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002904/0.5602, allocations: 1.325 MB / 468.8 MB, free: 3.355 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.21e-06/0.5602, allocations: 4 kB / 468.8 MB, free: 3.352 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.5612, allocations: 476.5 kB / 469.3 MB, free: 2.879 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007676/0.562, allocations: 110.4 kB / 469.4 MB, free: 2.773 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.5648, allocations: 0.9867 MB / 470.4 MB, free: 1.758 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008208/0.5657, allocations: 0.9638 MB / 471.3 MB, free: 0.7656 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000776/0.5665, allocations: 121.1 kB / 471.5 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.5666, allocations: 39.42 kB / 471.5 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of SimCode: time 1.723e-06/0.5666, allocations: 0 / 471.5 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of Templates: time 0.03071/0.5974, allocations: 11.44 MB / 482.9 MB, free: 5.246 MB / 394.7 MB