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 2.161/2.161, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.806e-05/3.823e-05, allocations: 7.984 kB / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 44.51 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4479/0.5488, allocations: 85.05 MB / 385 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.5492, allocations: 88.77 kB / 385.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1175/0.6667, allocations: 28.18 MB / 413.3 MB, free: 5.109 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6668, allocations: 0 / 413.3 MB, free: 5.109 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001447/0.6669, allocations: 35.31 kB / 413.3 MB, free: 5.102 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.005254/0.6722, allocations: 1.511 MB / 414.8 MB, free: 4.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.6723, allocations: 11.5 kB / 414.9 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006672/0.6729, allocations: 196 kB / 415.1 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005095/0.6735, allocations: 163 kB / 415.2 MB, free: 3.957 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005927/0.6794, allocations: 1.641 MB / 416.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.6796, allocations: 96.58 kB / 416.9 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004235/0.68, allocations: 126.3 kB / 417.1 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004498/0.6846, allocations: 1.669 MB / 418.7 MB, free: 2.816 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.478e-05/0.6847, allocations: 7.812 kB / 418.7 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000191/0.6849, allocations: 50.31 kB / 418.8 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.174e-05/0.6849, allocations: 60 kB / 418.9 MB, free: 2.801 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003598/0.6886, allocations: 1.322 MB / 420.2 MB, free: 2.648 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/0.7005, allocations: 4.947 MB / 425.1 MB, free: 428 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002636/0.7031, allocations: 1.051 MB / 426.2 MB, free: 216 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.7045, allocations: 0.5509 MB / 426.7 MB, free: 148 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.323e-05/0.7046, allocations: 12.28 kB / 426.7 MB, free: 148 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.7058, allocations: 0.5919 MB / 427.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 3.576e-06/0.7058, allocations: 3.938 kB / 427.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.002624/0.7085, allocations: 0.9886 MB / 428.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.7086, allocations: 151.7 kB / 428.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.7104, allocations: 0.7701 MB / 429.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002409/0.7106, allocations: 56.38 kB / 429.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007044/0.7114, allocations: 0.5789 MB / 429.9 MB, free: 14.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/0.7118, allocations: 239.1 kB / 430.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.212e-05/0.7119, allocations: 15.81 kB / 430.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.7121, allocations: 351.5 kB / 430.5 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009475/0.713, allocations: 399.4 kB / 430.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.7142, allocations: 0.6271 MB / 431.5 MB, free: 14.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009903/0.7152, allocations: 440.7 kB / 431.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.7152, allocations: 0 / 431.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002909/0.7182, allocations: 1.207 MB / 433.1 MB, free: 13.33 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001269/0.7195, allocations: 2.53 MB / 435.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.7195, allocations: 5.875 kB / 435.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000886/0.7204, allocations: 217.6 kB / 435.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.7215, allocations: 150.9 kB / 436 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004937/0.7265, allocations: 2.764 MB / 438.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.7281, allocations: 159.8 kB / 438.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.7283, allocations: 36.84 kB / 439 MB, free: 8.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.7283, allocations: 3.188 kB / 439 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002889/0.7312, allocations: 1.101 MB / 440.1 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.7313, allocations: 4 kB / 440.1 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008644/0.7322, allocations: 225.3 kB / 440.3 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.7333, allocations: 139.8 kB / 440.4 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005085/0.7384, allocations: 2.768 MB / 443.2 MB, free: 3.848 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.7398, allocations: 135.4 kB / 443.3 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.74, allocations: 39.94 kB / 443.4 MB, free: 3.676 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.0004525/0.7405, allocations: 208.9 kB / 443.6 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002833/0.7407, allocations: 98.83 kB / 443.7 MB, free: 3.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004005/0.7412, allocations: 113 kB / 443.8 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.7412, allocations: 8 kB / 443.8 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.7412, allocations: 4 kB / 443.8 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.7412, allocations: 3.984 kB / 443.8 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006682/0.7479, allocations: 2.532 MB / 446.3 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.748, allocations: 0 / 446.3 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007057/0.7487, allocations: 75.89 kB / 446.4 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007381/0.7494, allocations: 196.7 kB / 446.6 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.7496, allocations: 28 kB / 446.6 MB, free: 368 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005085/0.7547, allocations: 2.724 MB / 449.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.7547, allocations: 4 kB / 449.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004255/0.759, allocations: 1.637 MB / 451 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000918/0.7599, allocations: 259.9 kB / 451.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.7602, allocations: 31.92 kB / 451.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.7612, allocations: 83.92 kB / 451.4 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005014/0.7617, allocations: 144.5 kB / 451.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.13e-05/0.7618, allocations: 23.98 kB / 451.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001326/0.7631, allocations: 0.585 MB / 452.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7632, allocations: 0 / 452.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002406/0.7656, allocations: 0.576 MB / 452.7 MB, free: 10.11 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.004601/0.7702, allocations: 2.388 MB / 455.1 MB, free: 7.676 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005246/0.7755, allocations: 1.89 MB / 457 MB, free: 5.754 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.7756, allocations: 0 / 457 MB, free: 5.754 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.7774, allocations: 0.7015 MB / 457.7 MB, free: 5.047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.7791, allocations: 188.4 kB / 457.9 MB, free: 4.867 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007185/0.7863, allocations: 2.32 MB / 460.2 MB, free: 2.492 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001628/0.788, allocations: 1.394 MB / 461.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002041/0.7901, allocations: 430.9 kB / 462 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000872/0.791, allocations: 431.3 kB / 462.4 MB, free: 228 kB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.791, allocations: 7.938 kB / 462.4 MB, free: 220 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09622/0.8872, allocations: 26.45 MB / 488.9 MB, free: 5.793 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005046/0.8878, allocations: 239.1 kB / 489.1 MB, free: 5.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.837/4.725, allocations: 0 / 489.1 MB, free: 5.48 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