Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.923e-05/3.947e-05, allocations: 4 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1476, allocations: 44.51 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4163/0.564, allocations: 79.77 MB / 379.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.5643, allocations: 85.25 kB / 379.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05011/0.6145, allocations: 12.04 MB / 391.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6145, allocations: 3.938 kB / 391.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.05e-05/0.6146, allocations: 15.53 kB / 391.9 MB, free: 11.05 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002864/0.6175, allocations: 0.9846 MB / 392.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.6175, allocations: 11.62 kB / 392.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000276/0.6178, allocations: 109.7 kB / 393 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002618/0.6181, allocations: 97.38 kB / 393.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.6192, allocations: 0.5052 MB / 393.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.218e-05/0.6193, allocations: 59.31 kB / 393.7 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.6194, allocations: 73.34 kB / 393.7 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.6211, allocations: 0.6997 MB / 394.4 MB, free: 9.938 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.6212, allocations: 0 / 394.4 MB, free: 9.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.6213, allocations: 30.81 kB / 394.5 MB, free: 9.934 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.6213, allocations: 19.69 kB / 394.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.6226, allocations: 488.6 kB / 395 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00604/0.6287, allocations: 2.682 MB / 397.7 MB, free: 8.875 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.6301, allocations: 0.5061 MB / 398.2 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006268/0.6307, allocations: 268.1 kB / 398.4 MB, free: 8.828 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.078e-05/0.6308, allocations: 14.41 kB / 398.4 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009024/0.6317, allocations: 415.7 kB / 398.8 MB, free: 8.746 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 3.206e-06/0.6318, allocations: 0 / 398.8 MB, free: 8.746 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001823/0.6336, allocations: 0.6129 MB / 399.5 MB, free: 8.656 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.6337, allocations: 121.9 kB / 399.6 MB, free: 8.523 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000785/0.6345, allocations: 461.4 kB / 400 MB, free: 8.406 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.6346, allocations: 40.36 kB / 400.1 MB, free: 8.375 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003846/0.635, allocations: 335.6 kB / 400.4 MB, free: 8.219 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.6353, allocations: 212.6 kB / 400.6 MB, free: 8.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.6354, allocations: 14.69 kB / 400.6 MB, free: 8.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.6355, allocations: 379.5 kB / 401 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005745/0.6361, allocations: 194.1 kB / 401.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000629/0.6367, allocations: 366.5 kB / 401.5 MB, free: 7.582 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006092/0.6374, allocations: 252.5 kB / 401.8 MB, free: 7.535 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.6374, allocations: 0 / 401.8 MB, free: 7.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001796/0.6392, allocations: 0.7496 MB / 402.5 MB, free: 7.383 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004029/0.6396, allocations: 1.861 MB / 404.4 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.6396, allocations: 7.594 kB / 404.4 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000775/0.6404, allocations: 142.7 kB / 404.5 MB, free: 5.418 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.6415, allocations: 133 kB / 404.7 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003879/0.6454, allocations: 2.288 MB / 407 MB, free: 20 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.6465, allocations: 92.72 kB / 407 MB, free: 19.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/0.6466, allocations: 29.31 kB / 407.1 MB, free: 19.97 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.6466, allocations: 7.875 kB / 407.1 MB, free: 19.96 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001685/0.6483, allocations: 0.6639 MB / 407.7 MB, free: 19.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.6483, allocations: 4.375 kB / 407.7 MB, free: 19.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006217/0.649, allocations: 152 kB / 407.9 MB, free: 19.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009275/0.6499, allocations: 124.6 kB / 408 MB, free: 19.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003768/0.6537, allocations: 2.279 MB / 410.3 MB, free: 18.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.6548, allocations: 86.16 kB / 410.4 MB, free: 18.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.441e-05/0.6549, allocations: 37.73 kB / 410.4 MB, free: 18.41 MB / 330.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 (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.0003279/0.6552, allocations: 157.8 kB / 410.6 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.6554, allocations: 73.7 kB / 410.6 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.6572, allocations: 0.6589 MB / 411.3 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.6573, allocations: 11.73 kB / 411.3 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.6573, allocations: 4 kB / 411.3 MB, free: 18.12 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.6573, allocations: 3.984 kB / 411.3 MB, free: 18.12 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.6606, allocations: 1.471 MB / 412.8 MB, free: 17.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.6607, allocations: 7.812 kB / 412.8 MB, free: 17.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008879/0.6616, allocations: 95.84 kB / 412.9 MB, free: 17.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006153/0.6622, allocations: 132.6 kB / 413 MB, free: 17.49 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.872e-05/0.6623, allocations: 16.11 kB / 413 MB, free: 17.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003708/0.6661, allocations: 2.279 MB / 415.3 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6661, allocations: 48 / 415.3 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.6686, allocations: 1.017 MB / 416.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004437/0.6691, allocations: 212.3 kB / 416.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.6692, allocations: 19.17 kB / 416.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008601/0.6701, allocations: 57.14 kB / 416.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/0.6704, allocations: 63.53 kB / 416.7 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-05/0.6705, allocations: 25.14 kB / 416.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006298/0.6711, allocations: 360.9 kB / 417.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6711, allocations: 0 / 417.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001678/0.6728, allocations: 357.2 kB / 417.4 MB, free: 15.36 MB / 330.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,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 (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.003299/0.6761, allocations: 1.617 MB / 419 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003572/0.6798, allocations: 1.332 MB / 420.4 MB, free: 14.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.6798, allocations: 1.5 kB / 420.4 MB, free: 14.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.681, allocations: 461.2 kB / 420.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009615/0.682, allocations: 110.9 kB / 420.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003762/0.6858, allocations: 1.155 MB / 422.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006699/0.6865, allocations: 0.9534 MB / 423 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000979/0.6875, allocations: 123.2 kB / 423.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005011/0.688, allocations: 261.8 kB / 423.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.688, allocations: 0 / 423.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07276/0.7608, allocations: 17.03 MB / 440.4 MB, free: 3.582 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003508/0.7612, allocations: 239.1 kB / 440.7 MB, free: 3.344 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.467/4.228, allocations: 0 / 440.7 MB, free: 3.344 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat