Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.073/2.073, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.981e-05/3.998e-05, allocations: 4 kB / 269.5 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 47.57 MB / 317 MB, free: 6.645 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4139/0.5158, allocations: 85.45 MB / 402.5 MB, free: 2.273 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.5162, allocations: 94.62 kB / 402.6 MB, free: 2.219 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05933/0.5755, allocations: 12.31 MB / 414.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5756, allocations: 0 / 414.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.921e-05/0.5757, allocations: 16 kB / 414.9 MB, free: 7.773 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.003482/0.5792, allocations: 0.9774 MB / 415.9 MB, free: 6.785 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.992e-05/0.5793, allocations: 16.03 kB / 415.9 MB, free: 6.77 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003559/0.5796, allocations: 108.8 kB / 416 MB, free: 6.695 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003366/0.58, allocations: 98.83 kB / 416.1 MB, free: 6.598 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.5815, allocations: 0.5238 MB / 416.6 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.017e-05/0.5817, allocations: 49.19 kB / 416.7 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002262/0.5819, allocations: 74.92 kB / 416.8 MB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.584, allocations: 0.6882 MB / 417.4 MB, free: 5.551 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.11e-05/0.5841, allocations: 3.906 kB / 417.4 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.5842, allocations: 32.73 kB / 417.5 MB, free: 5.535 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.5843, allocations: 16 kB / 417.5 MB, free: 5.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.5858, allocations: 483 kB / 418 MB, free: 5.227 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007246/0.5931, allocations: 2.639 MB / 420.6 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/0.5949, allocations: 0.5075 MB / 421.1 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008061/0.5957, allocations: 273.5 kB / 421.4 MB, free: 2.605 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.916e-05/0.5959, allocations: 16.48 kB / 421.4 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/0.597, allocations: 399.6 kB / 421.8 MB, free: 2.289 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 1.324e-05/0.597, allocations: 7.984 kB / 421.8 MB, free: 2.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.001974/0.599, allocations: 0.6038 MB / 422.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.5992, allocations: 123 kB / 422.5 MB, free: 1.699 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009847/0.6002, allocations: 474 kB / 423 MB, free: 1.336 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002005/0.6004, allocations: 44.83 kB / 423 MB, free: 1.301 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003673/0.6008, allocations: 326.5 kB / 423.3 MB, free: 1.082 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/0.6011, allocations: 202.3 kB / 423.5 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.213e-05/0.6012, allocations: 13.75 kB / 423.6 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.6014, allocations: 384.6 kB / 423.9 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006025/0.602, allocations: 183.8 kB / 424.1 MB, free: 456 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007523/0.6028, allocations: 366.3 kB / 424.5 MB, free: 108 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007176/0.6036, allocations: 244.7 kB / 424.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.6036, allocations: 0 / 424.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002105/0.6057, allocations: 0.7278 MB / 425.4 MB, free: 15.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000821/0.6066, allocations: 1.863 MB / 427.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/0.6066, allocations: 4 kB / 427.3 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008923/0.6075, allocations: 153.6 kB / 427.4 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.6086, allocations: 123.1 kB / 427.6 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004365/0.613, allocations: 2.315 MB / 429.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.6142, allocations: 92.47 kB / 430 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.6143, allocations: 27.52 kB / 430 MB, free: 11.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.6144, allocations: 4 kB / 430 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001898/0.6163, allocations: 0.6581 MB / 430.7 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.6163, allocations: 4 kB / 430.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007094/0.6171, allocations: 162.4 kB / 430.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009369/0.618, allocations: 110.8 kB / 430.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/0.6223, allocations: 2.305 MB / 433.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.6234, allocations: 81.73 kB / 433.3 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.424e-05/0.6235, allocations: 31.06 kB / 433.4 MB, free: 8.273 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.0003434/0.6239, allocations: 170.4 kB / 433.5 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.6241, allocations: 67.16 kB / 433.6 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.6261, allocations: 0.6559 MB / 434.2 MB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/0.6261, allocations: 11.98 kB / 434.2 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.6261, allocations: 4 kB / 434.3 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.6262, allocations: 3.984 kB / 434.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.6297, allocations: 1.456 MB / 435.7 MB, free: 6.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.6298, allocations: 0 / 435.7 MB, free: 6.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008456/0.6306, allocations: 83.88 kB / 435.8 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007188/0.6314, allocations: 146.6 kB / 435.9 MB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.6315, allocations: 17.55 kB / 436 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004105/0.6356, allocations: 2.315 MB / 438.3 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.6357, allocations: 0 / 438.3 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.6385, allocations: 1.01 MB / 439.3 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000568/0.6392, allocations: 212.7 kB / 439.5 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.6393, allocations: 14.94 kB / 439.5 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008716/0.6402, allocations: 58.83 kB / 439.6 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002632/0.6405, allocations: 63.41 kB / 439.6 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.827e-05/0.6406, allocations: 27.55 kB / 439.6 MB, free: 3.273 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006885/0.6413, allocations: 367.5 kB / 440 MB, free: 3 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6413, allocations: 0 / 440 MB, free: 3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001822/0.6432, allocations: 361.4 kB / 440.4 MB, free: 2.684 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.003164/0.6464, allocations: 1.602 MB / 442 MB, free: 1.355 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003677/0.6501, allocations: 1.325 MB / 443.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.6502, allocations: 0 / 443.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.6516, allocations: 484.3 kB / 443.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.6527, allocations: 94.88 kB / 443.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004321/0.6571, allocations: 1.125 MB / 445 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007277/0.6578, allocations: 0.9599 MB / 445.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009946/0.6589, allocations: 121.1 kB / 446.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005809/0.6595, allocations: 255.3 kB / 446.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6595, allocations: 0 / 446.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07836/0.7379, allocations: 17.35 MB / 463.7 MB, free: 11.61 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003489/0.7383, allocations: 221.9 kB / 463.9 MB, free: 11.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.593/4.331, allocations: 0 / 463.9 MB, free: 11.38 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat