Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.125/2.125, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.029e-05/4.048e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3083, allocations: 44.51 MB / 294.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1656/0.474, allocations: 78.8 MB / 373 MB, free: 3.125 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000348/0.4744, allocations: 95.88 kB / 373.1 MB, free: 3.031 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05538/0.5298, allocations: 11.58 MB / 384.7 MB, free: 7.379 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5299, allocations: 3.938 kB / 384.7 MB, free: 7.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.043e-05/0.53, allocations: 19.98 kB / 384.7 MB, free: 7.355 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.004204/0.5342, allocations: 0.9519 MB / 385.7 MB, free: 6.348 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.502e-05/0.5343, allocations: 15.97 kB / 385.7 MB, free: 6.332 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004186/0.5347, allocations: 94.88 kB / 385.8 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.5365, allocations: 0.5 MB / 386.3 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.184e-05/0.5366, allocations: 24 kB / 386.3 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.5368, allocations: 44 kB / 386.4 MB, free: 5.629 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002019/0.5389, allocations: 442.5 kB / 386.8 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.5411, allocations: 0.5902 MB / 387.4 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.515e-05/0.5412, allocations: 4 kB / 387.4 MB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.5414, allocations: 3.938 kB / 387.4 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.876e-05/0.5414, allocations: 16 kB / 387.4 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008371/0.5498, allocations: 2.471 MB / 389.9 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002014/0.5519, allocations: 0.4914 MB / 390.4 MB, free: 1.488 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008953/0.5528, allocations: 254 kB / 390.6 MB, free: 1.238 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.773e-05/0.5529, allocations: 4.562 kB / 390.6 MB, free: 1.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00138/0.5543, allocations: 392.7 kB / 391 MB, free: 0.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 4.518e-06/0.5543, allocations: 0 / 391 MB, free: 0.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.002264/0.5566, allocations: 0.5539 MB / 391.6 MB, free: 276 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.5567, allocations: 119.4 kB / 391.7 MB, free: 132 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009994/0.5578, allocations: 385.3 kB / 392.1 MB, free: 15.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001518/0.5579, allocations: 25.7 kB / 392.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000456/0.5584, allocations: 328.3 kB / 392.4 MB, free: 15.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.5588, allocations: 193.2 kB / 392.6 MB, free: 15.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.5589, allocations: 3.938 kB / 392.6 MB, free: 15.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000263/0.5591, allocations: 370.8 kB / 393 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007278/0.5599, allocations: 173.6 kB / 393.1 MB, free: 14.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.5608, allocations: 346.4 kB / 393.5 MB, free: 14.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008534/0.5617, allocations: 205 kB / 393.7 MB, free: 14.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.5618, allocations: 4 kB / 393.7 MB, free: 14.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002611/0.5644, allocations: 0.6482 MB / 394.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001159/0.5656, allocations: 1.86 MB / 396.2 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.377e-05/0.5656, allocations: 11.94 kB / 396.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.5667, allocations: 144.8 kB / 396.3 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.5681, allocations: 123.8 kB / 396.5 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005551/0.5737, allocations: 2.236 MB / 398.7 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.575, allocations: 67.56 kB / 398.8 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.5751, allocations: 28 kB / 398.8 MB, free: 8.648 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.5751, allocations: 0 / 398.8 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002265/0.5774, allocations: 0.5579 MB / 399.3 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.5774, allocations: 4 kB / 399.3 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008827/0.5783, allocations: 152.8 kB / 399.5 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.5795, allocations: 119.8 kB / 399.6 MB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005329/0.5849, allocations: 2.233 MB / 401.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.586, allocations: 63.61 kB / 401.9 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.5862, allocations: 31.98 kB / 401.9 MB, free: 5.379 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.000383/0.5866, allocations: 141.8 kB / 402.1 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002088/0.5887, allocations: 0.5577 MB / 402.6 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.5889, allocations: 67.25 kB / 402.7 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00236/0.5913, allocations: 0.5921 MB / 403.3 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.5913, allocations: 8 kB / 403.3 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5913, allocations: 0 / 403.3 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.5914, allocations: 3.984 kB / 403.3 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/0.5956, allocations: 1.311 MB / 404.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.5957, allocations: 4 kB / 404.6 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.5968, allocations: 83.88 kB / 404.7 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009217/0.5977, allocations: 136.7 kB / 404.8 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.289e-05/0.5978, allocations: 15.98 kB / 404.9 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004705/0.6026, allocations: 2.225 MB / 407.1 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6026, allocations: 0 / 407.1 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/0.6051, allocations: 0.9531 MB / 408 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004089/0.6055, allocations: 196.3 kB / 408.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001525/0.6057, allocations: 8 kB / 408.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008365/0.6065, allocations: 51.91 kB / 408.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002912/0.6068, allocations: 72.39 kB / 408.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.295e-05/0.6069, allocations: 19.98 kB / 408.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005183/0.6075, allocations: 286.9 kB / 408.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6075, allocations: 0 / 408.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00168/0.6092, allocations: 319 kB / 409 MB, free: 14.12 MB / 362.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.002861/0.612, allocations: 1.528 MB / 410.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003196/0.6153, allocations: 1.278 MB / 411.8 MB, free: 11.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.6153, allocations: 4.125 kB / 411.8 MB, free: 11.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.6164, allocations: 455.5 kB / 412.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000796/0.6172, allocations: 78 kB / 412.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.6208, allocations: 1.034 MB / 413.3 MB, free: 9.637 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007581/0.6216, allocations: 0.9519 MB / 414.3 MB, free: 8.652 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008239/0.6224, allocations: 108.7 kB / 414.4 MB, free: 8.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005246/0.6229, allocations: 247.3 kB / 414.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6229, allocations: 0 / 414.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3117/0.9347, allocations: 15.09 MB / 429.7 MB, free: 106.2 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002567/0.935, allocations: 185 kB / 429.9 MB, free: 106 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.168/4.103, allocations: 1.188 kB / 429.9 MB, free: 106 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat