Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.201e-05, allocations: 0 / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09792, allocations: 44.51 MB / 300 MB, free: 6.492 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.525, allocations: 86.34 MB / 386.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.5253, allocations: 95.08 kB / 386.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1467/0.6721, allocations: 35.78 MB / 422.2 MB, free: 1.434 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.6722, allocations: 0 / 422.2 MB, free: 1.434 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002817/0.6725, allocations: 46.53 kB / 422.2 MB, free: 1.426 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: 440 * Number of variables: 440 Notification: Performance of Generate backend data structure: time 0.009333/0.6818, allocations: 1.987 MB / 424.2 MB, free: 212 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.057e-05/0.6819, allocations: 7.375 kB / 424.2 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001197/0.6831, allocations: 264 kB / 424.5 MB, free: 120 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.6842, allocations: 225.3 kB / 424.7 MB, free: 4 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007865/0.692, allocations: 1.963 MB / 426.7 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.6923, allocations: 135.1 kB / 426.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007413/0.693, allocations: 164.7 kB / 427 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006681/0.6997, allocations: 2.332 MB / 429.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.116e-05/0.6999, allocations: 7.844 kB / 429.3 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002712/0.7001, allocations: 68.38 kB / 429.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/0.7003, allocations: 78.39 kB / 429.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005912/0.7062, allocations: 1.933 MB / 431.4 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02097/0.7272, allocations: 7.257 MB / 438.6 MB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005103/0.7324, allocations: 1.611 MB / 440.2 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002667/0.7351, allocations: 0.8963 MB / 441.1 MB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.7353, allocations: 9 kB / 441.1 MB, free: 7.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002288/0.7376, allocations: 0.8376 MB / 442 MB, free: 6.305 MB / 330.7 MB Notification: Performance of pre-optimization done (n=113): time 4.979e-06/0.7376, allocations: 0 / 442 MB, free: 6.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=113): time 0.004283/0.7419, allocations: 1.481 MB / 443.5 MB, free: 4.809 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.7421, allocations: 127.8 kB / 443.6 MB, free: 4.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/0.745, allocations: 1.1 MB / 444.7 MB, free: 3.543 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003954/0.7454, allocations: 65.69 kB / 444.8 MB, free: 3.473 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009647/0.7464, allocations: 0.7469 MB / 445.5 MB, free: 2.723 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006462/0.7471, allocations: 337.5 kB / 445.8 MB, free: 2.402 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.7472, allocations: 28 kB / 445.9 MB, free: 2.375 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.7474, allocations: 358.8 kB / 446.2 MB, free: 2.016 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.749, allocations: 0.5843 MB / 446.8 MB, free: 1.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.7509, allocations: 0.7997 MB / 447.6 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.7526, allocations: 0.6101 MB / 448.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.876e-06/0.7526, allocations: 0 / 448.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.004193/0.7568, allocations: 1.626 MB / 449.8 MB, free: 14.31 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008325/0.7577, allocations: 1.92 MB / 451.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.7577, allocations: 4 kB / 451.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001671/0.7594, allocations: 427.1 kB / 452.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.761, allocations: 187.6 kB / 452.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009484/0.7705, allocations: 4.383 MB / 456.7 MB, free: 7.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.7726, allocations: 179.1 kB / 456.9 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/0.7728, allocations: 44 kB / 457 MB, free: 6.902 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.7729, allocations: 4 kB / 457 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004269/0.7772, allocations: 1.579 MB / 458.5 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/0.7772, allocations: 8 kB / 458.5 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001442/0.7787, allocations: 416.7 kB / 459 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.7802, allocations: 167.7 kB / 459.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009354/0.7896, allocations: 4.447 MB / 463.6 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.791, allocations: 155.3 kB / 463.7 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.7912, allocations: 40.05 kB / 463.8 MB, free: 15.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($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,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,$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,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 (121): * Single equations (assignments): 120 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.0005072/0.7918, allocations: 220.8 kB / 464 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000498/0.7923, allocations: 130.4 kB / 464.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006103/0.7929, allocations: 172.7 kB / 464.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.7929, allocations: 12 kB / 464.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.7929, allocations: 3.984 kB / 464.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.793, allocations: 3.984 kB / 464.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.8032, allocations: 3.579 MB / 467.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.8033, allocations: 0 / 467.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.8044, allocations: 115.8 kB / 468 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/0.806, allocations: 392.8 kB / 468.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/0.8063, allocations: 23.98 kB / 468.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009315/0.8156, allocations: 4.318 MB / 472.7 MB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.8156, allocations: 7.938 kB / 472.7 MB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006749/0.8224, allocations: 2.477 MB / 475.2 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/0.8238, allocations: 363.3 kB / 475.5 MB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004439/0.8242, allocations: 39.98 kB / 475.6 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/0.8259, allocations: 107.9 kB / 475.7 MB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009103/0.8268, allocations: 228.6 kB / 475.9 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.827, allocations: 35.98 kB / 475.9 MB, free: 3.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002256/0.8292, allocations: 0.8328 MB / 476.8 MB, free: 2.711 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.8293, allocations: 0 / 476.8 MB, free: 2.711 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003875/0.8332, allocations: 0.8305 MB / 477.6 MB, free: 1.879 MB / 362.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: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].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.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,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,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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 77 * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.007212/0.8404, allocations: 3.105 MB / 480.7 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007857/0.8483, allocations: 2.673 MB / 483.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/0.8484, allocations: 5 kB / 483.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002812/0.8512, allocations: 0.9571 MB / 484.3 MB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/0.854, allocations: 292.5 kB / 484.6 MB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/0.8653, allocations: 3.314 MB / 487.9 MB, free: 7.434 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002056/0.8674, allocations: 1.712 MB / 489.7 MB, free: 5.688 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/0.869, allocations: 0.6438 MB / 490.3 MB, free: 5.043 MB / 378.7 MB Notification: Performance of SimCode: time 1.502e-06/0.8691, allocations: 0 / 490.3 MB, free: 5.043 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.62/4.489, allocations: 40.03 MB / 0.5179 GB, free: 120.4 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.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL_res.mat does not exist to compare? outputFormat=mat