Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RLV_Characteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.166e-05/3.17e-05, allocations: 4 kB / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09962/0.09968, allocations: 44.51 MB / 300 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5396/0.6393, allocations: 87.89 MB / 387.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.6397, allocations: 89.55 kB / 388 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1399/0.7796, allocations: 36.56 MB / 424.5 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7797, allocations: 7.75 kB / 424.5 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002446/0.78, allocations: 50.12 kB / 424.6 MB, free: 0.8711 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: 450 * Number of variables: 450 Notification: Performance of Generate backend data structure: time 0.007667/0.7877, allocations: 1.991 MB / 426.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.7877, allocations: 7.375 kB / 426.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001122/0.7889, allocations: 261.1 kB / 426.8 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001288/0.7902, allocations: 225.9 kB / 427 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008429/0.7987, allocations: 2.068 MB / 429.1 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/0.7989, allocations: 142.7 kB / 429.2 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007741/0.7997, allocations: 178.4 kB / 429.4 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007344/0.8071, allocations: 2.346 MB / 431.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.6e-05/0.8072, allocations: 3.188 kB / 431.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003034/0.8075, allocations: 75.91 kB / 431.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001139/0.8077, allocations: 78.12 kB / 431.9 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006101/0.8138, allocations: 1.887 MB / 433.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02206/0.8359, allocations: 6.862 MB / 440.7 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004692/0.8407, allocations: 1.605 MB / 442.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002876/0.8436, allocations: 0.9613 MB / 443.2 MB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.8438, allocations: 13 kB / 443.2 MB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002659/0.8465, allocations: 0.886 MB / 444.1 MB, free: 4.691 MB / 330.7 MB Notification: Performance of pre-optimization done (n=126): time 5.49e-06/0.8466, allocations: 0 / 444.1 MB, free: 4.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=126): time 0.005395/0.852, allocations: 1.653 MB / 445.8 MB, free: 3.027 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/0.8522, allocations: 161 kB / 445.9 MB, free: 2.844 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002849/0.855, allocations: 1.023 MB / 447 MB, free: 1.801 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004308/0.8555, allocations: 73.67 kB / 447 MB, free: 1.723 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/0.8566, allocations: 0.7357 MB / 447.8 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007518/0.8574, allocations: 381.3 kB / 448.1 MB, free: 0.625 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.8575, allocations: 24 kB / 448.2 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.8578, allocations: 374.7 kB / 448.5 MB, free: 232 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/0.8597, allocations: 0.6442 MB / 449.2 MB, free: 15.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002312/0.8621, allocations: 0.9136 MB / 450.1 MB, free: 14.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.8642, allocations: 0.6959 MB / 450.8 MB, free: 13.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-05/0.8642, allocations: 0 / 450.8 MB, free: 13.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.005636/0.8699, allocations: 1.86 MB / 452.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001328/0.8713, allocations: 2.443 MB / 455.1 MB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-05/0.8714, allocations: 8 kB / 455.1 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002227/0.8736, allocations: 497.8 kB / 455.6 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/0.8753, allocations: 187.7 kB / 455.8 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01267/0.888, allocations: 5.22 MB / 461 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/0.8903, allocations: 183 kB / 461.2 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000407/0.8908, allocations: 51.98 kB / 461.2 MB, free: 3.102 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.8908, allocations: 4 kB / 461.2 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00529/0.8961, allocations: 1.793 MB / 463 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.5e-05/0.8962, allocations: 4.047 kB / 463 MB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/0.898, allocations: 496.7 kB / 463.5 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.8996, allocations: 183.7 kB / 463.7 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01223/0.9119, allocations: 5.278 MB / 469 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001606/0.9136, allocations: 163.2 kB / 469.1 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002917/0.9139, allocations: 52 kB / 469.2 MB, free: 11.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 (138): * Single equations (assignments): 137 * 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.0005794/0.9145, allocations: 237.3 kB / 469.4 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005129/0.915, allocations: 130.4 kB / 469.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006496/0.9157, allocations: 169.3 kB / 469.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/0.9158, allocations: 16 kB / 469.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.9158, allocations: 7.984 kB / 469.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.9158, allocations: 3.984 kB / 469.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/0.927, allocations: 3.582 MB / 473.3 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.9271, allocations: 0 / 473.3 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.9284, allocations: 119.8 kB / 473.4 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002039/0.9305, allocations: 472.7 kB / 473.9 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003217/0.9308, allocations: 19.98 kB / 473.9 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/0.9433, allocations: 5.157 MB / 479.1 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.9434, allocations: 3.953 kB / 479.1 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007669/0.951, allocations: 2.612 MB / 481.7 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/0.9526, allocations: 383.1 kB / 482.1 MB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005937/0.9532, allocations: 39.98 kB / 482.1 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001898/0.9552, allocations: 124 kB / 482.2 MB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/0.9563, allocations: 228.7 kB / 482.4 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/0.9566, allocations: 39.94 kB / 482.5 MB, free: 13.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00222/0.9588, allocations: 0.7729 MB / 483.2 MB, free: 12.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.372e-06/0.9589, allocations: 0 / 483.2 MB, free: 12.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004718/0.9636, allocations: 0.8644 MB / 484.1 MB, free: 11.83 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_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 83 * 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.008603/0.9722, allocations: 3.283 MB / 487.4 MB, free: 8.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009379/0.9817, allocations: 2.968 MB / 490.4 MB, free: 5.527 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/0.9818, allocations: 1.125 kB / 490.4 MB, free: 5.527 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003379/0.9852, allocations: 1.043 MB / 491.4 MB, free: 4.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/0.9882, allocations: 308.2 kB / 491.7 MB, free: 4.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/1.001, allocations: 3.333 MB / 495 MB, free: 0.7891 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003001/1.004, allocations: 1.695 MB / 496.7 MB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001895/1.006, allocations: 0.6281 MB / 497.4 MB, free: 14.43 MB / 394.7 MB Notification: Performance of SimCode: time 4.108e-06/1.006, allocations: 0 / 497.4 MB, free: 14.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.588/4.594, allocations: 40.38 MB / 0.5251 GB, free: 121.2 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_Characteristic_res.mat does not exist to compare? outputFormat=mat