Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.477e-05/3.492e-05, allocations: 4 kB / 255.5 MB, free: 2.59 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 44.49 MB / 300 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4468/0.5533, allocations: 85.07 MB / 385.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/0.5536, allocations: 91.05 kB / 385.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1076/0.6612, allocations: 28.18 MB / 413.3 MB, free: 4.984 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.6613, allocations: 0 / 413.3 MB, free: 4.984 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001885/0.6615, allocations: 38.94 kB / 413.4 MB, free: 4.977 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: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 0.00703/0.6685, allocations: 1.513 MB / 414.9 MB, free: 3.984 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.6686, allocations: 11.72 kB / 414.9 MB, free: 3.984 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00052/0.6691, allocations: 200.7 kB / 415.1 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004448/0.6696, allocations: 159.7 kB / 415.2 MB, free: 3.828 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005696/0.6753, allocations: 1.638 MB / 416.9 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.6754, allocations: 99.48 kB / 417 MB, free: 3.145 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002812/0.6757, allocations: 126.4 kB / 417.1 MB, free: 3.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006038/0.6818, allocations: 1.651 MB / 418.8 MB, free: 2.695 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.794e-05/0.6819, allocations: 3.844 kB / 418.8 MB, free: 2.695 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003278/0.6823, allocations: 61.52 kB / 418.8 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.6824, allocations: 52.17 kB / 418.9 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005957/0.6884, allocations: 1.307 MB / 420.2 MB, free: 2.539 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01139/0.6998, allocations: 4.946 MB / 425.1 MB, free: 320 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002563/0.7025, allocations: 1.043 MB / 426.2 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.7038, allocations: 0.5488 MB / 426.7 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.345e-05/0.7039, allocations: 12.52 kB / 426.7 MB, free: 36 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/0.7052, allocations: 0.583 MB / 427.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 3.938e-06/0.7052, allocations: 0 / 427.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.002665/0.7079, allocations: 0.9876 MB / 428.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.7081, allocations: 153.6 kB / 428.4 MB, free: 15.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001613/0.7097, allocations: 0.7693 MB / 429.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.7099, allocations: 58.12 kB / 429.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006901/0.7106, allocations: 0.5768 MB / 429.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003628/0.711, allocations: 239.2 kB / 430.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.225e-05/0.7111, allocations: 20.91 kB / 430.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.7113, allocations: 344.3 kB / 430.4 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009178/0.7122, allocations: 403 kB / 430.8 MB, free: 14.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.7133, allocations: 0.6216 MB / 431.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009461/0.7143, allocations: 441.6 kB / 431.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.7143, allocations: 3.406 kB / 431.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00282/0.7172, allocations: 1.183 MB / 433.1 MB, free: 13.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001474/0.7187, allocations: 2.532 MB / 435.6 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.113e-05/0.7188, allocations: 11.81 kB / 435.6 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.7201, allocations: 212.5 kB / 435.8 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.7213, allocations: 152.2 kB / 436 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004939/0.7262, allocations: 2.768 MB / 438.7 MB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/0.7278, allocations: 155.7 kB / 438.9 MB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.7279, allocations: 37.64 kB / 438.9 MB, free: 8.078 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.728, allocations: 3.188 kB / 438.9 MB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002753/0.7307, allocations: 1.085 MB / 440 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.7308, allocations: 8 kB / 440 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008039/0.7316, allocations: 213.6 kB / 440.2 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.7326, allocations: 151.7 kB / 440.4 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004908/0.7375, allocations: 2.768 MB / 443.1 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.7389, allocations: 135.3 kB / 443.3 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.78e-05/0.7391, allocations: 39.94 kB / 443.3 MB, free: 3.68 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 (106): * Single equations (assignments): 105 * 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.0004031/0.7395, allocations: 200.8 kB / 443.5 MB, free: 3.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.7397, allocations: 94.91 kB / 443.6 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000367/0.7401, allocations: 109 kB / 443.7 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.7401, allocations: 11.94 kB / 443.7 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.7401, allocations: 4 kB / 443.7 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.7402, allocations: 3.984 kB / 443.7 MB, free: 3.258 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00633/0.7465, allocations: 2.536 MB / 446.3 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.7465, allocations: 0 / 446.3 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007305/0.7473, allocations: 79.83 kB / 446.3 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007299/0.748, allocations: 192.7 kB / 446.5 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.393e-05/0.7481, allocations: 32 kB / 446.6 MB, free: 384 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004888/0.753, allocations: 2.713 MB / 449.3 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.7531, allocations: 4.188 kB / 449.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003908/0.757, allocations: 1.629 MB / 450.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006647/0.7577, allocations: 275.8 kB / 451.2 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001994/0.7579, allocations: 23.98 kB / 451.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.759, allocations: 91.91 kB / 451.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004971/0.7595, allocations: 144.5 kB / 451.4 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.97e-05/0.7596, allocations: 23.98 kB / 451.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001323/0.7609, allocations: 0.5889 MB / 452.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.761, allocations: 0 / 452.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002696/0.7637, allocations: 0.5681 MB / 452.6 MB, free: 10.13 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[2].off,rectifier.thyristor.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 59 * 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.004696/0.7684, allocations: 2.389 MB / 455 MB, free: 7.699 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004682/0.7731, allocations: 1.845 MB / 456.9 MB, free: 5.828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.7732, allocations: 4 kB / 456.9 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001739/0.7749, allocations: 0.6844 MB / 457.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.7766, allocations: 187.3 kB / 457.7 MB, free: 4.961 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007275/0.7839, allocations: 2.323 MB / 460 MB, free: 2.586 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001581/0.7855, allocations: 1.398 MB / 461.4 MB, free: 1.152 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002147/0.7877, allocations: 430.9 kB / 461.9 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009647/0.7887, allocations: 433.3 kB / 462.3 MB, free: 312 kB / 346.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7887, allocations: 4 kB / 462.3 MB, free: 308 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1586/0.9473, allocations: 26.28 MB / 488.6 MB, free: 6.051 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002903/0.9477, allocations: 233.7 kB / 488.8 MB, free: 5.742 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.476/4.424, allocations: 3.938 kB / 488.8 MB, free: 5.738 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_RL_res.mat does not exist to compare? outputFormat=mat