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 2.116/2.116, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.552e-05/3.564e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3332, allocations: 44.5 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1853/0.5186, allocations: 86.68 MB / 380.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/0.519, allocations: 87.94 kB / 381 MB, free: 11.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1509/0.6698, allocations: 35.71 MB / 416.7 MB, free: 7.113 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.6699, allocations: 0 / 416.7 MB, free: 7.113 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002801/0.6702, allocations: 51.94 kB / 416.8 MB, free: 7.062 MB / 362.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.009161/0.6794, allocations: 1.976 MB / 418.7 MB, free: 5.023 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.671e-05/0.6795, allocations: 8.031 kB / 418.7 MB, free: 5.016 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001174/0.6807, allocations: 225.3 kB / 419 MB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0106/0.6913, allocations: 2.058 MB / 421 MB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.6915, allocations: 56 kB / 421.1 MB, free: 2.637 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005988/0.6921, allocations: 112 kB / 421.2 MB, free: 2.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007299/0.6995, allocations: 1.818 MB / 423 MB, free: 0.707 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2661/0.9656, allocations: 2.104 MB / 425.1 MB, free: 93.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.917e-05/0.9658, allocations: 4.141 kB / 425.1 MB, free: 93.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002268/0.966, allocations: 4.344 kB / 425.1 MB, free: 93.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/0.9661, allocations: 79.22 kB / 425.2 MB, free: 93.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01635/0.9825, allocations: 6.493 MB / 431.7 MB, free: 92.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004084/0.9866, allocations: 1.63 MB / 433.3 MB, free: 92.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.9887, allocations: 0.9011 MB / 434.2 MB, free: 92.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/0.9889, allocations: 17.67 kB / 434.2 MB, free: 92.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001733/0.9906, allocations: 0.8426 MB / 435.1 MB, free: 92.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=123): time 4.268e-06/0.9906, allocations: 0 / 435.1 MB, free: 92.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=123): time 0.003685/0.9943, allocations: 1.568 MB / 436.6 MB, free: 91.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.9944, allocations: 154.8 kB / 436.8 MB, free: 91.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001677/0.9961, allocations: 0.9034 MB / 437.7 MB, free: 91.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002084/0.9963, allocations: 58.39 kB / 437.7 MB, free: 91.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006541/0.997, allocations: 0.7533 MB / 438.5 MB, free: 90.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004207/0.9974, allocations: 346.9 kB / 438.8 MB, free: 90.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.664e-05/0.9976, allocations: 0 / 438.8 MB, free: 90.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.9977, allocations: 369.1 kB / 439.2 MB, free: 90.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.9989, allocations: 0.6242 MB / 439.8 MB, free: 89.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/1, allocations: 0.8678 MB / 440.7 MB, free: 89.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/1.002, allocations: 0.6736 MB / 441.4 MB, free: 89.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/1.002, allocations: 0 / 441.4 MB, free: 89.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003503/1.005, allocations: 1.731 MB / 443.1 MB, free: 88.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005444/1.006, allocations: 2.441 MB / 445.5 MB, free: 85.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/1.006, allocations: 14.61 kB / 445.6 MB, free: 85.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/1.007, allocations: 489.3 kB / 446 MB, free: 85.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/1.009, allocations: 177.2 kB / 446.2 MB, free: 85.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009175/1.018, allocations: 5.11 MB / 451.3 MB, free: 82.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/1.02, allocations: 160.9 kB / 451.5 MB, free: 82.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/1.02, allocations: 42.12 kB / 451.5 MB, free: 82.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/1.02, allocations: 6.562 kB / 451.5 MB, free: 82.81 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003639/1.024, allocations: 1.645 MB / 453.2 MB, free: 82.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.159e-05/1.024, allocations: 7.75 kB / 453.2 MB, free: 82.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/1.025, allocations: 487.7 kB / 453.6 MB, free: 82.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/1.027, allocations: 168.2 kB / 453.8 MB, free: 82.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009213/1.036, allocations: 5.143 MB / 459 MB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/1.037, allocations: 137.8 kB / 459.1 MB, free: 79.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/1.037, allocations: 43.78 kB / 459.1 MB, free: 79.07 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.0005088/1.038, allocations: 203 kB / 459.3 MB, free: 78.91 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003758/1.042, allocations: 1.571 MB / 460.9 MB, free: 78.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004428/1.042, allocations: 120.6 kB / 461 MB, free: 78.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000478/1.043, allocations: 155.3 kB / 461.2 MB, free: 78.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/1.043, allocations: 14.5 kB / 461.2 MB, free: 78.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/1.043, allocations: 0 / 461.2 MB, free: 78.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/1.043, allocations: 3.844 kB / 461.2 MB, free: 78.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007341/1.05, allocations: 3.228 MB / 464.4 MB, free: 76.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/1.05, allocations: 0 / 464.4 MB, free: 76.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008965/1.051, allocations: 99.52 kB / 464.5 MB, free: 76.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/1.053, allocations: 464.5 kB / 465 MB, free: 76.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000169/1.053, allocations: 13.64 kB / 465 MB, free: 76.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009102/1.062, allocations: 5.009 MB / 470 MB, free: 73.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/1.062, allocations: 0 / 470 MB, free: 73.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004946/1.067, allocations: 2.479 MB / 472.5 MB, free: 71.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.068, allocations: 357.3 kB / 472.8 MB, free: 71.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003718/1.068, allocations: 26.84 kB / 472.8 MB, free: 71.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/1.07, allocations: 96.31 kB / 472.9 MB, free: 71.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007687/1.07, allocations: 228.2 kB / 473.2 MB, free: 70.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/1.071, allocations: 31.7 kB / 473.2 MB, free: 70.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001257/1.072, allocations: 0.6607 MB / 473.9 MB, free: 70.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.072, allocations: 0 / 473.9 MB, free: 70.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003168/1.075, allocations: 0.7801 MB / 474.6 MB, free: 69.52 MB / 362.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.005187/1.08, allocations: 3.107 MB / 477.7 MB, free: 66.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006247/1.087, allocations: 2.861 MB / 480.6 MB, free: 64.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.087, allocations: 3.625 kB / 480.6 MB, free: 64.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00217/1.089, allocations: 1.007 MB / 481.6 MB, free: 63.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002337/1.091, allocations: 279.4 kB / 481.9 MB, free: 63.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009315/1.101, allocations: 3.16 MB / 485 MB, free: 60.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001688/1.102, allocations: 1.701 MB / 486.7 MB, free: 58.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/1.104, allocations: 0.617 MB / 487.4 MB, free: 58.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.413e-06/1.104, allocations: 0 / 487.4 MB, free: 58.31 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.304/4.407, allocations: 39.36 MB / 0.5144 GB, free: 19.32 MB / 362.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