Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RLV,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.206/2.206, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.402e-05/3.423e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 44.5 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4355/0.5397, allocations: 86.58 MB / 386.5 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/0.5401, allocations: 93 kB / 386.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.158/0.6981, allocations: 36.05 MB / 422.7 MB, free: 1.684 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6982, allocations: 0 / 422.7 MB, free: 1.684 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002255/0.6984, allocations: 50.02 kB / 422.7 MB, free: 1.676 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: 446 * Number of variables: 446 Notification: Performance of Generate backend data structure: time 0.007303/0.7058, allocations: 2.005 MB / 424.7 MB, free: 460 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.7058, allocations: 9.594 kB / 424.7 MB, free: 460 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009238/0.7068, allocations: 257.9 kB / 425 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007026/0.7075, allocations: 230.7 kB / 425.2 MB, free: 252 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007751/0.7152, allocations: 1.975 MB / 427.2 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.7155, allocations: 144.6 kB / 427.3 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006042/0.7161, allocations: 170 kB / 427.5 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006613/0.7227, allocations: 2.354 MB / 429.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.86e-05/0.7229, allocations: 3.781 kB / 429.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.7231, allocations: 74.52 kB / 429.9 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/0.7233, allocations: 76.53 kB / 430 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005678/0.729, allocations: 1.97 MB / 432 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02145/0.7505, allocations: 7.312 MB / 439.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005327/0.7559, allocations: 1.638 MB / 440.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003033/0.759, allocations: 0.9055 MB / 441.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002323/0.7593, allocations: 17 kB / 441.8 MB, free: 6.691 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003558/0.7628, allocations: 0.8396 MB / 442.7 MB, free: 5.836 MB / 330.7 MB Notification: Performance of pre-optimization done (n=114): time 6.603e-06/0.7629, allocations: 0 / 442.7 MB, free: 5.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=114): time 0.006866/0.7698, allocations: 1.489 MB / 444.2 MB, free: 4.336 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.77, allocations: 127.8 kB / 444.3 MB, free: 4.188 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/0.7729, allocations: 1.11 MB / 445.4 MB, free: 3.062 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003751/0.7733, allocations: 65.69 kB / 445.5 MB, free: 2.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.7744, allocations: 0.7508 MB / 446.2 MB, free: 2.238 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006554/0.775, allocations: 333.5 kB / 446.5 MB, free: 1.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.7752, allocations: 31.94 kB / 446.6 MB, free: 1.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.7754, allocations: 362.8 kB / 446.9 MB, free: 1.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.777, allocations: 0.5921 MB / 447.5 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001925/0.779, allocations: 0.7953 MB / 448.3 MB, free: 64 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001764/0.7808, allocations: 0.6061 MB / 448.9 MB, free: 15.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.7808, allocations: 0 / 448.9 MB, free: 15.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.004589/0.7855, allocations: 1.654 MB / 450.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009737/0.7865, allocations: 1.924 MB / 452.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/0.7865, allocations: 4 kB / 452.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00181/0.7884, allocations: 426 kB / 452.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.79, allocations: 179.6 kB / 453.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.8, allocations: 4.389 MB / 457.5 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.8021, allocations: 175.2 kB / 457.7 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002244/0.8024, allocations: 47.98 kB / 457.7 MB, free: 6.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.8024, allocations: 7.953 kB / 457.7 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00439/0.8068, allocations: 1.586 MB / 459.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.172e-05/0.8069, allocations: 7.984 kB / 459.3 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001474/0.8084, allocations: 421.3 kB / 459.7 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.8099, allocations: 176.3 kB / 459.9 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009839/0.8198, allocations: 4.458 MB / 464.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.8213, allocations: 155.3 kB / 464.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.8214, allocations: 44 kB / 464.5 MB, free: 15.4 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 (122): * Single equations (assignments): 121 * 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.0005687/0.822, allocations: 220.7 kB / 464.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000514/0.8226, allocations: 134.4 kB / 464.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000577/0.8231, allocations: 165 kB / 465 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.8232, allocations: 15.94 kB / 465.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.8232, allocations: 0 / 465.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/0.8232, allocations: 7.969 kB / 465.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.8341, allocations: 3.598 MB / 468.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.8342, allocations: 0 / 468.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.8354, allocations: 115.8 kB / 468.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001557/0.837, allocations: 401 kB / 469.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002358/0.8373, allocations: 19.98 kB / 469.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009686/0.847, allocations: 4.314 MB / 473.5 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/0.8471, allocations: 0 / 473.5 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006522/0.8536, allocations: 2.486 MB / 476 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.855, allocations: 367.2 kB / 476.3 MB, free: 3.375 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003444/0.8553, allocations: 35.98 kB / 476.4 MB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.8567, allocations: 107.8 kB / 476.5 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008297/0.8576, allocations: 232.6 kB / 476.7 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/0.8577, allocations: 31.98 kB / 476.7 MB, free: 2.977 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002187/0.8599, allocations: 0.845 MB / 477.6 MB, free: 2.121 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.042e-06/0.86, allocations: 4 kB / 477.6 MB, free: 2.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003502/0.8635, allocations: 0.8369 MB / 478.4 MB, free: 1.277 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[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 78 * 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.007151/0.8707, allocations: 3.105 MB / 481.5 MB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007506/0.8783, allocations: 2.739 MB / 484.3 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/0.8784, allocations: 4.781 kB / 484.3 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/0.8811, allocations: 0.984 MB / 485.3 MB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.8835, allocations: 288.9 kB / 485.5 MB, free: 10.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.8948, allocations: 3.346 MB / 488.9 MB, free: 6.691 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002305/0.8972, allocations: 1.724 MB / 490.6 MB, free: 4.934 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/0.8989, allocations: 0.6477 MB / 491.3 MB, free: 4.285 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.8989, allocations: 0 / 491.3 MB, free: 4.285 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.718/4.617, allocations: 40.51 MB / 0.5193 GB, free: 121.7 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_RLV_res.mat does not exist to compare? outputFormat=mat