Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.744e-05/3.77e-05, allocations: 0 / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09804, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5351, allocations: 86.79 MB / 386.7 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003511/0.5356, allocations: 89.09 kB / 386.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1303/0.6659, allocations: 35.48 MB / 422.3 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.6659, allocations: 0 / 422.3 MB, free: 1.555 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001911/0.6661, allocations: 50.44 kB / 422.4 MB, free: 1.543 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.00652/0.6727, allocations: 1.935 MB / 424.3 MB, free: 356 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.6727, allocations: 15.31 kB / 424.3 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007545/0.6735, allocations: 253.4 kB / 424.6 MB, free: 260 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00064/0.6742, allocations: 218.2 kB / 424.8 MB, free: 148 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008002/0.6822, allocations: 2.047 MB / 426.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.6824, allocations: 135.3 kB / 426.9 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005965/0.683, allocations: 174.2 kB / 427.1 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006342/0.6894, allocations: 2.315 MB / 429.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.491e-05/0.6895, allocations: 3.953 kB / 429.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000268/0.6898, allocations: 76.48 kB / 429.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/0.6899, allocations: 72.92 kB / 429.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005431/0.6953, allocations: 1.878 MB / 431.5 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01947/0.7149, allocations: 6.745 MB / 438.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005307/0.7202, allocations: 1.675 MB / 439.9 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003322/0.7236, allocations: 1.124 MB / 441 MB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001442/0.7238, allocations: 20.66 kB / 441 MB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002253/0.7261, allocations: 0.8566 MB / 441.9 MB, free: 6.676 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 1.263e-05/0.7261, allocations: 0 / 441.9 MB, free: 6.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.004774/0.7309, allocations: 1.632 MB / 443.5 MB, free: 5.031 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.7311, allocations: 153.5 kB / 443.7 MB, free: 4.848 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002614/0.7337, allocations: 1.034 MB / 444.7 MB, free: 3.793 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003874/0.7341, allocations: 73.67 kB / 444.8 MB, free: 3.715 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009821/0.7351, allocations: 0.7312 MB / 445.5 MB, free: 2.984 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000666/0.7358, allocations: 350.1 kB / 445.8 MB, free: 2.652 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.736, allocations: 24 kB / 445.9 MB, free: 2.629 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000237/0.7362, allocations: 370.8 kB / 446.2 MB, free: 2.258 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/0.738, allocations: 0.6349 MB / 446.9 MB, free: 1.625 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/0.74, allocations: 0.8913 MB / 447.8 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.7418, allocations: 0.6731 MB / 448.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/0.7418, allocations: 4 kB / 448.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.00502/0.7469, allocations: 1.852 MB / 450.3 MB, free: 14.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001212/0.7481, allocations: 2.453 MB / 452.7 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.098e-05/0.7482, allocations: 8 kB / 452.7 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002797/0.751, allocations: 0.5119 MB / 453.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/0.7526, allocations: 163.7 kB / 453.4 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/0.7655, allocations: 5.485 MB / 458.9 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.7675, allocations: 191 kB / 459.1 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002338/0.7678, allocations: 48 kB / 459.1 MB, free: 4.926 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.7678, allocations: 4 kB / 459.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004691/0.7725, allocations: 1.776 MB / 460.9 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.953e-05/0.7726, allocations: 8 kB / 460.9 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/0.7745, allocations: 0.5168 MB / 461.4 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.7758, allocations: 155.7 kB / 461.6 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01268/0.7885, allocations: 5.561 MB / 467.1 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.7899, allocations: 159.2 kB / 467.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.79, allocations: 48 kB / 467.4 MB, free: 12.57 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.0005465/0.7906, allocations: 237.4 kB / 467.6 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004445/0.791, allocations: 126.5 kB / 467.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006098/0.7916, allocations: 160.5 kB / 467.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/0.7917, allocations: 15.95 kB / 467.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.7917, allocations: 0 / 467.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.322e-05/0.7917, allocations: 19.89 kB / 467.9 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.8019, allocations: 3.655 MB / 471.6 MB, free: 8.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.802, allocations: 4 kB / 471.6 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008248/0.8029, allocations: 87.83 kB / 471.6 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001945/0.8048, allocations: 488.3 kB / 472.1 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000164/0.805, allocations: 23.98 kB / 472.1 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/0.8173, allocations: 5.413 MB / 477.6 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.8173, allocations: 0 / 477.6 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006242/0.8236, allocations: 2.513 MB / 480.1 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.8248, allocations: 359.3 kB / 480.4 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003375/0.8251, allocations: 47.94 kB / 480.5 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.8264, allocations: 107.9 kB / 480.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008337/0.8273, allocations: 224.6 kB / 480.8 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.8274, allocations: 35.92 kB / 480.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001835/0.8293, allocations: 0.7843 MB / 481.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8293, allocations: 0 / 481.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00328/0.8326, allocations: 0.8372 MB / 482.4 MB, free: 13.23 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.006839/0.8395, allocations: 3.173 MB / 485.6 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007832/0.8474, allocations: 2.977 MB / 488.6 MB, free: 7.039 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-05/0.8474, allocations: 4.688 kB / 488.6 MB, free: 7.031 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/0.8501, allocations: 1.031 MB / 489.6 MB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/0.8526, allocations: 311.7 kB / 489.9 MB, free: 5.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00991/0.8625, allocations: 3.204 MB / 493.1 MB, free: 2.418 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002086/0.8647, allocations: 1.676 MB / 494.8 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/0.8662, allocations: 0.5989 MB / 495.4 MB, free: 116 kB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.8662, allocations: 7.938 kB / 495.4 MB, free: 108 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.723/4.59, allocations: 39.53 MB / 0.5224 GB, free: 124.3 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat