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 2.091/2.091, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.121e-05/4.132e-05, allocations: 9.406 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.09925, allocations: 44.49 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.5478, allocations: 82.64 MB / 382.6 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.5482, allocations: 85.44 kB / 382.7 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04255/0.5907, allocations: 10.56 MB / 393.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5908, allocations: 0 / 393.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.342e-05/0.5909, allocations: 19.28 kB / 393.3 MB, free: 11.69 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.002423/0.5933, allocations: 0.8636 MB / 394.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.5934, allocations: 11.75 kB / 394.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003101/0.5937, allocations: 100.8 kB / 394.2 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002628/0.594, allocations: 89.67 kB / 394.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.5954, allocations: 498.3 kB / 394.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.174e-05/0.5955, allocations: 48.47 kB / 394.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.5957, allocations: 64.5 kB / 394.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.5973, allocations: 0.6452 MB / 395.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.663e-05/0.5974, allocations: 3.906 kB / 395.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.783e-05/0.5975, allocations: 30.19 kB / 395.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.5975, allocations: 11.69 kB / 395.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.5988, allocations: 472.5 kB / 396.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005741/0.6046, allocations: 2.581 MB / 398.7 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.6063, allocations: 0.5493 MB / 399.2 MB, free: 9.551 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008281/0.6072, allocations: 310.1 kB / 399.5 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.667e-05/0.6072, allocations: 4.219 kB / 399.5 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007351/0.608, allocations: 334.3 kB / 399.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.797e-06/0.608, allocations: 0 / 399.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.001395/0.6094, allocations: 0.5064 MB / 400.3 MB, free: 9.375 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.453e-05/0.6095, allocations: 114.9 kB / 400.5 MB, free: 9.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008025/0.6104, allocations: 422.5 kB / 400.9 MB, free: 9.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.6105, allocations: 45.17 kB / 400.9 MB, free: 9.098 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.6107, allocations: 344.7 kB / 401.3 MB, free: 8.875 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.6109, allocations: 162.2 kB / 401.4 MB, free: 8.777 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.41e-05/0.611, allocations: 7.688 kB / 401.4 MB, free: 8.777 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.277e-05/0.6111, allocations: 337.8 kB / 401.7 MB, free: 8.465 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.6115, allocations: 178.4 kB / 401.9 MB, free: 8.453 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.6121, allocations: 329.8 kB / 402.2 MB, free: 8.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004695/0.6125, allocations: 196.9 kB / 402.4 MB, free: 8.262 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.6126, allocations: 3.969 kB / 402.4 MB, free: 8.262 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00136/0.6139, allocations: 0.5863 MB / 403 MB, free: 8.172 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003492/0.6143, allocations: 1.57 MB / 404.6 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.6143, allocations: 4.734 kB / 404.6 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007648/0.6151, allocations: 147.8 kB / 404.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006188/0.6157, allocations: 84.22 kB / 404.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00391/0.6197, allocations: 2.322 MB / 407.2 MB, free: 21.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008926/0.6206, allocations: 93.98 kB / 407.2 MB, free: 21.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.907e-05/0.6207, allocations: 22.47 kB / 407.3 MB, free: 21.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.6207, allocations: 6.688 kB / 407.3 MB, free: 21.07 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001312/0.622, allocations: 0.5496 MB / 407.8 MB, free: 20.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.6221, allocations: 3.812 kB / 407.8 MB, free: 20.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005977/0.6227, allocations: 146.2 kB / 408 MB, free: 20.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000522/0.6232, allocations: 80.72 kB / 408 MB, free: 20.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0036/0.6268, allocations: 2.297 MB / 410.3 MB, free: 19.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006271/0.6275, allocations: 65.58 kB / 410.4 MB, free: 19.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.853e-05/0.6276, allocations: 22.25 kB / 410.4 MB, free: 19.41 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.0002676/0.6279, allocations: 159.2 kB / 410.6 MB, free: 19.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.6281, allocations: 54.28 kB / 410.6 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002003/0.6283, allocations: 67.61 kB / 410.7 MB, free: 19.24 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.6283, allocations: 7.594 kB / 410.7 MB, free: 19.24 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.6283, allocations: 8 kB / 410.7 MB, free: 19.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.6283, allocations: 0 / 410.7 MB, free: 19.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002774/0.6311, allocations: 1.321 MB / 412 MB, free: 18.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.6312, allocations: 0 / 412 MB, free: 18.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.6315, allocations: 45.86 kB / 412.1 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006164/0.6322, allocations: 139.4 kB / 412.2 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.597e-05/0.6323, allocations: 6.688 kB / 412.2 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00366/0.6359, allocations: 2.311 MB / 414.5 MB, free: 17.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.636, allocations: 0 / 414.5 MB, free: 17.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.6379, allocations: 0.8784 MB / 415.4 MB, free: 16.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004065/0.6384, allocations: 189.7 kB / 415.6 MB, free: 16.7 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.6385, allocations: 10.78 kB / 415.6 MB, free: 16.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006076/0.6391, allocations: 42.41 kB / 415.7 MB, free: 16.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.6394, allocations: 62.28 kB / 415.7 MB, free: 16.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.807e-05/0.6394, allocations: 22.98 kB / 415.7 MB, free: 16.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005524/0.64, allocations: 322.5 kB / 416.1 MB, free: 16.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.64, allocations: 0 / 416.1 MB, free: 16.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001525/0.6415, allocations: 320 kB / 416.4 MB, free: 16.51 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.002343/0.6439, allocations: 1.515 MB / 417.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.6465, allocations: 1.088 MB / 419 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.6465, allocations: 1.312 kB / 419 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009195/0.6474, allocations: 425.1 kB / 419.4 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009111/0.6484, allocations: 101.1 kB / 419.5 MB, free: 15.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.6517, allocations: 1.009 MB / 420.5 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.6524, allocations: 0.9375 MB / 421.4 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004508/0.6528, allocations: 218.3 kB / 421.6 MB, free: 13.79 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/0.6529, allocations: 3.812 kB / 421.6 MB, free: 13.79 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.085/3.738, allocations: 13.15 MB / 434.8 MB, free: 7.25 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