Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.014e-05/3.023e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09749, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4535/0.5511, allocations: 87.34 MB / 387.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.5514, allocations: 86.81 kB / 387.4 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1311/0.6826, allocations: 36.09 MB / 423.5 MB, free: 1.414 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6826, allocations: 7.938 kB / 423.5 MB, free: 1.406 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001943/0.6828, allocations: 57.53 kB / 423.6 MB, free: 1.391 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.006462/0.6893, allocations: 1.963 MB / 425.5 MB, free: 188 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.6894, allocations: 11.72 kB / 425.5 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008075/0.6902, allocations: 262.9 kB / 425.8 MB, free: 92 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000717/0.6909, allocations: 220.7 kB / 426 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008134/0.6991, allocations: 2.065 MB / 428.1 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.6993, allocations: 137.5 kB / 428.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007026/0.7, allocations: 171.7 kB / 428.4 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006871/0.7069, allocations: 2.361 MB / 430.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.648e-05/0.7071, allocations: 4 kB / 430.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002693/0.7073, allocations: 77.03 kB / 430.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001084/0.7075, allocations: 71.64 kB / 430.9 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005776/0.7132, allocations: 1.904 MB / 432.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02053/0.7338, allocations: 6.845 MB / 439.6 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005065/0.7389, allocations: 1.689 MB / 441.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002671/0.7417, allocations: 0.9698 MB / 442.3 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/0.7418, allocations: 9 kB / 442.3 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002552/0.7444, allocations: 0.8646 MB / 443.2 MB, free: 5.266 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 5.48e-06/0.7445, allocations: 0 / 443.2 MB, free: 5.266 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.004837/0.7493, allocations: 1.649 MB / 444.8 MB, free: 3.605 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.7495, allocations: 165.3 kB / 445 MB, free: 3.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002667/0.7522, allocations: 1.039 MB / 446 MB, free: 2.355 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003773/0.7526, allocations: 81.67 kB / 446.1 MB, free: 2.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.7537, allocations: 0.7603 MB / 446.9 MB, free: 1.504 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000612/0.7543, allocations: 370.1 kB / 447.2 MB, free: 1.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.7544, allocations: 28 kB / 447.2 MB, free: 1.129 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.7546, allocations: 357.9 kB / 447.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001679/0.7563, allocations: 0.6403 MB / 448.2 MB, free: 136 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002028/0.7584, allocations: 0.9215 MB / 449.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.7601, allocations: 0.692 MB / 449.9 MB, free: 14.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.7602, allocations: 4 kB / 449.9 MB, free: 14.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004995/0.7652, allocations: 1.942 MB / 451.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001104/0.7663, allocations: 2.441 MB / 454.2 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.7664, allocations: 12 kB / 454.3 MB, free: 9.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002039/0.7684, allocations: 493 kB / 454.7 MB, free: 9.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.7699, allocations: 179.7 kB / 454.9 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/0.7815, allocations: 5.197 MB / 460.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/0.7836, allocations: 191 kB / 460.3 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001798/0.7838, allocations: 48 kB / 460.3 MB, free: 3.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.7838, allocations: 4 kB / 460.3 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004604/0.7884, allocations: 1.8 MB / 462.1 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.754e-05/0.7885, allocations: 4 kB / 462.1 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/0.7903, allocations: 497.5 kB / 462.6 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.7917, allocations: 167.7 kB / 462.8 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/0.8031, allocations: 5.201 MB / 468 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.805, allocations: 163.2 kB / 468.2 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.8052, allocations: 48 kB / 468.2 MB, free: 11.59 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.0005604/0.8057, allocations: 237.4 kB / 468.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003533/0.8061, allocations: 130.4 kB / 468.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005752/0.8067, allocations: 172.5 kB / 468.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.336e-05/0.8067, allocations: 19.94 kB / 468.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.8068, allocations: 0 / 468.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.8068, allocations: 7.984 kB / 468.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009472/0.8163, allocations: 3.559 MB / 472.3 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.8163, allocations: 3.938 kB / 472.3 MB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000964/0.8173, allocations: 103.8 kB / 472.4 MB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001837/0.8191, allocations: 469 kB / 472.9 MB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001835/0.8194, allocations: 23.98 kB / 472.9 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/0.8309, allocations: 5.143 MB / 478 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.8309, allocations: 0 / 478 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006521/0.8375, allocations: 2.578 MB / 480.6 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/0.8388, allocations: 367.2 kB / 481 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003475/0.8392, allocations: 47.97 kB / 481 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.8405, allocations: 107.9 kB / 481.1 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008145/0.8414, allocations: 220.8 kB / 481.3 MB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.8415, allocations: 47.91 kB / 481.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001929/0.8435, allocations: 0.7847 MB / 482.2 MB, free: 13.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.8435, allocations: 0 / 482.2 MB, free: 13.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003829/0.8473, allocations: 0.8489 MB / 483 MB, free: 12.53 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.007362/0.8547, allocations: 3.229 MB / 486.3 MB, free: 9.266 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008572/0.8634, allocations: 3.051 MB / 489.3 MB, free: 6.191 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.8634, allocations: 3.938 kB / 489.3 MB, free: 6.188 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00315/0.8666, allocations: 1.059 MB / 490.4 MB, free: 5.121 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/0.8694, allocations: 312.2 kB / 490.7 MB, free: 4.812 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.8808, allocations: 3.343 MB / 494 MB, free: 1.414 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002389/0.8833, allocations: 1.728 MB / 495.7 MB, free: 15.65 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003162/0.8865, allocations: 0.5997 MB / 496.3 MB, free: 15.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001461/0.888, allocations: 0.6047 MB / 497 MB, free: 14.44 MB / 394.7 MB Notification: Performance of SimCode: time 3.296e-06/0.888, allocations: 3.938 kB / 497 MB, free: 14.44 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4307/1.319, allocations: 42.44 MB / 0.5268 GB, free: 120.5 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002849/1.319, allocations: 238.8 kB / 0.527 GB, free: 120.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.222/5.541, allocations: 2.062 kB / 0.527 GB, free: 120.2 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV_res.mat does not exist to compare? outputFormat=mat