Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.115/2.115, allocations: 194.9 MB / 208 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.964e-05, allocations: 4 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 44.51 MB / 300 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4414/0.5542, allocations: 86.78 MB / 386.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.5545, allocations: 92.62 kB / 386.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1306/0.6851, allocations: 35.48 MB / 422.3 MB, free: 1.766 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6852, allocations: 0 / 422.3 MB, free: 1.766 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000242/0.6855, allocations: 50.69 kB / 422.4 MB, free: 1.754 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: 436 * Number of variables: 436 Notification: Performance of Generate backend data structure: time 0.007023/0.6925, allocations: 1.939 MB / 424.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.6926, allocations: 11.62 kB / 424.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009271/0.6935, allocations: 250.8 kB / 424.6 MB, free: 476 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007711/0.6943, allocations: 221.8 kB / 424.8 MB, free: 364 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008055/0.7024, allocations: 2.044 MB / 426.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/0.7026, allocations: 135.6 kB / 427 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006817/0.7033, allocations: 175.1 kB / 427.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007/0.7104, allocations: 2.32 MB / 429.5 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.221e-05/0.7105, allocations: 3.953 kB / 429.5 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003174/0.7108, allocations: 72.38 kB / 429.5 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.7109, allocations: 69.42 kB / 429.6 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005961/0.7169, allocations: 1.885 MB / 431.5 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02069/0.7377, allocations: 6.747 MB / 438.2 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005286/0.743, allocations: 1.671 MB / 439.9 MB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003549/0.7466, allocations: 1.124 MB / 441 MB, free: 7.262 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001513/0.7468, allocations: 17 kB / 441.1 MB, free: 7.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002417/0.7492, allocations: 0.8601 MB / 441.9 MB, free: 6.367 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 4.478e-06/0.7493, allocations: 3.938 kB / 441.9 MB, free: 6.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.004948/0.7543, allocations: 1.636 MB / 443.6 MB, free: 4.715 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.7544, allocations: 149.5 kB / 443.7 MB, free: 4.535 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002494/0.7569, allocations: 1.034 MB / 444.7 MB, free: 3.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002471/0.7572, allocations: 73.69 kB / 444.8 MB, free: 3.402 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.7583, allocations: 0.7397 MB / 445.5 MB, free: 2.66 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005231/0.7588, allocations: 367.9 kB / 445.9 MB, free: 2.312 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.7589, allocations: 28 kB / 445.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002048/0.7591, allocations: 353.9 kB / 446.3 MB, free: 1.934 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.7608, allocations: 0.6312 MB / 446.9 MB, free: 1.305 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.7628, allocations: 0.8835 MB / 447.8 MB, free: 332 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/0.7646, allocations: 0.6841 MB / 448.5 MB, free: 15.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.7646, allocations: 0 / 448.5 MB, free: 15.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005273/0.7699, allocations: 1.917 MB / 450.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001259/0.7712, allocations: 2.451 MB / 452.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.7712, allocations: 4 kB / 452.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/0.7735, allocations: 0.5237 MB / 453.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.7749, allocations: 163.7 kB / 453.5 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01325/0.7882, allocations: 5.488 MB / 459 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/0.7901, allocations: 183 kB / 459.2 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.7903, allocations: 51.98 kB / 459.2 MB, free: 4.531 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.7903, allocations: 4 kB / 459.3 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004627/0.795, allocations: 1.772 MB / 461 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/0.7951, allocations: 4.812 kB / 461 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001989/0.7971, allocations: 0.5238 MB / 461.6 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.7983, allocations: 159.7 kB / 461.7 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/0.8112, allocations: 5.495 MB / 467.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.813, allocations: 167.2 kB / 467.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.8132, allocations: 44 kB / 467.4 MB, free: 12.23 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 (129): * Single equations (assignments): 128 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005752/0.8138, allocations: 233.4 kB / 467.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003841/0.8142, allocations: 130.4 kB / 467.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005684/0.8148, allocations: 168.4 kB / 467.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/0.8148, allocations: 11.95 kB / 467.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.8148, allocations: 4 kB / 467.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.859e-05/0.8148, allocations: 7.969 kB / 468 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.8249, allocations: 3.65 MB / 471.6 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.8249, allocations: 0 / 471.6 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008289/0.8258, allocations: 91.81 kB / 471.7 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001905/0.8277, allocations: 488.2 kB / 472.2 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001861/0.8279, allocations: 23.98 kB / 472.2 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01247/0.8404, allocations: 5.417 MB / 477.6 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.8405, allocations: 0 / 477.6 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006294/0.8468, allocations: 2.509 MB / 480.1 MB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.848, allocations: 367.2 kB / 480.5 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003415/0.8484, allocations: 47.94 kB / 480.5 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.8497, allocations: 107.9 kB / 480.6 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008315/0.8506, allocations: 232.6 kB / 480.9 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/0.8507, allocations: 35.98 kB / 480.9 MB, free: 14.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002016/0.8528, allocations: 0.7803 MB / 481.7 MB, free: 13.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8528, allocations: 0 / 481.7 MB, free: 13.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003609/0.8564, allocations: 0.8411 MB / 482.5 MB, free: 12.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * 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[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.007053/0.8635, allocations: 3.161 MB / 485.7 MB, free: 9.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008975/0.8725, allocations: 3.023 MB / 488.7 MB, free: 6.645 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/0.8726, allocations: 0 / 488.7 MB, free: 6.645 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004087/0.8767, allocations: 1.043 MB / 489.7 MB, free: 5.586 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003305/0.8801, allocations: 319.4 kB / 490.1 MB, free: 5.277 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/0.8978, allocations: 3.256 MB / 493.3 MB, free: 1.965 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003156/0.901, allocations: 1.713 MB / 495 MB, free: 224 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004311/0.9054, allocations: 0.5764 MB / 495.6 MB, free: 15.63 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001972/0.9074, allocations: 0.589 MB / 496.2 MB, free: 15.05 MB / 394.7 MB Notification: Performance of SimCode: time 1.523e-06/0.9074, allocations: 0 / 496.2 MB, free: 15.05 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5257/1.433, allocations: 43.27 MB / 0.5268 GB, free: 122.2 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/1.433, allocations: 229.8 kB / 0.527 GB, free: 121.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.317/5.751, allocations: 3.953 kB / 0.527 GB, free: 121.9 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_R_res.mat does not exist to compare? outputFormat=mat