Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.349e-05, allocations: 8 kB / 255.5 MB, free: 2.598 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09311/0.09317, allocations: 44.51 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4547/0.5479, allocations: 87.27 MB / 387.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003928/0.5483, allocations: 91.17 kB / 387.4 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1905/0.7388, allocations: 47.08 MB / 434.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7389, allocations: 0 / 434.4 MB, free: 13.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002634/0.7392, allocations: 51.94 kB / 434.5 MB, free: 13.07 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: 442 * Number of variables: 442 Notification: Performance of Generate backend data structure: time 0.007831/0.747, allocations: 1.938 MB / 436.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.7471, allocations: 8.031 kB / 436.4 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001428/0.7486, allocations: 257.8 kB / 436.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/0.7497, allocations: 221.4 kB / 436.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01186/0.7616, allocations: 2.067 MB / 439 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002367/0.7619, allocations: 132.8 kB / 439.1 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006415/0.7626, allocations: 179.5 kB / 439.3 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007886/0.7705, allocations: 2.325 MB / 441.6 MB, free: 7.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.425e-05/0.7706, allocations: 0 / 441.6 MB, free: 7.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002898/0.7709, allocations: 72 kB / 441.7 MB, free: 7.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/0.771, allocations: 71.41 kB / 441.7 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005819/0.7769, allocations: 1.877 MB / 443.6 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01942/0.7963, allocations: 6.793 MB / 450.4 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004891/0.8013, allocations: 1.664 MB / 452.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002327/0.8036, allocations: 0.9217 MB / 453 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.646e-05/0.8038, allocations: 13 kB / 453 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002096/0.8059, allocations: 0.8701 MB / 453.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 4.148e-06/0.8059, allocations: 0 / 453.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.004549/0.8104, allocations: 1.626 MB / 455.5 MB, free: 9.316 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.8106, allocations: 153.5 kB / 455.7 MB, free: 9.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002522/0.8131, allocations: 1.031 MB / 456.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003235/0.8135, allocations: 77.67 kB / 456.8 MB, free: 8.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.8145, allocations: 0.7486 MB / 457.5 MB, free: 7.254 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006143/0.8152, allocations: 369.9 kB / 457.9 MB, free: 6.902 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.8153, allocations: 24 kB / 457.9 MB, free: 6.879 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.8155, allocations: 357.9 kB / 458.2 MB, free: 6.523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.8173, allocations: 0.6403 MB / 458.9 MB, free: 5.883 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001922/0.8192, allocations: 0.9019 MB / 459.8 MB, free: 4.891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.821, allocations: 0.6921 MB / 460.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.821, allocations: 0 / 460.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.005066/0.8261, allocations: 1.919 MB / 462.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001277/0.8274, allocations: 2.447 MB / 464.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/0.8275, allocations: 7.938 kB / 464.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002072/0.8296, allocations: 0.494 MB / 465.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.831, allocations: 175.7 kB / 465.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/0.8427, allocations: 5.212 MB / 470.7 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.8447, allocations: 191.1 kB / 470.9 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.8448, allocations: 51.94 kB / 471 MB, free: 9.359 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.8449, allocations: 4 kB / 471 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004453/0.8493, allocations: 1.777 MB / 472.7 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.8494, allocations: 4 kB / 472.7 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.8512, allocations: 497 kB / 473.2 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.8526, allocations: 167.7 kB / 473.4 MB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/0.8637, allocations: 5.22 MB / 478.6 MB, free: 1.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.8656, allocations: 163.2 kB / 478.8 MB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.8658, allocations: 51.94 kB / 478.8 MB, free: 1.355 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * 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 {6 28} Notification: Performance of prepare postOptimizeDAE: time 0.0005306/0.8663, allocations: 249.2 kB / 479.1 MB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/0.8667, allocations: 126.5 kB / 479.2 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005418/0.8672, allocations: 164.5 kB / 479.4 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.8672, allocations: 12 kB / 479.4 MB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.8673, allocations: 0 / 479.4 MB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.8673, allocations: 7.984 kB / 479.4 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008705/0.876, allocations: 3.546 MB / 482.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.876, allocations: 0 / 482.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009105/0.877, allocations: 99.81 kB / 483 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00174/0.8787, allocations: 464.8 kB / 483.5 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.8789, allocations: 23.98 kB / 483.5 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/0.8898, allocations: 5.158 MB / 488.7 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.8899, allocations: 3.984 kB / 488.7 MB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006261/0.8962, allocations: 2.56 MB / 491.2 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.8973, allocations: 371.4 kB / 491.6 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003687/0.8977, allocations: 43.98 kB / 491.6 MB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.8991, allocations: 107.8 kB / 491.7 MB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008231/0.8999, allocations: 228.6 kB / 492 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/0.9001, allocations: 35.98 kB / 492 MB, free: 3.965 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001824/0.9019, allocations: 0.7767 MB / 492.8 MB, free: 3.176 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9019, allocations: 0 / 492.8 MB, free: 3.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003417/0.9053, allocations: 0.8528 MB / 493.6 MB, free: 2.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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 {6 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.006834/0.9122, allocations: 3.212 MB / 496.8 MB, free: 15.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007864/0.9201, allocations: 2.983 MB / 499.8 MB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/0.9202, allocations: 4.125 kB / 499.8 MB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002692/0.9229, allocations: 1.029 MB / 0.4891 GB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.9254, allocations: 308.3 kB / 0.4894 GB, free: 10.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/0.9363, allocations: 3.318 MB / 0.4926 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002344/0.9387, allocations: 1.721 MB / 0.4943 GB, free: 5.621 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003087/0.9418, allocations: 0.5958 MB / 0.4949 GB, free: 5.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/0.9434, allocations: 0.6086 MB / 0.4955 GB, free: 4.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/0.9434, allocations: 4 kB / 0.4955 GB, free: 4.406 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3955/1.339, allocations: 41.99 MB / 0.5365 GB, free: 117.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/1.339, allocations: 230.8 kB / 0.5367 GB, free: 117.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.35/5.689, allocations: 7.906 kB / 0.5367 GB, free: 117.5 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL_res.mat does not exist to compare? outputFormat=mat