Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.905/1.905, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.469e-05, allocations: 4 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.09236, allocations: 44.52 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4646/0.5571, allocations: 82.63 MB / 382.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003977/0.5575, allocations: 87.55 kB / 382.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04664/0.6042, allocations: 10.55 MB / 393.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6043, allocations: 0 / 393.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.159e-05/0.6043, allocations: 23.16 kB / 393.2 MB, free: 11.64 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.001923/0.6063, allocations: 0.8581 MB / 394.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.6063, allocations: 7.781 kB / 394.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/0.6065, allocations: 108.6 kB / 394.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.6067, allocations: 82.52 kB / 394.3 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009687/0.6076, allocations: 491.5 kB / 394.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.146e-05/0.6077, allocations: 52.34 kB / 394.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.6078, allocations: 65.42 kB / 394.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.6093, allocations: 0.6511 MB / 395.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.6093, allocations: 3.906 kB / 395.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.91e-05/0.6094, allocations: 30.67 kB / 395.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.6095, allocations: 11.84 kB / 395.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.6106, allocations: 483.4 kB / 396.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004855/0.6155, allocations: 2.587 MB / 398.6 MB, free: 9.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.6171, allocations: 0.5549 MB / 399.2 MB, free: 9.484 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007902/0.618, allocations: 304.9 kB / 399.5 MB, free: 9.473 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.618, allocations: 4.406 kB / 399.5 MB, free: 9.473 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000702/0.6187, allocations: 334.7 kB / 399.8 MB, free: 9.395 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.397e-06/0.6188, allocations: 0 / 399.8 MB, free: 9.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.00131/0.6201, allocations: 0.5057 MB / 400.3 MB, free: 9.316 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.6202, allocations: 111 kB / 400.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007299/0.6209, allocations: 421.7 kB / 400.9 MB, free: 9.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.804e-05/0.621, allocations: 43.83 kB / 400.9 MB, free: 9.039 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/0.6212, allocations: 351.3 kB / 401.2 MB, free: 8.812 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.6214, allocations: 164.6 kB / 401.4 MB, free: 8.715 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/0.6215, allocations: 14.5 kB / 401.4 MB, free: 8.711 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.253e-05/0.6216, allocations: 337 kB / 401.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004491/0.622, allocations: 173 kB / 401.9 MB, free: 8.391 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005451/0.6226, allocations: 332 kB / 402.2 MB, free: 8.215 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004626/0.6231, allocations: 191.2 kB / 402.4 MB, free: 8.199 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.6231, allocations: 4 kB / 402.4 MB, free: 8.195 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001373/0.6245, allocations: 0.6015 MB / 403 MB, free: 8.105 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003146/0.6248, allocations: 1.577 MB / 404.6 MB, free: 6.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.6248, allocations: 7.844 kB / 404.6 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007172/0.6255, allocations: 141 kB / 404.8 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005801/0.6261, allocations: 89.61 kB / 404.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/0.6298, allocations: 2.314 MB / 407.2 MB, free: 21.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007947/0.6306, allocations: 88.16 kB / 407.2 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.261e-05/0.6307, allocations: 27.28 kB / 407.3 MB, free: 21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.6307, allocations: 5.031 kB / 407.3 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001253/0.6319, allocations: 0.554 MB / 407.8 MB, free: 20.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.632, allocations: 11.86 kB / 407.8 MB, free: 20.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005674/0.6325, allocations: 149.2 kB / 408 MB, free: 20.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004901/0.6331, allocations: 77.84 kB / 408.1 MB, free: 20.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003483/0.6366, allocations: 2.298 MB / 410.4 MB, free: 19.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.6371, allocations: 65.62 kB / 410.4 MB, free: 19.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.866e-05/0.6372, allocations: 25.44 kB / 410.4 MB, free: 19.32 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: 27 ($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,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 (59): * Single equations (assignments): 58 * 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.0002343/0.6374, allocations: 151.4 kB / 410.6 MB, free: 19.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.6376, allocations: 58.72 kB / 410.7 MB, free: 19.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000197/0.6378, allocations: 69.8 kB / 410.7 MB, free: 19.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.6378, allocations: 7.75 kB / 410.7 MB, free: 19.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.6378, allocations: 0 / 410.7 MB, free: 19.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.6378, allocations: 3.984 kB / 410.7 MB, free: 19.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002604/0.6404, allocations: 1.321 MB / 412.1 MB, free: 18.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.6405, allocations: 0 / 412.1 MB, free: 18.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.6408, allocations: 42.45 kB / 412.1 MB, free: 18.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005846/0.6414, allocations: 143.4 kB / 412.2 MB, free: 18.55 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.677e-05/0.6415, allocations: 14.33 kB / 412.2 MB, free: 18.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003556/0.6451, allocations: 2.308 MB / 414.6 MB, free: 17.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6451, allocations: 0 / 414.6 MB, free: 17.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.6469, allocations: 0.8749 MB / 415.4 MB, free: 16.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.6472, allocations: 185.2 kB / 415.6 MB, free: 16.61 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.6474, allocations: 10.47 kB / 415.6 MB, free: 16.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005804/0.648, allocations: 46.39 kB / 415.7 MB, free: 16.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.6482, allocations: 61.98 kB / 415.7 MB, free: 16.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.662e-05/0.6482, allocations: 19.36 kB / 415.7 MB, free: 16.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005368/0.6488, allocations: 319.3 kB / 416.1 MB, free: 16.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6488, allocations: 0 / 416.1 MB, free: 16.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00131/0.6501, allocations: 318.6 kB / 416.4 MB, free: 16.42 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: 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,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_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * 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.00222/0.6524, allocations: 1.526 MB / 417.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002399/0.6548, allocations: 1.125 MB / 419 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.6548, allocations: 3.875 kB / 419 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008393/0.6556, allocations: 433.3 kB / 419.4 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007721/0.6564, allocations: 100.5 kB / 419.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.6592, allocations: 1.009 MB / 420.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005798/0.6598, allocations: 0.9373 MB / 421.5 MB, free: 13.69 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003778/0.6602, allocations: 221.4 kB / 421.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6602, allocations: 3.938 kB / 421.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.946/3.606, allocations: 13.19 MB / 434.9 MB, free: 7.105 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat