Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.245e-05/3.258e-05, allocations: 0 / 255.5 MB, free: 2.59 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09381, allocations: 44.5 MB / 300 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.567, allocations: 82.58 MB / 382.6 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.5674, allocations: 87.55 kB / 382.7 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0521/0.6195, allocations: 13.65 MB / 396.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6196, allocations: 0 / 396.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.615e-05/0.6197, allocations: 19.22 kB / 396.3 MB, free: 11.41 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: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.002177/0.6219, allocations: 0.8964 MB / 397.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.6219, allocations: 7.719 kB / 397.2 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002068/0.6222, allocations: 118.5 kB / 397.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.6224, allocations: 86.03 kB / 397.4 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.6234, allocations: 0.5025 MB / 397.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.154e-05/0.6235, allocations: 50.72 kB / 398 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.6237, allocations: 73.73 kB / 398.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.6253, allocations: 0.6989 MB / 398.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.554e-05/0.6254, allocations: 3.5 kB / 398.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.6255, allocations: 29.58 kB / 398.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.6255, allocations: 15.06 kB / 398.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.6268, allocations: 499.8 kB / 399.3 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005963/0.6328, allocations: 2.697 MB / 402 MB, free: 8.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.6344, allocations: 0.5739 MB / 402.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.6356, allocations: 423.4 kB / 403 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.728e-05/0.6357, allocations: 8.344 kB / 403 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007412/0.6365, allocations: 345 kB / 403.3 MB, free: 8.297 MB / 314.7 MB Notification: Performance of pre-optimization done (n=58): time 3.517e-06/0.6365, allocations: 3.844 kB / 403.3 MB, free: 8.297 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.001401/0.6379, allocations: 0.5434 MB / 403.9 MB, free: 8.164 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.638, allocations: 119 kB / 404 MB, free: 8.035 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007289/0.6387, allocations: 422.4 kB / 404.4 MB, free: 7.891 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.988e-05/0.6389, allocations: 48.5 kB / 404.5 MB, free: 7.855 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.6391, allocations: 326 kB / 404.8 MB, free: 7.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.6393, allocations: 175.5 kB / 404.9 MB, free: 7.539 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.915e-05/0.6394, allocations: 11.5 kB / 405 MB, free: 7.539 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.6395, allocations: 365.3 kB / 405.3 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005003/0.64, allocations: 196.8 kB / 405.5 MB, free: 7.199 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/0.6406, allocations: 343.7 kB / 405.8 MB, free: 7.016 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.6412, allocations: 209.9 kB / 406 MB, free: 6.977 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.6412, allocations: 0 / 406 MB, free: 6.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001693/0.6429, allocations: 0.688 MB / 406.7 MB, free: 6.812 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003222/0.6432, allocations: 1.572 MB / 408.3 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.6433, allocations: 3.781 kB / 408.3 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007677/0.644, allocations: 164.5 kB / 408.5 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000721/0.6448, allocations: 99.42 kB / 408.6 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006118/0.6509, allocations: 3.592 MB / 412.2 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/0.6522, allocations: 92.86 kB / 412.2 MB, free: 18.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.746e-05/0.6523, allocations: 23.25 kB / 412.3 MB, free: 18.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.6523, allocations: 3.875 kB / 412.3 MB, free: 18.19 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001961/0.6543, allocations: 0.6126 MB / 412.9 MB, free: 18.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.6543, allocations: 3.875 kB / 412.9 MB, free: 18.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008355/0.6551, allocations: 162.1 kB / 413 MB, free: 18.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007359/0.6559, allocations: 89.73 kB / 413.1 MB, free: 18.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00627/0.6622, allocations: 3.597 MB / 416.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.6634, allocations: 73.16 kB / 416.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.153e-05/0.6635, allocations: 23.25 kB / 416.8 MB, free: 15.12 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($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_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.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 (66): * Single equations (assignments): 64 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.000384/0.6639, allocations: 160.7 kB / 417 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.6641, allocations: 58.47 kB / 417 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.6644, allocations: 74.55 kB / 417.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.6644, allocations: 7.781 kB / 417.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.6644, allocations: 3.938 kB / 417.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.6645, allocations: 0 / 417.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004113/0.6686, allocations: 1.413 MB / 418.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.6686, allocations: 0 / 418.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.6692, allocations: 53.84 kB / 418.6 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008448/0.6701, allocations: 160.1 kB / 418.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.006e-05/0.6702, allocations: 11.25 kB / 418.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00605/0.6763, allocations: 3.505 MB / 422.3 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.6763, allocations: 384 / 422.3 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.6794, allocations: 0.9537 MB / 423.2 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004976/0.6799, allocations: 185.9 kB / 423.4 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/0.6801, allocations: 18.89 kB / 423.4 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000874/0.681, allocations: 42.47 kB / 423.5 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.6814, allocations: 81.33 kB / 423.5 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.117e-05/0.6815, allocations: 22.92 kB / 423.6 MB, free: 11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007764/0.6823, allocations: 326.2 kB / 423.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.6823, allocations: 0 / 423.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002423/0.6847, allocations: 349.6 kB / 424.2 MB, free: 10.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (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_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.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: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003486/0.6882, allocations: 1.597 MB / 425.8 MB, free: 9.941 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003656/0.6919, allocations: 1.344 MB / 427.2 MB, free: 9.391 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.692, allocations: 0 / 427.2 MB, free: 9.391 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.6933, allocations: 0.5245 MB / 427.7 MB, free: 9.129 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.6944, allocations: 106.3 kB / 427.8 MB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004505/0.6989, allocations: 1.118 MB / 428.9 MB, free: 8.574 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009096/0.6999, allocations: 0.9646 MB / 429.9 MB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009742/0.7009, allocations: 103.4 kB / 430 MB, free: 7.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004931/0.7014, allocations: 233.2 kB / 430.2 MB, free: 7.672 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7014, allocations: 0 / 430.2 MB, free: 7.672 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07305/0.7745, allocations: 16.16 MB / 446.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004166/0.775, allocations: 232.5 kB / 446.6 MB, free: 13.83 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.259/4.034, allocations: 0 / 446.6 MB, free: 13.83 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat does not exist to compare? outputFormat=mat