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 1.972/1.972, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.288e-05/3.309e-05, allocations: 8 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.09399, allocations: 44.52 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4708/0.5648, allocations: 87.88 MB / 387.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004004/0.5653, allocations: 91.94 kB / 387.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.151/0.7163, allocations: 36.56 MB / 424.5 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.7164, allocations: 4 kB / 424.5 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001881/0.7166, allocations: 48.69 kB / 424.5 MB, free: 0.8516 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.006716/0.7233, allocations: 1.987 MB / 426.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.7234, allocations: 11.38 kB / 426.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008943/0.7243, allocations: 262.9 kB / 426.8 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007169/0.725, allocations: 225.1 kB / 427 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007875/0.7329, allocations: 2.075 MB / 429.1 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.7331, allocations: 143.7 kB / 429.2 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004896/0.7336, allocations: 173.9 kB / 429.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006135/0.7397, allocations: 2.364 MB / 431.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-05/0.7399, allocations: 3.188 kB / 431.8 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002653/0.7401, allocations: 75.89 kB / 431.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/0.7403, allocations: 78.5 kB / 431.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005361/0.7456, allocations: 1.906 MB / 433.8 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01949/0.7652, allocations: 6.864 MB / 440.7 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006966/0.7722, allocations: 1.624 MB / 442.3 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002809/0.7751, allocations: 0.9688 MB / 443.3 MB, free: 5.621 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.7752, allocations: 9 kB / 443.3 MB, free: 5.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00231/0.7776, allocations: 0.8957 MB / 444.2 MB, free: 4.691 MB / 330.7 MB Notification: Performance of pre-optimization done (n=126): time 5.279e-06/0.7776, allocations: 0 / 444.2 MB, free: 4.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=126): time 0.004881/0.7825, allocations: 1.648 MB / 445.8 MB, free: 3.035 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.7827, allocations: 153.5 kB / 446 MB, free: 2.855 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/0.7853, allocations: 1.023 MB / 447 MB, free: 1.812 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004174/0.7857, allocations: 81.55 kB / 447.1 MB, free: 1.727 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001004/0.7868, allocations: 0.7388 MB / 447.8 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006921/0.7875, allocations: 378.2 kB / 448.2 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.7876, allocations: 24 kB / 448.2 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.7878, allocations: 374.7 kB / 448.6 MB, free: 236 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001771/0.7896, allocations: 0.6481 MB / 449.2 MB, free: 15.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/0.7917, allocations: 0.9253 MB / 450.1 MB, free: 14.56 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001843/0.7936, allocations: 0.6919 MB / 450.8 MB, free: 13.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.7936, allocations: 0 / 450.8 MB, free: 13.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004983/0.7986, allocations: 1.864 MB / 452.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001185/0.7999, allocations: 2.449 MB / 455.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/0.7999, allocations: 7.984 kB / 455.2 MB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002067/0.802, allocations: 0.49 MB / 455.7 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/0.8036, allocations: 183.7 kB / 455.8 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/0.8155, allocations: 5.232 MB / 461.1 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00193/0.8174, allocations: 187 kB / 461.2 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/0.8176, allocations: 44 kB / 461.3 MB, free: 3.082 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.8177, allocations: 6.031 kB / 461.3 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004719/0.8224, allocations: 1.808 MB / 463.1 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.752e-05/0.8225, allocations: 8.125 kB / 463.1 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001773/0.8243, allocations: 488.6 kB / 463.6 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.8258, allocations: 183.7 kB / 463.8 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/0.8373, allocations: 5.27 MB / 469 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.8388, allocations: 171.2 kB / 469.2 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.839, allocations: 44 kB / 469.2 MB, free: 10.98 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.0005653/0.8396, allocations: 233.3 kB / 469.5 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000479/0.8401, allocations: 138.3 kB / 469.6 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000567/0.8407, allocations: 173.3 kB / 469.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.8407, allocations: 12 kB / 469.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.8407, allocations: 0 / 469.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.858e-05/0.8407, allocations: 7.969 kB / 469.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009593/0.8503, allocations: 3.584 MB / 473.4 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.8504, allocations: 8 kB / 473.4 MB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.8516, allocations: 119.8 kB / 473.5 MB, free: 6.676 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/0.8535, allocations: 460.8 kB / 474 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002051/0.8537, allocations: 31.92 kB / 474 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/0.8651, allocations: 5.147 MB / 479.1 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.8651, allocations: 3.953 kB / 479.1 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006715/0.8719, allocations: 2.628 MB / 481.8 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.8732, allocations: 371.2 kB / 482.1 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003753/0.8736, allocations: 47.97 kB / 482.2 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.8751, allocations: 115.9 kB / 482.3 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008405/0.876, allocations: 236.5 kB / 482.5 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.8761, allocations: 35.98 kB / 482.6 MB, free: 13.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00182/0.878, allocations: 0.7768 MB / 483.3 MB, free: 12.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.878, allocations: 0 / 483.3 MB, free: 12.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003468/0.8815, allocations: 0.8644 MB / 484.2 MB, free: 11.8 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.007482/0.889, allocations: 3.291 MB / 487.5 MB, free: 8.477 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0082/0.8972, allocations: 3.027 MB / 490.5 MB, free: 5.426 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/0.8973, allocations: 0.5625 kB / 490.5 MB, free: 5.426 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002831/0.9002, allocations: 1.06 MB / 491.6 MB, free: 4.355 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.9026, allocations: 312.4 kB / 491.9 MB, free: 4.047 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.9133, allocations: 3.338 MB / 495.2 MB, free: 0.6523 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/0.9157, allocations: 1.695 MB / 496.9 MB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/0.9174, allocations: 0.6282 MB / 497.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of SimCode: time 4.278e-06/0.9174, allocations: 0 / 497.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.835/4.753, allocations: 40.55 MB / 0.5255 GB, free: 121.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_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat