Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.022e-05/3.045e-05, allocations: 4 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09248, allocations: 50.42 MB / 342.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3679/0.4604, allocations: 86.77 MB / 429.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.4608, allocations: 87.31 kB / 429.4 MB, free: 7.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05205/0.5128, allocations: 12.56 MB / 442 MB, free: 12.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.451e-06/0.5129, allocations: 4 kB / 442 MB, free: 12.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.276e-05/0.513, allocations: 23.94 kB / 442 MB, free: 12.66 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.002346/0.5153, allocations: 0.9809 MB / 443 MB, free: 11.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.5154, allocations: 11.97 kB / 443 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/0.5156, allocations: 94.88 kB / 443.1 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.5168, allocations: 0.5204 MB / 443.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.533e-05/0.5169, allocations: 59.2 kB / 443.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.5171, allocations: 69.06 kB / 443.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.5187, allocations: 0.703 MB / 444.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.233e-05/0.5188, allocations: 3.906 kB / 444.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.5189, allocations: 32.3 kB / 444.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.5189, allocations: 16 kB / 444.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.5202, allocations: 486.5 kB / 445 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005604/0.5258, allocations: 2.67 MB / 447.6 MB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.5272, allocations: 0.5111 MB / 448.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005892/0.5278, allocations: 266.3 kB / 448.4 MB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.161e-05/0.5279, allocations: 11.73 kB / 448.4 MB, free: 7.527 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009108/0.5288, allocations: 407.9 kB / 448.8 MB, free: 7.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 4.239e-06/0.5288, allocations: 0 / 448.8 MB, free: 7.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001626/0.5304, allocations: 0.6027 MB / 449.4 MB, free: 6.781 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.5306, allocations: 118.1 kB / 449.5 MB, free: 6.645 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008256/0.5314, allocations: 472.4 kB / 450 MB, free: 6.285 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.274e-05/0.5315, allocations: 47.45 kB / 450 MB, free: 6.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.5318, allocations: 355.7 kB / 450.4 MB, free: 5.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002373/0.5321, allocations: 200.3 kB / 450.6 MB, free: 5.812 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.854e-05/0.5322, allocations: 14.31 kB / 450.6 MB, free: 5.809 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.5324, allocations: 345 kB / 450.9 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005147/0.5329, allocations: 186.2 kB / 451.1 MB, free: 5.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006925/0.5336, allocations: 361.2 kB / 451.5 MB, free: 5.035 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006186/0.5342, allocations: 266.6 kB / 451.7 MB, free: 4.844 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.968e-06/0.5343, allocations: 0 / 451.7 MB, free: 4.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001715/0.536, allocations: 0.6904 MB / 452.4 MB, free: 4.336 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009891/0.537, allocations: 1.86 MB / 454.3 MB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.537, allocations: 4 kB / 454.3 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000677/0.5377, allocations: 149.8 kB / 454.4 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007266/0.5385, allocations: 122.7 kB / 454.6 MB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003796/0.5423, allocations: 2.311 MB / 456.9 MB, free: 64 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008458/0.5432, allocations: 91.47 kB / 457 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.976e-05/0.5433, allocations: 35.92 kB / 457 MB, free: 15.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.5433, allocations: 4 kB / 457 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001706/0.545, allocations: 0.6494 MB / 457.6 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.5451, allocations: 8.312 kB / 457.6 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005595/0.5456, allocations: 156.9 kB / 457.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.5463, allocations: 115.8 kB / 457.9 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00384/0.5502, allocations: 2.28 MB / 460.2 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005977/0.5508, allocations: 83.48 kB / 460.3 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.548e-05/0.5509, allocations: 28 kB / 460.3 MB, free: 12.48 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.0002996/0.5512, allocations: 160.8 kB / 460.5 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.5514, allocations: 67.16 kB / 460.5 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.5532, allocations: 0.6666 MB / 461.2 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.5533, allocations: 4 kB / 461.2 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.929e-06/0.5533, allocations: 0 / 461.2 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.5533, allocations: 7.984 kB / 461.2 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003237/0.5565, allocations: 1.459 MB / 462.7 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.715e-06/0.5566, allocations: 3.938 kB / 462.7 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006223/0.5572, allocations: 91.88 kB / 462.8 MB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006052/0.5579, allocations: 140.9 kB / 462.9 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.28e-05/0.558, allocations: 15.98 kB / 462.9 MB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00394/0.5619, allocations: 2.316 MB / 465.2 MB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.562, allocations: 3.984 kB / 465.2 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/0.5645, allocations: 1.012 MB / 466.2 MB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004582/0.565, allocations: 208.1 kB / 466.4 MB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.5651, allocations: 16 kB / 466.5 MB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006337/0.5658, allocations: 51.89 kB / 466.5 MB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.566, allocations: 76.41 kB / 466.6 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.652e-05/0.5661, allocations: 27.98 kB / 466.6 MB, free: 5.914 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006683/0.5668, allocations: 353.6 kB / 467 MB, free: 5.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.13e-07/0.5668, allocations: 0 / 467 MB, free: 5.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001607/0.5684, allocations: 355.1 kB / 467.3 MB, free: 5.223 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.000286/0.5687, allocations: 155.1 kB / 467.5 MB, free: 5.062 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003052/0.5718, allocations: 1.31 MB / 468.8 MB, free: 3.707 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5718, allocations: 0 / 468.8 MB, free: 3.707 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.5729, allocations: 472.4 kB / 469.2 MB, free: 3.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008686/0.5738, allocations: 106.9 kB / 469.3 MB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002916/0.5768, allocations: 1.018 MB / 470.4 MB, free: 2.086 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008231/0.5776, allocations: 0.9627 MB / 471.3 MB, free: 1.098 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002798/0.5779, allocations: 55.41 kB / 471.4 MB, free: 1.043 MB / 378.7 MB Notification: Performance of SimCode: time 1.908e-06/0.5779, allocations: 0 / 471.4 MB, free: 1.043 MB / 378.7 MB Notification: Performance of Templates: time 0.0215/0.5994, allocations: 11.79 MB / 483.2 MB, free: 5.281 MB / 394.7 MB