Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.2e-05/3.205e-05, allocations: 4 kB / 255.5 MB, free: 2.598 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09315, allocations: 44.5 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4682/0.5614, allocations: 85.31 MB / 385.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000392/0.5618, allocations: 86.75 kB / 385.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1155/0.6774, allocations: 28.45 MB / 413.9 MB, free: 4.648 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6775, allocations: 0 / 413.9 MB, free: 4.648 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001607/0.6776, allocations: 35.22 kB / 413.9 MB, free: 4.641 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: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.005306/0.683, allocations: 1.542 MB / 415.4 MB, free: 3.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.683, allocations: 7.781 kB / 415.4 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007181/0.6838, allocations: 196.5 kB / 415.6 MB, free: 3.562 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005212/0.6843, allocations: 167.4 kB / 415.8 MB, free: 3.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006162/0.6905, allocations: 1.638 MB / 417.4 MB, free: 2.805 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.6907, allocations: 104.2 kB / 417.5 MB, free: 2.797 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005301/0.6913, allocations: 129.7 kB / 417.7 MB, free: 2.793 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004796/0.6961, allocations: 1.666 MB / 419.3 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-05/0.6962, allocations: 3.906 kB / 419.3 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002059/0.6964, allocations: 55.81 kB / 419.4 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.885e-05/0.6965, allocations: 64.45 kB / 419.4 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004016/0.7005, allocations: 1.313 MB / 420.8 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01406/0.7147, allocations: 4.99 MB / 425.7 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00314/0.7179, allocations: 1.045 MB / 426.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.7194, allocations: 0.5697 MB / 427.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-05/0.7196, allocations: 12.47 kB / 427.4 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001575/0.7212, allocations: 0.5887 MB / 428 MB, free: 15.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=82): time 4.499e-06/0.7212, allocations: 0 / 428 MB, free: 15.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=82): time 0.002967/0.7242, allocations: 0.9948 MB / 429 MB, free: 15.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.7244, allocations: 144.7 kB / 429.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.7263, allocations: 0.7883 MB / 429.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002658/0.7266, allocations: 55.66 kB / 429.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008138/0.7274, allocations: 0.5873 MB / 430.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004756/0.7279, allocations: 235.5 kB / 430.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.971e-05/0.728, allocations: 18.09 kB / 430.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.7282, allocations: 341.5 kB / 431.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.7293, allocations: 406.6 kB / 431.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.7307, allocations: 0.6282 MB / 432.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.7319, allocations: 439.4 kB / 432.6 MB, free: 13.51 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.892e-05/0.732, allocations: 3.844 kB / 432.6 MB, free: 13.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003364/0.7354, allocations: 1.192 MB / 433.8 MB, free: 13.06 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001291/0.7367, allocations: 2.538 MB / 436.3 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.456e-05/0.7368, allocations: 7.594 kB / 436.3 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.7379, allocations: 214.5 kB / 436.5 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.7391, allocations: 148.6 kB / 436.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005461/0.7446, allocations: 2.762 MB / 439.4 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.7463, allocations: 159.1 kB / 439.6 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002608/0.7467, allocations: 39.98 kB / 439.6 MB, free: 7.535 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.7467, allocations: 4 kB / 439.6 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003262/0.7499, allocations: 1.085 MB / 440.7 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.738e-05/0.7501, allocations: 11.95 kB / 440.7 MB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000864/0.7509, allocations: 221.1 kB / 440.9 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.7522, allocations: 147.7 kB / 441.1 MB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00551/0.7577, allocations: 2.78 MB / 443.9 MB, free: 3.152 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.7593, allocations: 131.4 kB / 444 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/0.7596, allocations: 32 kB / 444 MB, free: 2.992 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 (107): * Single equations (assignments): 106 * 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.0004776/0.7601, allocations: 212.8 kB / 444.2 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003578/0.7605, allocations: 94.88 kB / 444.3 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004293/0.7609, allocations: 113.3 kB / 444.4 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.761, allocations: 12 kB / 444.4 MB, free: 2.562 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.761, allocations: 0 / 444.4 MB, free: 2.562 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.761, allocations: 3.984 kB / 444.4 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008177/0.7692, allocations: 2.548 MB / 447 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.7693, allocations: 0 / 447 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008564/0.7702, allocations: 87.89 kB / 447.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008939/0.7711, allocations: 196.8 kB / 447.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000198/0.7713, allocations: 19.98 kB / 447.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005518/0.7769, allocations: 2.717 MB / 450 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.7769, allocations: 0 / 450 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004676/0.7816, allocations: 1.648 MB / 451.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.7827, allocations: 275.8 kB / 451.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003872/0.7832, allocations: 27.98 kB / 451.9 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.7845, allocations: 83.92 kB / 452 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006267/0.7852, allocations: 144.5 kB / 452.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.7853, allocations: 23.98 kB / 452.2 MB, free: 10.56 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001603/0.7869, allocations: 0.585 MB / 452.8 MB, free: 9.973 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.787, allocations: 0 / 452.8 MB, free: 9.973 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003301/0.7903, allocations: 0.5955 MB / 453.4 MB, free: 9.375 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[1].off,rectifier.thyristor.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 60 * 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.00536/0.7957, allocations: 2.387 MB / 455.8 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005522/0.8013, allocations: 1.848 MB / 457.6 MB, free: 5.074 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-05/0.8014, allocations: 4 kB / 457.6 MB, free: 5.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001986/0.8034, allocations: 0.6816 MB / 458.3 MB, free: 4.387 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.8053, allocations: 203.9 kB / 458.5 MB, free: 4.191 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008494/0.8139, allocations: 2.331 MB / 460.8 MB, free: 1.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002155/0.8161, allocations: 1.413 MB / 462.2 MB, free: 372 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.003327/0.8195, allocations: 427.1 kB / 462.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.8208, allocations: 441.3 kB / 463.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.623e-06/0.8208, allocations: 0 / 463.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08771/0.9085, allocations: 26.52 MB / 489.6 MB, free: 5.016 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003503/0.909, allocations: 242.9 kB / 489.9 MB, free: 4.699 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.53/4.439, allocations: 0 / 489.9 MB, free: 4.699 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_res.mat does not exist to compare? outputFormat=mat