Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.883e-05, allocations: 0 / 292.8 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1043, allocations: 50.41 MB / 343.2 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4455/0.5498, allocations: 89.17 MB / 432.3 MB, free: 4.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/0.5502, allocations: 78.45 kB / 432.4 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04706/0.5973, allocations: 11.35 MB / 443.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5974, allocations: 0 / 443.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.877e-05/0.5974, allocations: 16 kB / 443.8 MB, free: 11.06 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.002366/0.5998, allocations: 0.887 MB / 444.7 MB, free: 10.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.5999, allocations: 12.03 kB / 444.7 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001884/0.6001, allocations: 108.6 kB / 444.8 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.6003, allocations: 86.97 kB / 444.9 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.6014, allocations: 0.4887 MB / 445.4 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.329e-05/0.6015, allocations: 57.62 kB / 445.4 MB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.6017, allocations: 73.77 kB / 445.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.6034, allocations: 0.6842 MB / 446.2 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.6035, allocations: 4 kB / 446.2 MB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.924e-05/0.6036, allocations: 30.12 kB / 446.2 MB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.6036, allocations: 16 kB / 446.2 MB, free: 8.945 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.605, allocations: 499.1 kB / 446.7 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006034/0.611, allocations: 2.676 MB / 449.4 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.6125, allocations: 0.5237 MB / 449.9 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009258/0.6134, allocations: 317.3 kB / 450.2 MB, free: 5.902 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.448e-05/0.6135, allocations: 4.438 kB / 450.2 MB, free: 5.898 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008133/0.6143, allocations: 336.4 kB / 450.6 MB, free: 5.645 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 3.356e-06/0.6143, allocations: 4 kB / 450.6 MB, free: 5.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.001521/0.6159, allocations: 0.5365 MB / 451.1 MB, free: 5.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.616, allocations: 144.9 kB / 451.2 MB, free: 5.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008242/0.6168, allocations: 430.9 kB / 451.7 MB, free: 4.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-05/0.6169, allocations: 40.77 kB / 451.7 MB, free: 4.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.6172, allocations: 320 kB / 452 MB, free: 4.484 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.6174, allocations: 178.8 kB / 452.2 MB, free: 4.332 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.671e-05/0.6175, allocations: 10.62 kB / 452.2 MB, free: 4.328 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.6177, allocations: 369.6 kB / 452.6 MB, free: 3.984 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/0.6182, allocations: 181.8 kB / 452.7 MB, free: 3.875 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006307/0.6188, allocations: 342.2 kB / 453.1 MB, free: 3.566 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/0.6194, allocations: 208.2 kB / 453.3 MB, free: 3.434 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.6194, allocations: 0 / 453.3 MB, free: 3.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001636/0.6211, allocations: 0.6466 MB / 453.9 MB, free: 2.953 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000654/0.6217, allocations: 1.578 MB / 455.5 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.6218, allocations: 4 kB / 455.5 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007702/0.6225, allocations: 152 kB / 455.7 MB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/0.6232, allocations: 91.33 kB / 455.7 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004091/0.6273, allocations: 2.319 MB / 458.1 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009497/0.6283, allocations: 95.53 kB / 458.2 MB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.347e-05/0.6284, allocations: 27.94 kB / 458.2 MB, free: 14.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.6284, allocations: 4 kB / 458.2 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001543/0.63, allocations: 0.5682 MB / 458.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.63, allocations: 4 kB / 458.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006723/0.6307, allocations: 157.4 kB / 458.9 MB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005649/0.6313, allocations: 83.83 kB / 459 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004162/0.6354, allocations: 2.315 MB / 461.3 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008662/0.6363, allocations: 71.61 kB / 461.4 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.879e-05/0.6364, allocations: 28 kB / 461.4 MB, free: 11.5 MB / 378.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: 27 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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,rectifier.diode_n1.off,rectifier.diode_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 (61): * Single equations (assignments): 60 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.6367, allocations: 159.9 kB / 461.6 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.6369, allocations: 67.25 kB / 461.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002209/0.6371, allocations: 61.59 kB / 461.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.6372, allocations: 8 kB / 461.7 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.6372, allocations: 0 / 461.7 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.6372, allocations: 4.078 kB / 461.7 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003213/0.6404, allocations: 1.379 MB / 463.1 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.6405, allocations: 0 / 463.1 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004352/0.6409, allocations: 43.92 kB / 463.1 MB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006746/0.6416, allocations: 144.7 kB / 463.3 MB, free: 9.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.554e-05/0.6417, allocations: 15.94 kB / 463.3 MB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004129/0.6458, allocations: 2.311 MB / 465.6 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6458, allocations: 0 / 465.6 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.6482, allocations: 0.9223 MB / 466.5 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/0.6486, allocations: 192.3 kB / 466.7 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.6488, allocations: 15.95 kB / 466.7 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006769/0.6495, allocations: 43.97 kB / 466.8 MB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.6497, allocations: 64.47 kB / 466.8 MB, free: 5.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.6498, allocations: 19.98 kB / 466.8 MB, free: 5.824 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006411/0.6504, allocations: 329.6 kB / 467.2 MB, free: 5.504 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.6505, allocations: 0 / 467.2 MB, free: 5.504 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001602/0.6521, allocations: 339.1 kB / 467.5 MB, free: 5.172 MB / 378.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: 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.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002727/0.6548, allocations: 1.587 MB / 469.1 MB, free: 3.547 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002942/0.6578, allocations: 1.135 MB / 470.2 MB, free: 2.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/0.6578, allocations: 8.062 kB / 470.2 MB, free: 2.387 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.6589, allocations: 435.5 kB / 470.6 MB, free: 1.953 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.6599, allocations: 110.5 kB / 470.8 MB, free: 1.844 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.6635, allocations: 1.045 MB / 471.8 MB, free: 0.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007327/0.6643, allocations: 0.9634 MB / 472.8 MB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007937/0.6651, allocations: 120.8 kB / 472.9 MB, free: 15.64 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004294/0.6655, allocations: 223.4 kB / 473.1 MB, free: 15.42 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6656, allocations: 0 / 473.1 MB, free: 15.42 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05767/0.7232, allocations: 16 MB / 489.1 MB, free: 15.71 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003522/0.7236, allocations: 242.5 kB / 489.3 MB, free: 15.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.148/3.872, allocations: 0 / 489.3 MB, free: 15.4 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat