Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RL",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.133/2.133, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.642e-05, allocations: 3.312 kB / 249.8 MB, free: 5.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09713, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4739/0.5711, allocations: 86.59 MB / 380.9 MB, free: 6.156 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/0.5714, allocations: 91.78 kB / 381 MB, free: 6.141 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2059/0.7773, allocations: 46.56 MB / 427.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.7774, allocations: 0 / 427.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002629/0.7777, allocations: 51.94 kB / 427.6 MB, free: 11.28 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 442 * Number of variables: 442 Notification: Performance of Generate backend data structure: time 0.008395/0.7861, allocations: 1.939 MB / 429.5 MB, free: 9.422 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.7862, allocations: 8.031 kB / 429.6 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/0.7875, allocations: 225.4 kB / 429.8 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009481/0.797, allocations: 2.057 MB / 431.8 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.7972, allocations: 63.98 kB / 431.9 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005801/0.7978, allocations: 104 kB / 432 MB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006642/0.8045, allocations: 1.807 MB / 433.8 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007516/0.8121, allocations: 2.101 MB / 435.9 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.017e-05/0.8122, allocations: 0 / 435.9 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002711/0.8125, allocations: 11.98 kB / 435.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/0.8126, allocations: 71.41 kB / 436 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02205/0.8347, allocations: 6.446 MB / 442.4 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00536/0.8401, allocations: 1.621 MB / 444 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002479/0.8426, allocations: 0.8758 MB / 444.9 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001513/0.8429, allocations: 13.31 kB / 444.9 MB, free: 9.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00237/0.8453, allocations: 0.8316 MB / 445.8 MB, free: 9.105 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 5.169e-06/0.8453, allocations: 4 kB / 445.8 MB, free: 9.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.005007/0.8503, allocations: 1.543 MB / 447.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.8505, allocations: 157.6 kB / 447.5 MB, free: 7.367 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002443/0.853, allocations: 0.8971 MB / 448.4 MB, free: 6.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003699/0.8534, allocations: 61.67 kB / 448.4 MB, free: 6.383 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.8545, allocations: 0.7451 MB / 449.2 MB, free: 5.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007212/0.8553, allocations: 346.8 kB / 449.5 MB, free: 5.297 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.8554, allocations: 0 / 449.5 MB, free: 5.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002163/0.8556, allocations: 361.9 kB / 449.9 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.8574, allocations: 0.6208 MB / 450.5 MB, free: 4.316 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002098/0.8595, allocations: 0.8784 MB / 451.4 MB, free: 3.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001881/0.8614, allocations: 0.662 MB / 452 MB, free: 2.676 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/0.8615, allocations: 4 kB / 452 MB, free: 2.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.005216/0.8667, allocations: 1.793 MB / 453.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001188/0.8679, allocations: 2.447 MB / 456.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/0.868, allocations: 8 kB / 456.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002235/0.8702, allocations: 485.9 kB / 456.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.8719, allocations: 171.7 kB / 456.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01313/0.885, allocations: 5.138 MB / 462.1 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.8872, allocations: 151.1 kB / 462.2 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001982/0.8874, allocations: 44.06 kB / 462.2 MB, free: 8.125 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.8874, allocations: 4 kB / 462.3 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004792/0.8922, allocations: 1.644 MB / 463.9 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.004e-05/0.8923, allocations: 12.09 kB / 463.9 MB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002048/0.8944, allocations: 476.7 kB / 464.4 MB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/0.896, allocations: 175.6 kB / 464.5 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/0.9087, allocations: 5.13 MB / 469.7 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.9107, allocations: 131.3 kB / 469.8 MB, free: 460 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.9109, allocations: 48.06 kB / 469.8 MB, free: 412 kB / 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 (136): * Single equations (assignments): 135 * 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.0005669/0.9115, allocations: 197.1 kB / 470 MB, free: 200 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004956/0.9165, allocations: 1.542 MB / 471.6 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004329/0.917, allocations: 118.5 kB / 471.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006188/0.9176, allocations: 147.8 kB / 471.8 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/0.9176, allocations: 12 kB / 471.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.9177, allocations: 0 / 471.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.025e-05/0.9177, allocations: 3.984 kB / 471.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0093/0.927, allocations: 3.224 MB / 475.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.9271, allocations: 0 / 475.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.9282, allocations: 99.83 kB / 475.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002049/0.9302, allocations: 465.3 kB / 475.6 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/0.9305, allocations: 3.984 kB / 475.6 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01266/0.9432, allocations: 5.001 MB / 480.6 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.9432, allocations: 0 / 480.6 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006801/0.95, allocations: 2.48 MB / 483.1 MB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.9514, allocations: 351.4 kB / 483.5 MB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004332/0.9519, allocations: 23.98 kB / 483.5 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/0.9534, allocations: 88.02 kB / 483.6 MB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009833/0.9544, allocations: 232.9 kB / 483.8 MB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.9546, allocations: 39.98 kB / 483.8 MB, free: 2.199 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001736/0.9563, allocations: 0.6565 MB / 484.5 MB, free: 1.531 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.9564, allocations: 0 / 484.5 MB, free: 1.531 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003806/0.9602, allocations: 0.7862 MB / 485.3 MB, free: 0.7422 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_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * 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.00725/0.9675, allocations: 3.109 MB / 488.4 MB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008398/0.9759, allocations: 2.897 MB / 491.3 MB, free: 10.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.976, allocations: 4 kB / 491.3 MB, free: 10.69 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/0.979, allocations: 0.9955 MB / 492.3 MB, free: 9.688 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.9815, allocations: 271.4 kB / 492.6 MB, free: 9.422 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.9932, allocations: 3.215 MB / 495.8 MB, free: 6.152 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002581/0.9959, allocations: 1.713 MB / 497.5 MB, free: 4.406 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003325/0.9992, allocations: 0.5679 MB / 498 MB, free: 3.836 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/1.001, allocations: 0.6008 MB / 498.6 MB, free: 3.234 MB / 394.7 MB Notification: Performance of SimCode: time 1.573e-06/1.001, allocations: 4 kB / 498.7 MB, free: 3.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4134/1.414, allocations: 38.52 MB / 0.5246 GB, free: 107.6 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003226/1.415, allocations: 204.2 kB / 0.5248 GB, free: 107.4 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.435/5.85, allocations: 0 / 0.5248 GB, free: 107.4 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL_res.mat does not exist to compare? outputFormat=mat