Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 194.9 MB / 208.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.032e-05/4.033e-05, allocations: 4 kB / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 44.51 MB / 300 MB, free: 6.488 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4288/0.5315, allocations: 85.07 MB / 385 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.5318, allocations: 86.81 kB / 385.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1091/0.641, allocations: 28.17 MB / 413.3 MB, free: 4.934 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.641, allocations: 0 / 413.3 MB, free: 4.934 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001413/0.6412, allocations: 38.75 kB / 413.3 MB, free: 4.926 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: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 0.005151/0.6464, allocations: 1.515 MB / 414.9 MB, free: 3.934 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.6464, allocations: 7.75 kB / 414.9 MB, free: 3.934 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006159/0.6471, allocations: 198.6 kB / 415.1 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004707/0.6476, allocations: 159.8 kB / 415.2 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006039/0.6536, allocations: 1.632 MB / 416.8 MB, free: 3.105 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.6538, allocations: 107.2 kB / 416.9 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003981/0.6542, allocations: 126 kB / 417.1 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004053/0.6583, allocations: 1.659 MB / 418.7 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.518e-05/0.6584, allocations: 0 / 418.7 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001913/0.6586, allocations: 48.5 kB / 418.8 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.46e-05/0.6587, allocations: 60.06 kB / 418.8 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003831/0.6625, allocations: 1.313 MB / 420.1 MB, free: 2.484 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.675, allocations: 4.948 MB / 425.1 MB, free: 264 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00282/0.6779, allocations: 1.036 MB / 426.1 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.6794, allocations: 0.5611 MB / 426.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.541e-05/0.6795, allocations: 8.406 kB / 426.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001309/0.6808, allocations: 0.5832 MB / 427.3 MB, free: 15.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 4.057e-06/0.6809, allocations: 0 / 427.3 MB, free: 15.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.002622/0.6835, allocations: 0.9881 MB / 428.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.6837, allocations: 152.2 kB / 428.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.6853, allocations: 0.7693 MB / 429.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002422/0.6856, allocations: 59.06 kB / 429.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000654/0.6863, allocations: 0.5881 MB / 429.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004221/0.6867, allocations: 234.1 kB / 430.1 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.984e-05/0.6868, allocations: 17.31 kB / 430.1 MB, free: 14.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.687, allocations: 350.6 kB / 430.4 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009529/0.688, allocations: 406.7 kB / 430.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.6891, allocations: 0.6252 MB / 431.4 MB, free: 13.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009687/0.6901, allocations: 439.1 kB / 431.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.6902, allocations: 0 / 431.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002656/0.6928, allocations: 1.134 MB / 433 MB, free: 13.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001184/0.6941, allocations: 2.532 MB / 435.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/0.6941, allocations: 7.906 kB / 435.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009172/0.695, allocations: 215.7 kB / 435.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.6962, allocations: 155.3 kB / 435.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004825/0.7011, allocations: 2.767 MB / 438.7 MB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.7026, allocations: 152 kB / 438.8 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.7028, allocations: 41.2 kB / 438.9 MB, free: 8.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.7028, allocations: 7.75 kB / 438.9 MB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002704/0.7055, allocations: 1.085 MB / 440 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/0.7056, allocations: 4 kB / 440 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007418/0.7063, allocations: 212.7 kB / 440.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.7074, allocations: 143.8 kB / 440.3 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00501/0.7125, allocations: 2.802 MB / 443.1 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.7137, allocations: 131.5 kB / 443.2 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.7138, allocations: 39.98 kB / 443.3 MB, free: 3.953 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 48 ($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,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,$PRE.rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[1].off,$PRE.rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[2].off,$PRE.rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[3].off,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.positiveThreshold[3].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.negativeThreshold[3].y,$PRE.pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[1].entryTime,$PRE.pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,$PRE.pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,$PRE.pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,$PRE.pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,$PRE.pulsem.twomPulse.timerNegative[3].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 105 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004295/0.7143, allocations: 200.9 kB / 443.5 MB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003386/0.7146, allocations: 102.8 kB / 443.6 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.715, allocations: 113 kB / 443.7 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.715, allocations: 8 kB / 443.7 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.7151, allocations: 0 / 443.7 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.7151, allocations: 3.984 kB / 443.7 MB, free: 3.523 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006999/0.7221, allocations: 2.531 MB / 446.2 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.7222, allocations: 4 kB / 446.2 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007534/0.7229, allocations: 79.83 kB / 446.3 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007566/0.7237, allocations: 196.7 kB / 446.5 MB, free: 0.668 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.7238, allocations: 19.94 kB / 446.5 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00509/0.7289, allocations: 2.733 MB / 449.3 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.729, allocations: 0 / 449.3 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00411/0.7331, allocations: 1.637 MB / 450.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000834/0.734, allocations: 256 kB / 451.1 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003304/0.7344, allocations: 23.98 kB / 451.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.7356, allocations: 91.86 kB / 451.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006226/0.7362, allocations: 144.5 kB / 451.4 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.907e-05/0.7364, allocations: 20 kB / 451.4 MB, free: 11.56 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001458/0.7378, allocations: 0.585 MB / 452 MB, free: 10.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.7379, allocations: 0 / 452 MB, free: 10.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002692/0.7406, allocations: 0.5798 MB / 452.6 MB, free: 10.4 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 36 (pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.negativeThreshold[3].y,pulsem.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 6 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 59 * 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 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.004763/0.7454, allocations: 2.384 MB / 455 MB, free: 7.973 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004883/0.7503, allocations: 1.813 MB / 456.8 MB, free: 6.137 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/0.7504, allocations: 448 / 456.8 MB, free: 6.137 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.7523, allocations: 0.674 MB / 457.5 MB, free: 5.461 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/0.754, allocations: 191.5 kB / 457.6 MB, free: 5.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007123/0.7611, allocations: 2.292 MB / 459.9 MB, free: 2.926 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001532/0.7627, allocations: 1.382 MB / 461.3 MB, free: 1.516 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/0.7639, allocations: 447.3 kB / 461.8 MB, free: 1.078 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.764, allocations: 0 / 461.8 MB, free: 1.078 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.353/4.117, allocations: 27.74 MB / 489.5 MB, free: 5.34 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RL_res.mat does not exist to compare? outputFormat=mat