Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.007/2.007, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.106e-05/4.112e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1143, allocations: 50.41 MB / 342.7 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4665/0.5808, allocations: 87.09 MB / 429.7 MB, free: 6.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/0.5812, allocations: 86.25 kB / 429.8 MB, free: 6.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05828/0.6395, allocations: 12.91 MB / 442.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.6396, allocations: 0 / 442.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.61e-05/0.6397, allocations: 20 kB / 442.8 MB, free: 11.73 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003297/0.643, allocations: 0.9955 MB / 443.8 MB, free: 10.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.643, allocations: 8.031 kB / 443.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003635/0.6434, allocations: 116.7 kB / 443.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003279/0.6438, allocations: 102.8 kB / 444 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001408/0.6452, allocations: 0.535 MB / 444.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.054e-05/0.6453, allocations: 57.56 kB / 444.6 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.6455, allocations: 78.56 kB / 444.6 MB, free: 9.965 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/0.6475, allocations: 0.7193 MB / 445.4 MB, free: 9.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.842e-05/0.6476, allocations: 4 kB / 445.4 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.6478, allocations: 28.88 kB / 445.4 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.6478, allocations: 20 kB / 445.4 MB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.6494, allocations: 499.8 kB / 445.9 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007196/0.6567, allocations: 2.757 MB / 448.7 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.6582, allocations: 0.5062 MB / 449.2 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006922/0.659, allocations: 273.2 kB / 449.4 MB, free: 6.395 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.803e-05/0.6591, allocations: 11.23 kB / 449.4 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001034/0.6601, allocations: 410 kB / 449.8 MB, free: 6.074 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 3.486e-06/0.6601, allocations: 0 / 449.8 MB, free: 6.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.001843/0.662, allocations: 0.6131 MB / 450.5 MB, free: 5.629 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.897e-05/0.6621, allocations: 126.1 kB / 450.6 MB, free: 5.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009524/0.6631, allocations: 467.7 kB / 451 MB, free: 5.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/0.6632, allocations: 49.75 kB / 451.1 MB, free: 5.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003317/0.6636, allocations: 363.5 kB / 451.4 MB, free: 4.812 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002751/0.6639, allocations: 213.1 kB / 451.6 MB, free: 4.633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.13e-05/0.6639, allocations: 14.44 kB / 451.7 MB, free: 4.629 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.6641, allocations: 345.1 kB / 452 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005829/0.6647, allocations: 190.2 kB / 452.2 MB, free: 4.184 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007311/0.6654, allocations: 377.1 kB / 452.6 MB, free: 3.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006837/0.6661, allocations: 251.8 kB / 452.8 MB, free: 3.664 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.6662, allocations: 0 / 452.8 MB, free: 3.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001917/0.6681, allocations: 0.7054 MB / 453.5 MB, free: 3.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008036/0.6689, allocations: 1.86 MB / 455.4 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.669, allocations: 12 kB / 455.4 MB, free: 1.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007855/0.6698, allocations: 143.2 kB / 455.5 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.6709, allocations: 123.4 kB / 455.6 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004043/0.6749, allocations: 2.289 MB / 457.9 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.6761, allocations: 87.45 kB / 458 MB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.27e-05/0.6762, allocations: 35.94 kB / 458 MB, free: 14.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.6762, allocations: 4 kB / 458 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001919/0.6781, allocations: 0.6716 MB / 458.7 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.6782, allocations: 4 kB / 458.7 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006023/0.6788, allocations: 140.8 kB / 458.9 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009509/0.6798, allocations: 124.1 kB / 459 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004039/0.6838, allocations: 2.26 MB / 461.2 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008149/0.6847, allocations: 79.56 kB / 461.3 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.789e-05/0.6848, allocations: 27.95 kB / 461.3 MB, free: 11.34 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 (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.0003456/0.6851, allocations: 172.9 kB / 461.5 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00024/0.6854, allocations: 71.16 kB / 461.6 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/0.6874, allocations: 0.6671 MB / 462.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.6875, allocations: 7.938 kB / 462.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.6875, allocations: 0 / 462.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.6875, allocations: 3.984 kB / 462.3 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/0.6911, allocations: 1.487 MB / 463.8 MB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.6912, allocations: 0 / 463.8 MB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009193/0.6921, allocations: 95.86 kB / 463.8 MB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006415/0.6927, allocations: 132.8 kB / 464 MB, free: 8.629 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.35e-05/0.6929, allocations: 19.98 kB / 464 MB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004039/0.6969, allocations: 2.273 MB / 466.3 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.697, allocations: 0 / 466.3 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00282/0.6998, allocations: 1.039 MB / 467.3 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00052/0.7004, allocations: 212.1 kB / 467.5 MB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.7005, allocations: 16 kB / 467.5 MB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008933/0.7014, allocations: 51.95 kB / 467.6 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/0.7017, allocations: 72.45 kB / 467.6 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-05/0.7018, allocations: 19.98 kB / 467.7 MB, free: 4.762 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007189/0.7025, allocations: 369.6 kB / 468 MB, free: 4.402 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7026, allocations: 0 / 468 MB, free: 4.402 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001776/0.7043, allocations: 355.1 kB / 468.4 MB, free: 4.055 MB / 378.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_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 (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.003264/0.7076, allocations: 1.618 MB / 470 MB, free: 2.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003412/0.7111, allocations: 1.311 MB / 471.3 MB, free: 1.055 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.7112, allocations: 0 / 471.3 MB, free: 1.055 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.7124, allocations: 468.6 kB / 471.8 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.7135, allocations: 114.1 kB / 471.9 MB, free: 492 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004159/0.7177, allocations: 1.227 MB / 473.1 MB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007271/0.7185, allocations: 0.9744 MB / 474.1 MB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006748/0.7191, allocations: 275.3 kB / 474.3 MB, free: 13.93 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7192, allocations: 0 / 474.3 MB, free: 13.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.864/3.583, allocations: 15.18 MB / 489.5 MB, free: 14.77 MB / 410.7 MB