Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.575e-05, allocations: 4 kB / 255.5 MB, free: 2.598 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09454/0.09461, allocations: 44.5 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4748/0.5695, allocations: 81.56 MB / 381.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/0.5699, allocations: 86.67 kB / 381.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04715/0.6171, allocations: 12.03 MB / 393.7 MB, free: 11.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.6171, allocations: 0 / 393.7 MB, free: 11.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.087e-05/0.6172, allocations: 15.14 kB / 393.7 MB, free: 11.51 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001914/0.6191, allocations: 0.8169 MB / 394.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.6192, allocations: 7.875 kB / 394.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.6193, allocations: 98.47 kB / 394.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.6195, allocations: 78.14 kB / 394.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008865/0.6204, allocations: 470.2 kB / 395.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.6205, allocations: 51.75 kB / 395.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.6206, allocations: 62.19 kB / 395.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.6219, allocations: 0.5692 MB / 395.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/0.6219, allocations: 3.938 kB / 395.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.19e-05/0.622, allocations: 26.73 kB / 395.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.622, allocations: 19.48 kB / 395.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.6231, allocations: 397.8 kB / 396.3 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004525/0.6276, allocations: 2.204 MB / 398.5 MB, free: 9.633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.6289, allocations: 445.9 kB / 398.9 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006164/0.6295, allocations: 221.6 kB / 399.1 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.898e-05/0.6296, allocations: 7.734 kB / 399.1 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005909/0.6302, allocations: 293.5 kB / 399.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 3.146e-06/0.6302, allocations: 0 / 399.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001073/0.6313, allocations: 410.5 kB / 399.8 MB, free: 9.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.6314, allocations: 152 kB / 400 MB, free: 9.242 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006301/0.632, allocations: 403 kB / 400.4 MB, free: 9.094 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.394e-05/0.6321, allocations: 39.98 kB / 400.4 MB, free: 9.062 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.6323, allocations: 298.8 kB / 400.7 MB, free: 8.883 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.6325, allocations: 130 kB / 400.8 MB, free: 8.797 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/0.6325, allocations: 11.19 kB / 400.8 MB, free: 8.793 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.6326, allocations: 365.8 kB / 401.2 MB, free: 8.457 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.633, allocations: 149.4 kB / 401.3 MB, free: 8.453 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004586/0.6335, allocations: 296.2 kB / 401.6 MB, free: 8.262 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003926/0.6339, allocations: 163.8 kB / 401.8 MB, free: 8.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.6339, allocations: 0 / 401.8 MB, free: 8.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001201/0.6351, allocations: 0.5268 MB / 402.3 MB, free: 8.094 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003227/0.6355, allocations: 1.658 MB / 404 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.6355, allocations: 3.781 kB / 404 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004964/0.636, allocations: 94.16 kB / 404.1 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005478/0.6366, allocations: 84.42 kB / 404.1 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.6391, allocations: 1.849 MB / 406 MB, free: 20.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008048/0.6399, allocations: 88.55 kB / 406.1 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.695e-05/0.64, allocations: 21.19 kB / 406.1 MB, free: 20.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.64, allocations: 3.906 kB / 406.1 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001039/0.641, allocations: 464.3 kB / 406.6 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.6411, allocations: 3.875 kB / 406.6 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003674/0.6414, allocations: 89.16 kB / 406.6 MB, free: 20.72 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004639/0.6419, allocations: 76.66 kB / 406.7 MB, free: 20.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/0.6444, allocations: 1.848 MB / 408.6 MB, free: 19.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006854/0.6451, allocations: 66.44 kB / 408.6 MB, free: 19.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.6451, allocations: 19.39 kB / 408.7 MB, free: 19.23 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p.off,rectifier.thyristor_p.off,$PRE.rectifier.thyristor_n.off,rectifier.thyristor_n.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 55 * 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 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002382/0.6454, allocations: 154.8 kB / 408.8 MB, free: 19.1 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.6455, allocations: 54.52 kB / 408.9 MB, free: 19.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.6457, allocations: 53.95 kB / 408.9 MB, free: 19.06 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.6457, allocations: 3.875 kB / 408.9 MB, free: 19.06 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.6457, allocations: 0 / 408.9 MB, free: 19.06 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.6457, allocations: 3.984 kB / 408.9 MB, free: 19.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.648, allocations: 1.22 MB / 410.1 MB, free: 18.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.6481, allocations: 384 / 410.1 MB, free: 18.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.6484, allocations: 43.05 kB / 410.2 MB, free: 18.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003681/0.6488, allocations: 92.09 kB / 410.3 MB, free: 18.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.6489, allocations: 7.906 kB / 410.3 MB, free: 18.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/0.6514, allocations: 1.747 MB / 412 MB, free: 17.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6514, allocations: 0 / 412 MB, free: 17.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001547/0.653, allocations: 0.7347 MB / 412.8 MB, free: 16.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002895/0.6533, allocations: 176.7 kB / 412.9 MB, free: 16.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.6534, allocations: 10.16 kB / 412.9 MB, free: 16.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005654/0.654, allocations: 49.81 kB / 413 MB, free: 16.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.6542, allocations: 45.95 kB / 413 MB, free: 16.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.946e-05/0.6542, allocations: 17.62 kB / 413.1 MB, free: 16.6 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000498/0.6548, allocations: 303 kB / 413.3 MB, free: 16.49 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6548, allocations: 0 / 413.3 MB, free: 16.49 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00123/0.656, allocations: 273.8 kB / 413.6 MB, free: 16.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 18 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p.off,rectifier.thyristor_n.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.off,rectifier.thyristor_p.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001934/0.658, allocations: 1.361 MB / 415 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.6599, allocations: 0.8948 MB / 415.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.66, allocations: 0 / 415.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006589/0.6606, allocations: 341.7 kB / 416.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/0.6613, allocations: 75.47 kB / 416.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.6638, allocations: 0.8678 MB / 417.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005659/0.6644, allocations: 0.9141 MB / 418.1 MB, free: 13.92 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006247/0.6651, allocations: 107 kB / 418.2 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003113/0.6654, allocations: 200.7 kB / 418.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6654, allocations: 0 / 418.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04644/0.7119, allocations: 12.54 MB / 430.9 MB, free: 7.738 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003403/0.7123, allocations: 236.7 kB / 431.1 MB, free: 7.426 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.001/3.713, allocations: 0 / 431.1 MB, free: 7.426 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R_res.mat does not exist to compare? outputFormat=mat