Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.15/2.15, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.902e-05/2.878e-05, allocations: 0 / 292.8 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.122, allocations: 50.42 MB / 343.2 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4633/0.5853, allocations: 86.72 MB / 429.9 MB, free: 7.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003447/0.5857, allocations: 82.58 kB / 430 MB, free: 7.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0602/0.6459, allocations: 12.58 MB / 442.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.646, allocations: 0 / 442.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.614e-05/0.6461, allocations: 20 kB / 442.6 MB, free: 12.4 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.003615/0.6497, allocations: 0.9832 MB / 443.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.079e-05/0.6498, allocations: 12.03 kB / 443.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003578/0.6502, allocations: 107.6 kB / 443.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003301/0.6505, allocations: 98.86 kB / 443.8 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.652, allocations: 0.5217 MB / 444.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.938e-05/0.6522, allocations: 57.25 kB / 444.3 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000247/0.6524, allocations: 76.47 kB / 444.4 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.6546, allocations: 0.7026 MB / 445.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.161e-05/0.6547, allocations: 0 / 445.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/0.6548, allocations: 26.69 kB / 445.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.417e-05/0.6548, allocations: 16 kB / 445.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.6565, allocations: 497.1 kB / 445.7 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007548/0.6641, allocations: 2.657 MB / 448.3 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.6659, allocations: 0.5149 MB / 448.8 MB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007819/0.6667, allocations: 267.7 kB / 449.1 MB, free: 7.203 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.445e-05/0.6668, allocations: 12.5 kB / 449.1 MB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/0.668, allocations: 402 kB / 449.5 MB, free: 6.891 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 4.909e-06/0.668, allocations: 0 / 449.5 MB, free: 6.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.002029/0.67, allocations: 0.6024 MB / 450.1 MB, free: 6.453 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.6702, allocations: 123.2 kB / 450.2 MB, free: 6.312 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.6712, allocations: 465.8 kB / 450.7 MB, free: 5.957 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001961/0.6715, allocations: 56.06 kB / 450.7 MB, free: 5.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/0.6719, allocations: 332.2 kB / 451 MB, free: 5.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/0.6722, allocations: 199.7 kB / 451.2 MB, free: 5.516 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.6723, allocations: 14.38 kB / 451.3 MB, free: 5.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002364/0.6725, allocations: 381.4 kB / 451.6 MB, free: 5.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006595/0.6732, allocations: 184.8 kB / 451.8 MB, free: 5.055 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008006/0.674, allocations: 367.1 kB / 452.2 MB, free: 4.715 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007895/0.6749, allocations: 258.4 kB / 452.4 MB, free: 4.531 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.6749, allocations: 0 / 452.4 MB, free: 4.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002307/0.6772, allocations: 0.7351 MB / 453.2 MB, free: 3.977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008313/0.6781, allocations: 1.862 MB / 455 MB, free: 2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.819e-05/0.6782, allocations: 4 kB / 455 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009167/0.6791, allocations: 156.5 kB / 455.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.6802, allocations: 119.3 kB / 455.3 MB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004591/0.6848, allocations: 2.303 MB / 457.6 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.6861, allocations: 99.33 kB / 457.7 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.6863, allocations: 31.98 kB / 457.7 MB, free: 15.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.6863, allocations: 7.938 kB / 457.7 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00207/0.6884, allocations: 0.6572 MB / 458.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.6884, allocations: 4 kB / 458.4 MB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007703/0.6892, allocations: 152.9 kB / 458.5 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00099/0.6902, allocations: 123.9 kB / 458.7 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00442/0.6947, allocations: 2.304 MB / 461 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.6958, allocations: 83.5 kB / 461 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.696, allocations: 24 kB / 461.1 MB, free: 11.82 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.0003563/0.6964, allocations: 165 kB / 461.2 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002316/0.6966, allocations: 71.14 kB / 461.3 MB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/0.6988, allocations: 0.6588 MB / 462 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.6989, allocations: 4 kB / 462 MB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.6989, allocations: 7.984 kB / 462 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.6989, allocations: 0 / 462 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003998/0.7029, allocations: 1.459 MB / 463.4 MB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.703, allocations: 4.125 kB / 463.4 MB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008901/0.7039, allocations: 91.88 kB / 463.5 MB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000761/0.7047, allocations: 148.7 kB / 463.7 MB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/0.7049, allocations: 19.98 kB / 463.7 MB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004453/0.7094, allocations: 2.306 MB / 466 MB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.247e-06/0.7094, allocations: 7.922 kB / 466 MB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/0.7124, allocations: 1.012 MB / 467 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005592/0.713, allocations: 204.1 kB / 467.2 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000214/0.7132, allocations: 27.92 kB / 467.2 MB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000969/0.7142, allocations: 59.91 kB / 467.3 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003175/0.7146, allocations: 60.47 kB / 467.4 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.798e-05/0.7147, allocations: 23.98 kB / 467.4 MB, free: 5.254 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007587/0.7155, allocations: 361.6 kB / 467.7 MB, free: 4.902 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.7155, allocations: 0 / 467.7 MB, free: 4.902 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001974/0.7175, allocations: 359.1 kB / 468.1 MB, free: 4.551 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.003542/0.7211, allocations: 1.607 MB / 469.7 MB, free: 2.914 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003898/0.725, allocations: 1.329 MB / 471 MB, free: 1.543 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.7251, allocations: 8.062 kB / 471 MB, free: 1.535 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.7265, allocations: 463.4 kB / 471.5 MB, free: 1.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.7277, allocations: 114.5 kB / 471.6 MB, free: 0.957 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004624/0.7323, allocations: 1.125 MB / 472.7 MB, free: 15.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/0.7331, allocations: 0.9638 MB / 473.7 MB, free: 14.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001018/0.7342, allocations: 125.8 kB / 473.8 MB, free: 14.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006059/0.7349, allocations: 259.3 kB / 474.1 MB, free: 14.42 MB / 394.7 MB Notification: Performance of SimCode: time 1.402e-06/0.7349, allocations: 0 / 474.1 MB, free: 14.42 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06401/0.7989, allocations: 17.32 MB / 491.4 MB, free: 13.34 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003495/0.7993, allocations: 227.2 kB / 491.6 MB, free: 13.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.266/4.066, allocations: 2.75 kB / 491.6 MB, free: 13.12 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat