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.088/2.088, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.353e-05/3.353e-05, allocations: 4 kB / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 44.5 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4512/0.5553, allocations: 87.34 MB / 387.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003585/0.5557, allocations: 86.83 kB / 387.4 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1465/0.7022, allocations: 36.09 MB / 423.5 MB, free: 1.148 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.7023, allocations: 4 kB / 423.5 MB, free: 1.145 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002767/0.7026, allocations: 56.69 kB / 423.6 MB, free: 1.133 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.008923/0.7115, allocations: 1.966 MB / 425.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/0.7116, allocations: 9.562 kB / 425.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001201/0.7129, allocations: 262.7 kB / 425.8 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.7139, allocations: 220.8 kB / 426 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008498/0.7224, allocations: 2.069 MB / 428.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.7226, allocations: 142 kB / 428.2 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004494/0.7231, allocations: 173.9 kB / 428.4 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005894/0.729, allocations: 2.335 MB / 430.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.129e-05/0.7291, allocations: 4 kB / 430.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002889/0.7294, allocations: 78.33 kB / 430.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.7295, allocations: 72.89 kB / 430.9 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005313/0.7349, allocations: 1.888 MB / 432.8 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02078/0.7557, allocations: 6.835 MB / 439.6 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004873/0.7606, allocations: 1.68 MB / 441.3 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.7631, allocations: 0.9506 MB / 442.2 MB, free: 6.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.7633, allocations: 16.59 kB / 442.2 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002141/0.7654, allocations: 0.8647 MB / 443.1 MB, free: 5.625 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 7.113e-06/0.7654, allocations: 7.938 kB / 443.1 MB, free: 5.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.004709/0.7702, allocations: 1.653 MB / 444.8 MB, free: 3.953 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.7703, allocations: 157.4 kB / 444.9 MB, free: 3.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002508/0.7728, allocations: 1.043 MB / 446 MB, free: 2.707 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002996/0.7732, allocations: 69.69 kB / 446 MB, free: 2.633 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.7742, allocations: 0.7463 MB / 446.8 MB, free: 1.887 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006063/0.7748, allocations: 372.9 kB / 447.1 MB, free: 1.535 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.7749, allocations: 24 kB / 447.2 MB, free: 1.512 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.7752, allocations: 362.8 kB / 447.5 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001785/0.777, allocations: 0.6481 MB / 448.2 MB, free: 0.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001994/0.779, allocations: 0.9059 MB / 449.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.7807, allocations: 0.6919 MB / 449.8 MB, free: 14.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.7808, allocations: 0 / 449.8 MB, free: 14.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00463/0.7854, allocations: 1.853 MB / 451.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001173/0.7866, allocations: 2.44 MB / 454 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.7866, allocations: 4 kB / 454.1 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/0.7887, allocations: 0.4973 MB / 454.5 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.7904, allocations: 171.7 kB / 454.7 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/0.806, allocations: 5.2 MB / 459.9 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/0.8087, allocations: 195 kB / 460.1 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002136/0.8089, allocations: 48 kB / 460.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.809, allocations: 7.938 kB / 460.2 MB, free: 4.059 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007344/0.8163, allocations: 1.78 MB / 461.9 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.8164, allocations: 4 kB / 461.9 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002327/0.8187, allocations: 493.2 kB / 462.4 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.8204, allocations: 171.7 kB / 462.6 MB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/0.8349, allocations: 5.263 MB / 467.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.8367, allocations: 163.2 kB / 468 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001741/0.8369, allocations: 48 kB / 468.1 MB, free: 12.01 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.006444/0.8433, allocations: 241.3 kB / 468.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005618/0.8439, allocations: 122.5 kB / 468.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006884/0.8446, allocations: 164.6 kB / 468.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/0.8446, allocations: 12 kB / 468.6 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.8447, allocations: 3.953 kB / 468.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.499e-05/0.8447, allocations: 11.97 kB / 468.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02332/0.868, allocations: 3.568 MB / 472.2 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.477e-06/0.8681, allocations: 0 / 472.2 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.8693, allocations: 103.8 kB / 472.3 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002278/0.8716, allocations: 464.7 kB / 472.7 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/0.8718, allocations: 27.98 kB / 472.8 MB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02869/0.9005, allocations: 5.143 MB / 477.9 MB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.9005, allocations: 4 kB / 477.9 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007046/0.9076, allocations: 2.58 MB / 480.5 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009804/0.9086, allocations: 367.3 kB / 480.8 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/0.9089, allocations: 47.92 kB / 480.9 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.9102, allocations: 103.9 kB / 481 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007566/0.911, allocations: 228.6 kB / 481.2 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.9111, allocations: 31.98 kB / 481.2 MB, free: 14.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001753/0.9129, allocations: 0.7847 MB / 482 MB, free: 13.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9129, allocations: 0 / 482 MB, free: 13.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003069/0.916, allocations: 0.8527 MB / 482.9 MB, free: 12.96 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.006536/0.9226, allocations: 3.229 MB / 486.1 MB, free: 9.703 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007376/0.93, allocations: 2.947 MB / 489.1 MB, free: 6.738 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.93, allocations: 0.5625 kB / 489.1 MB, free: 6.738 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.9325, allocations: 1.03 MB / 490.1 MB, free: 5.695 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/0.9348, allocations: 308.3 kB / 490.4 MB, free: 5.391 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009168/0.944, allocations: 3.277 MB / 493.7 MB, free: 2.059 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002112/0.9462, allocations: 1.699 MB / 495.4 MB, free: 336 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001543/0.9478, allocations: 0.6255 MB / 496 MB, free: 15.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/0.9478, allocations: 0 / 496 MB, free: 15.73 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.562/4.51, allocations: 40.02 MB / 0.5234 GB, free: 122.1 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