Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.32e-05, allocations: 7.984 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09846, allocations: 44.51 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4513/0.5498, allocations: 87.33 MB / 387.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.5502, allocations: 90.12 kB / 387.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1302/0.6804, allocations: 36.09 MB / 423.5 MB, free: 1.617 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6805, allocations: 0 / 423.5 MB, free: 1.617 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001924/0.6807, allocations: 50.12 kB / 423.5 MB, free: 1.605 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: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.006692/0.6874, allocations: 1.976 MB / 425.5 MB, free: 396 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.6875, allocations: 7.75 kB / 425.5 MB, free: 396 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008362/0.6883, allocations: 269.7 kB / 425.8 MB, free: 296 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006684/0.689, allocations: 220 kB / 426 MB, free: 184 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007878/0.6969, allocations: 2.063 MB / 428 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.6971, allocations: 141.1 kB / 428.2 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005498/0.6977, allocations: 174.7 kB / 428.3 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006316/0.704, allocations: 2.356 MB / 430.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.175e-05/0.7041, allocations: 3.938 kB / 430.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002658/0.7044, allocations: 81.55 kB / 430.8 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000108/0.7045, allocations: 74.86 kB / 430.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005884/0.7104, allocations: 1.905 MB / 432.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01939/0.7299, allocations: 6.838 MB / 439.6 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004847/0.7348, allocations: 1.695 MB / 441.3 MB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002449/0.7373, allocations: 0.9574 MB / 442.2 MB, free: 6.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/0.7374, allocations: 9 kB / 442.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002068/0.7395, allocations: 0.8784 MB / 443.1 MB, free: 5.672 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 6.152e-06/0.7395, allocations: 3.984 kB / 443.1 MB, free: 5.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.004641/0.7442, allocations: 1.649 MB / 444.8 MB, free: 4.008 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.7443, allocations: 156.6 kB / 444.9 MB, free: 3.824 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002491/0.7468, allocations: 1.039 MB / 446 MB, free: 2.766 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00034/0.7472, allocations: 77.67 kB / 446.1 MB, free: 2.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008946/0.7481, allocations: 0.7463 MB / 446.8 MB, free: 1.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005321/0.7487, allocations: 365.7 kB / 447.2 MB, free: 1.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.7488, allocations: 32 kB / 447.2 MB, free: 1.559 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.749, allocations: 366.8 kB / 447.5 MB, free: 1.191 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/0.7506, allocations: 0.6442 MB / 448.2 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/0.7526, allocations: 0.9156 MB / 449.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.7543, allocations: 0.6919 MB / 449.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.7543, allocations: 4 kB / 449.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004592/0.7589, allocations: 1.86 MB / 451.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00101/0.76, allocations: 2.454 MB / 454.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/0.76, allocations: 8 kB / 454.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/0.7621, allocations: 493 kB / 454.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.7636, allocations: 179.7 kB / 454.8 MB, free: 9.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.775, allocations: 5.183 MB / 460 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001927/0.777, allocations: 203 kB / 460.2 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/0.7772, allocations: 52 kB / 460.2 MB, free: 4.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.7772, allocations: 4 kB / 460.2 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004923/0.7822, allocations: 1.796 MB / 462 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.16e-05/0.7823, allocations: 8.062 kB / 462 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.784, allocations: 492.7 kB / 462.5 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.7853, allocations: 163.7 kB / 462.7 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/0.7964, allocations: 5.261 MB / 467.9 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.7978, allocations: 163.2 kB / 468.1 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.798, allocations: 48 kB / 468.1 MB, free: 12.03 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 (137): * Single equations (assignments): 136 * 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.000551/0.7986, allocations: 233.4 kB / 468.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004906/0.7991, allocations: 138.4 kB / 468.5 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000601/0.7997, allocations: 164.6 kB / 468.7 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.7997, allocations: 16 kB / 468.7 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.7997, allocations: 3.953 kB / 468.7 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.7998, allocations: 7.969 kB / 468.7 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009207/0.809, allocations: 3.578 MB / 472.3 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.8091, allocations: 0 / 472.3 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009079/0.81, allocations: 95.83 kB / 472.4 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001797/0.8118, allocations: 465.1 kB / 472.8 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/0.8119, allocations: 27.98 kB / 472.8 MB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/0.8234, allocations: 5.133 MB / 478 MB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.8234, allocations: 0 / 478 MB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006474/0.8299, allocations: 2.583 MB / 480.6 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/0.8312, allocations: 371.2 kB / 480.9 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003354/0.8315, allocations: 43.98 kB / 481 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.8328, allocations: 111.9 kB / 481.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008027/0.8337, allocations: 224.6 kB / 481.3 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.8338, allocations: 31.98 kB / 481.3 MB, free: 14.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001892/0.8357, allocations: 0.7847 MB / 482.1 MB, free: 13.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8357, allocations: 0 / 482.1 MB, free: 13.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003193/0.8389, allocations: 0.8566 MB / 483 MB, free: 12.97 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_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 80 * 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.006774/0.8457, allocations: 3.232 MB / 486.2 MB, free: 9.707 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007902/0.8537, allocations: 3.001 MB / 489.2 MB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/0.8538, allocations: 4.625 kB / 489.2 MB, free: 6.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002725/0.8565, allocations: 1.045 MB / 490.2 MB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.859, allocations: 319.8 kB / 490.6 MB, free: 5.312 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.8692, allocations: 3.291 MB / 493.8 MB, free: 1.969 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/0.8713, allocations: 1.691 MB / 495.5 MB, free: 248 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001647/0.873, allocations: 0.628 MB / 496.2 MB, free: 15.64 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/0.873, allocations: 3.938 kB / 496.2 MB, free: 15.64 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.75/4.623, allocations: 40.18 MB / 0.5238 GB, free: 121.4 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_RLV_res.mat does not exist to compare? outputFormat=mat