Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.173/2.173, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.145e-05, allocations: 3.531 kB / 249.8 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09804, allocations: 44.5 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4492/0.5473, allocations: 79.11 MB / 373.4 MB, free: 7.195 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003263/0.5477, allocations: 85.03 kB / 373.5 MB, free: 7.195 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05592/0.6036, allocations: 11.92 MB / 385.4 MB, free: 19.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6037, allocations: 3.938 kB / 385.4 MB, free: 19.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.062e-05/0.6037, allocations: 15.62 kB / 385.4 MB, free: 19.54 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.003051/0.6068, allocations: 0.9739 MB / 386.4 MB, free: 18.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.6069, allocations: 15.56 kB / 386.4 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.6072, allocations: 97.45 kB / 386.5 MB, free: 18.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001216/0.6084, allocations: 0.5121 MB / 387 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.112e-05/0.6085, allocations: 19.38 kB / 387 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.6087, allocations: 46.56 kB / 387.1 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001467/0.6102, allocations: 461.5 kB / 387.5 MB, free: 18.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.6118, allocations: 0.6087 MB / 388.2 MB, free: 18.19 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.818e-05/0.6119, allocations: 3.5 kB / 388.2 MB, free: 18.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.612, allocations: 3.906 kB / 388.2 MB, free: 18.19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.612, allocations: 15.44 kB / 388.2 MB, free: 18.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006547/0.6186, allocations: 2.552 MB / 390.7 MB, free: 16.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.62, allocations: 489.5 kB / 391.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006706/0.6207, allocations: 260.6 kB / 391.5 MB, free: 16.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.989e-05/0.6208, allocations: 12.44 kB / 391.5 MB, free: 16.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009824/0.6218, allocations: 392.7 kB / 391.9 MB, free: 16.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 4.158e-06/0.6219, allocations: 4 kB / 391.9 MB, free: 16.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001767/0.6236, allocations: 0.5597 MB / 392.4 MB, free: 16.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.615e-05/0.6237, allocations: 122.5 kB / 392.5 MB, free: 16.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007195/0.6245, allocations: 385.7 kB / 392.9 MB, free: 16.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.6246, allocations: 32.2 kB / 392.9 MB, free: 16.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000345/0.625, allocations: 331.5 kB / 393.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.6252, allocations: 201.2 kB / 393.5 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.515e-05/0.6253, allocations: 0 / 393.5 MB, free: 15.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.6255, allocations: 376 kB / 393.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005428/0.6261, allocations: 179.1 kB / 394 MB, free: 15.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006475/0.6267, allocations: 347.4 kB / 394.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006032/0.6274, allocations: 219 kB / 394.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.495e-06/0.6274, allocations: 3.875 kB / 394.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001986/0.6294, allocations: 0.6471 MB / 395.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000987/0.6304, allocations: 1.861 MB / 397.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.6304, allocations: 7.188 kB / 397.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008117/0.6313, allocations: 146.1 kB / 397.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.6324, allocations: 125 kB / 397.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004358/0.6368, allocations: 2.219 MB / 399.6 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.638, allocations: 78.23 kB / 399.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.841e-05/0.6381, allocations: 27.08 kB / 399.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.6381, allocations: 3.875 kB / 399.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001747/0.6399, allocations: 0.5657 MB / 400.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.6399, allocations: 11.8 kB / 400.2 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006923/0.6406, allocations: 135.7 kB / 400.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.6417, allocations: 129.4 kB / 400.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004205/0.6459, allocations: 2.208 MB / 402.7 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.647, allocations: 62.94 kB / 402.8 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-05/0.6471, allocations: 31.25 kB / 402.8 MB, free: 9.832 MB / 314.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.0003777/0.6475, allocations: 149.4 kB / 403 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001644/0.6492, allocations: 0.5632 MB / 403.5 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.6494, allocations: 73.3 kB / 403.6 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.6512, allocations: 0.5918 MB / 404.2 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.6513, allocations: 9.094 kB / 404.2 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.6513, allocations: 3.953 kB / 404.2 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.6513, allocations: 3.984 kB / 404.2 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.6546, allocations: 1.324 MB / 405.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.6547, allocations: 3.844 kB / 405.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009914/0.6557, allocations: 89.69 kB / 405.6 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006802/0.6564, allocations: 135.6 kB / 405.7 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-05/0.6565, allocations: 11.89 kB / 405.8 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004177/0.6607, allocations: 2.199 MB / 408 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.6607, allocations: 0 / 408 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.6633, allocations: 0.9737 MB / 408.9 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004736/0.6638, allocations: 200.8 kB / 409.1 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.664, allocations: 4.094 kB / 409.1 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009694/0.665, allocations: 50.02 kB / 409.2 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002878/0.6653, allocations: 69.27 kB / 409.2 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.907e-05/0.6654, allocations: 22.42 kB / 409.3 MB, free: 6.895 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005276/0.6659, allocations: 288.5 kB / 409.6 MB, free: 6.785 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.666, allocations: 0 / 409.6 MB, free: 6.785 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001829/0.6678, allocations: 314.1 kB / 409.9 MB, free: 6.738 MB / 314.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.003037/0.6708, allocations: 1.548 MB / 411.4 MB, free: 5.949 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003334/0.6742, allocations: 1.277 MB / 412.7 MB, free: 5.473 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.6743, allocations: 0.8125 kB / 412.7 MB, free: 5.473 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.6755, allocations: 453.4 kB / 413.1 MB, free: 5.316 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009969/0.6765, allocations: 78.55 kB / 413.2 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00439/0.681, allocations: 1.095 MB / 414.3 MB, free: 4.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008036/0.6818, allocations: 0.9649 MB / 415.3 MB, free: 3.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001095/0.6829, allocations: 104.8 kB / 415.4 MB, free: 3.809 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006676/0.6836, allocations: 255.7 kB / 415.6 MB, free: 3.754 MB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.6836, allocations: 4 kB / 415.6 MB, free: 3.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08671/0.7704, allocations: 15.08 MB / 430.7 MB, free: 4.73 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003754/0.7708, allocations: 198.5 kB / 430.9 MB, free: 4.531 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.554/4.325, allocations: 7.891 kB / 430.9 MB, free: 4.523 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat