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.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.251e-05/3.259e-05, allocations: 4 kB / 269.4 MB, free: 6.387 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0837/0.08376, allocations: 47.57 MB / 316.9 MB, free: 6.727 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.4267, allocations: 85.45 MB / 402.4 MB, free: 2.703 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.427, allocations: 86.52 kB / 402.5 MB, free: 2.656 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05107/0.4781, allocations: 12.31 MB / 414.8 MB, free: 8.219 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4781, allocations: 0 / 414.8 MB, free: 8.219 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.083e-05/0.4782, allocations: 16 kB / 414.8 MB, free: 8.203 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.002266/0.4805, allocations: 0.9819 MB / 415.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.4806, allocations: 8.031 kB / 415.8 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002358/0.4808, allocations: 102.8 kB / 415.9 MB, free: 7.102 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.4819, allocations: 0.5245 MB / 416.4 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.424e-05/0.482, allocations: 50.19 kB / 416.5 MB, free: 6.598 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.4822, allocations: 80.17 kB / 416.6 MB, free: 6.543 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.4838, allocations: 0.6796 MB / 417.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.4838, allocations: 3.438 kB / 417.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.661e-05/0.4839, allocations: 32.8 kB / 417.3 MB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.114e-05/0.484, allocations: 16 kB / 417.3 MB, free: 6.027 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.4852, allocations: 485.7 kB / 417.8 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005366/0.4906, allocations: 2.64 MB / 420.4 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.4919, allocations: 0.5062 MB / 420.9 MB, free: 3.273 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005876/0.4925, allocations: 265.3 kB / 421.2 MB, free: 3.117 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.562e-05/0.4926, allocations: 16.48 kB / 421.2 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008966/0.4935, allocations: 400.7 kB / 421.6 MB, free: 2.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 4.057e-06/0.4935, allocations: 0 / 421.6 MB, free: 2.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.001597/0.4951, allocations: 0.6121 MB / 422.2 MB, free: 2.352 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.551e-05/0.4953, allocations: 111.4 kB / 422.3 MB, free: 2.219 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008199/0.4961, allocations: 477.9 kB / 422.8 MB, free: 1.855 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.596e-05/0.4962, allocations: 48.2 kB / 422.8 MB, free: 1.816 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/0.4965, allocations: 329.5 kB / 423.1 MB, free: 1.594 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002354/0.4968, allocations: 201.3 kB / 423.3 MB, free: 1.422 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.613e-05/0.4968, allocations: 10.94 kB / 423.3 MB, free: 1.422 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002368/0.4971, allocations: 378.9 kB / 423.7 MB, free: 1.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.4976, allocations: 191.5 kB / 423.9 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006576/0.4983, allocations: 359.6 kB / 424.2 MB, free: 0.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/0.4989, allocations: 252.3 kB / 424.5 MB, free: 456 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/0.4989, allocations: 7.938 kB / 424.5 MB, free: 448 kB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001798/0.5007, allocations: 0.7289 MB / 425.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001056/0.5018, allocations: 1.861 MB / 427.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.5018, allocations: 4 kB / 427.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006475/0.5025, allocations: 151.9 kB / 427.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006769/0.5032, allocations: 123.7 kB / 427.4 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003718/0.5069, allocations: 2.309 MB / 429.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007939/0.5077, allocations: 93.41 kB / 429.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.933e-05/0.5078, allocations: 29.06 kB / 429.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.5078, allocations: 7.953 kB / 429.8 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001581/0.5094, allocations: 0.6552 MB / 430.5 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.5095, allocations: 8 kB / 430.5 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000561/0.51, allocations: 157.5 kB / 430.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006015/0.5107, allocations: 111.2 kB / 430.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003631/0.5143, allocations: 2.313 MB / 433 MB, free: 8.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007378/0.5151, allocations: 81.8 kB / 433.1 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.669e-05/0.5152, allocations: 23.94 kB / 433.1 MB, free: 8.781 MB / 346.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.0002942/0.5155, allocations: 165 kB / 433.3 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.5157, allocations: 75.09 kB / 433.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001651/0.5173, allocations: 0.6588 MB / 434 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.5174, allocations: 4 kB / 434 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.5174, allocations: 96 / 434 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.5174, allocations: 11.97 kB / 434 MB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002942/0.5204, allocations: 1.457 MB / 435.5 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.5204, allocations: 0 / 435.5 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/0.521, allocations: 83.88 kB / 435.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00055/0.5215, allocations: 141.2 kB / 435.7 MB, free: 6.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.457e-05/0.5216, allocations: 18.67 kB / 435.7 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003682/0.5253, allocations: 2.328 MB / 438.1 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.832e-06/0.5253, allocations: 0 / 438.1 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.5277, allocations: 1.012 MB / 439.1 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004268/0.5281, allocations: 212.7 kB / 439.3 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.5283, allocations: 11.25 kB / 439.3 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/0.5289, allocations: 58.7 kB / 439.4 MB, free: 3.848 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.5291, allocations: 63.47 kB / 439.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.425e-05/0.5292, allocations: 19.48 kB / 439.4 MB, free: 3.781 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006243/0.5298, allocations: 367.6 kB / 439.8 MB, free: 3.508 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.5299, allocations: 0 / 439.8 MB, free: 3.508 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00152/0.5314, allocations: 362.9 kB / 440.2 MB, free: 3.188 MB / 346.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.0002637/0.5317, allocations: 144 kB / 440.3 MB, free: 3.055 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.5346, allocations: 1.324 MB / 441.6 MB, free: 1.754 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.122e-06/0.5346, allocations: 0 / 441.6 MB, free: 1.754 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.5357, allocations: 476.4 kB / 442.1 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007728/0.5365, allocations: 97.5 kB / 442.2 MB, free: 1.184 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.5393, allocations: 0.9908 MB / 443.2 MB, free: 172 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008376/0.5402, allocations: 0.9638 MB / 444.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008062/0.541, allocations: 121.1 kB / 444.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.5412, allocations: 47.42 kB / 444.3 MB, free: 15.01 MB / 362.7 MB Notification: Performance of SimCode: time 1.798e-06/0.5412, allocations: 3.938 kB / 444.3 MB, free: 15 MB / 362.7 MB Notification: Performance of Templates: time 0.03134/0.5726, allocations: 11.43 MB / 455.7 MB, free: 3.617 MB / 362.7 MB