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 2.06/2.06, allocations: 194.9 MB / 208 MB, free: 3.184 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.085e-05/3.096e-05, allocations: 4 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09556, allocations: 44.51 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4819/0.5776, allocations: 79.77 MB / 379.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.5779, allocations: 86.14 kB / 379.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05009/0.628, allocations: 12.04 MB / 391.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6281, allocations: 0 / 391.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.257e-05/0.6282, allocations: 19.47 kB / 391.9 MB, free: 11.46 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.002789/0.631, allocations: 0.9821 MB / 392.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.631, allocations: 7.5 kB / 392.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002466/0.6313, allocations: 118.5 kB / 393 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.6316, allocations: 97.16 kB / 393.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.6327, allocations: 0.505 MB / 393.6 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.823e-05/0.6328, allocations: 57.8 kB / 393.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.6329, allocations: 71.38 kB / 393.7 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.6346, allocations: 0.7089 MB / 394.4 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.546e-05/0.6347, allocations: 4.688 kB / 394.4 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.6349, allocations: 29.47 kB / 394.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.6349, allocations: 19.5 kB / 394.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.6362, allocations: 499.4 kB / 395 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005855/0.6421, allocations: 2.686 MB / 397.6 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.6435, allocations: 0.5101 MB / 398.2 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005984/0.6441, allocations: 276.5 kB / 398.4 MB, free: 9.215 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.373e-05/0.6442, allocations: 4.438 kB / 398.4 MB, free: 9.215 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008906/0.6451, allocations: 416.1 kB / 398.8 MB, free: 9.137 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 3.226e-06/0.6451, allocations: 0 / 398.8 MB, free: 9.137 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001731/0.6469, allocations: 0.6169 MB / 399.5 MB, free: 9.047 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/0.6469, allocations: 122.4 kB / 399.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007986/0.6478, allocations: 463.9 kB / 400 MB, free: 8.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.6479, allocations: 44.89 kB / 400.1 MB, free: 8.766 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002698/0.6482, allocations: 330.6 kB / 400.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.6484, allocations: 210 kB / 400.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.6485, allocations: 10.06 kB / 400.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.6486, allocations: 378.8 kB / 401 MB, free: 8.176 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.6491, allocations: 196.5 kB / 401.2 MB, free: 8.172 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006189/0.6498, allocations: 369.8 kB / 401.5 MB, free: 7.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005985/0.6504, allocations: 252.1 kB / 401.8 MB, free: 7.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.6504, allocations: 0 / 401.8 MB, free: 7.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001838/0.6523, allocations: 0.7614 MB / 402.5 MB, free: 7.777 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003974/0.6527, allocations: 1.862 MB / 404.4 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.6527, allocations: 7.781 kB / 404.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007031/0.6534, allocations: 146.1 kB / 404.6 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009916/0.6544, allocations: 133.6 kB / 404.7 MB, free: 5.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/0.6583, allocations: 2.282 MB / 407 MB, free: 20.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.6595, allocations: 90.91 kB / 407.1 MB, free: 20.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.954e-05/0.6596, allocations: 29.12 kB / 407.1 MB, free: 20.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.6596, allocations: 3.906 kB / 407.1 MB, free: 20.35 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001662/0.6613, allocations: 0.6844 MB / 407.8 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.6613, allocations: 3.875 kB / 407.8 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005943/0.6619, allocations: 142 kB / 407.9 MB, free: 20.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008684/0.6628, allocations: 124.6 kB / 408 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/0.6664, allocations: 2.284 MB / 410.3 MB, free: 18.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009965/0.6674, allocations: 91.16 kB / 410.4 MB, free: 18.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-05/0.6675, allocations: 28.97 kB / 410.4 MB, free: 18.8 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.0003287/0.6679, allocations: 161.8 kB / 410.6 MB, free: 18.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.668, allocations: 72.05 kB / 410.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/0.6698, allocations: 0.6664 MB / 411.3 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.6698, allocations: 11.77 kB / 411.3 MB, free: 18.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.6698, allocations: 0 / 411.3 MB, free: 18.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.6699, allocations: 7.891 kB / 411.3 MB, free: 18.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.6729, allocations: 1.464 MB / 412.8 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.6729, allocations: 3.906 kB / 412.8 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008427/0.6737, allocations: 93.25 kB / 412.9 MB, free: 17.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005832/0.6743, allocations: 141.6 kB / 413 MB, free: 17.87 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.6744, allocations: 19.23 kB / 413.1 MB, free: 17.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003652/0.6781, allocations: 2.273 MB / 415.3 MB, free: 16.35 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.6781, allocations: 0 / 415.3 MB, free: 16.35 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.6808, allocations: 1.032 MB / 416.4 MB, free: 16.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004686/0.6813, allocations: 208.2 kB / 416.6 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.6814, allocations: 14.34 kB / 416.6 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008325/0.6823, allocations: 54.39 kB / 416.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.6825, allocations: 72.48 kB / 416.7 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/0.6826, allocations: 26.39 kB / 416.7 MB, free: 15.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006226/0.6833, allocations: 355.2 kB / 417.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6833, allocations: 0 / 417.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001552/0.6848, allocations: 360.3 kB / 417.4 MB, free: 15.73 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.002892/0.6877, allocations: 1.613 MB / 419 MB, free: 14.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003269/0.6911, allocations: 1.362 MB / 420.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.6911, allocations: 0 / 420.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.6922, allocations: 486.1 kB / 420.9 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009194/0.6932, allocations: 112.4 kB / 421 MB, free: 14.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/0.6968, allocations: 1.161 MB / 422.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007038/0.6976, allocations: 0.963 MB / 423.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009103/0.6985, allocations: 119.2 kB / 423.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004921/0.699, allocations: 258.9 kB / 423.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.699, allocations: 0 / 423.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05868/0.7577, allocations: 17.1 MB / 440.6 MB, free: 3.762 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003816/0.7582, allocations: 228.5 kB / 440.8 MB, free: 3.516 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.456/4.214, allocations: 7.938 kB / 440.8 MB, free: 3.508 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