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.997/1.997, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.216e-05/3.234e-05, allocations: 8 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3125, allocations: 44.5 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1847/0.4973, allocations: 81.97 MB / 376.2 MB, free: 15.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00049/0.4978, allocations: 91.94 kB / 376.3 MB, free: 15.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0583/0.5562, allocations: 10.42 MB / 386.7 MB, free: 5.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.25e-06/0.5562, allocations: 0 / 386.7 MB, free: 5.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.359e-05/0.5563, allocations: 19.92 kB / 386.7 MB, free: 5.301 MB / 330.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.002248/0.5586, allocations: 0.8641 MB / 387.6 MB, free: 4.387 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.5586, allocations: 12.03 kB / 387.6 MB, free: 4.375 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.5588, allocations: 83.02 kB / 387.7 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.56, allocations: 0.4884 MB / 388.2 MB, free: 3.762 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.56, allocations: 27.94 kB / 388.2 MB, free: 3.734 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.5602, allocations: 36 kB / 388.2 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00127/0.5615, allocations: 442.5 kB / 388.7 MB, free: 3.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.563, allocations: 0.5668 MB / 389.2 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.563, allocations: 7.906 kB / 389.2 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.834e-05/0.5631, allocations: 0 / 389.2 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.5631, allocations: 19.94 kB / 389.3 MB, free: 2.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005554/0.5687, allocations: 2.455 MB / 391.7 MB, free: 92 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.5705, allocations: 0.531 MB / 392.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005633/0.5711, allocations: 238.5 kB / 392.5 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.05e-05/0.5712, allocations: 8.438 kB / 392.5 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007415/0.5719, allocations: 309.4 kB / 392.8 MB, free: 14.97 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 3.406e-06/0.5719, allocations: 4 kB / 392.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.001366/0.5733, allocations: 479.2 kB / 393.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.5734, allocations: 116 kB / 393.4 MB, free: 14.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006783/0.5741, allocations: 365.1 kB / 393.7 MB, free: 13.99 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.5743, allocations: 29.7 kB / 393.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003274/0.5746, allocations: 354.7 kB / 394.1 MB, free: 13.61 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.5748, allocations: 153.7 kB / 394.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.5749, allocations: 0 / 394.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.575, allocations: 334.8 kB / 394.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00044/0.5755, allocations: 169.5 kB / 394.7 MB, free: 12.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.5761, allocations: 316.4 kB / 395.1 MB, free: 12.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.5766, allocations: 178.1 kB / 395.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.5766, allocations: 4 kB / 395.2 MB, free: 12.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001438/0.578, allocations: 0.5345 MB / 395.8 MB, free: 11.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007085/0.5788, allocations: 1.58 MB / 397.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.5788, allocations: 4 kB / 397.4 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007532/0.5796, allocations: 148.7 kB / 397.5 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006184/0.5802, allocations: 91.83 kB / 397.6 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004006/0.5842, allocations: 2.251 MB / 399.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007611/0.585, allocations: 79.53 kB / 399.9 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.199e-05/0.5851, allocations: 28 kB / 399.9 MB, free: 7.445 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.5851, allocations: 4 kB / 399.9 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001316/0.5864, allocations: 489.9 kB / 400.4 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.5865, allocations: 4 kB / 400.4 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005777/0.587, allocations: 145.3 kB / 400.6 MB, free: 6.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/0.5876, allocations: 79.83 kB / 400.7 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003736/0.5913, allocations: 2.217 MB / 402.9 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.5919, allocations: 59.66 kB / 402.9 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.942e-05/0.5919, allocations: 31.94 kB / 403 MB, free: 4.312 MB / 346.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.0002429/0.5922, allocations: 131.8 kB / 403.1 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001234/0.5934, allocations: 487.2 kB / 403.6 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.5936, allocations: 51.34 kB / 403.6 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000192/0.5938, allocations: 61 kB / 403.7 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.5938, allocations: 7.953 kB / 403.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.5938, allocations: 0 / 403.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.5938, allocations: 0 / 403.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/0.5965, allocations: 1.179 MB / 404.9 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.5965, allocations: 0 / 404.9 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/0.5969, allocations: 43.92 kB / 404.9 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006074/0.5975, allocations: 132.8 kB / 405 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.5976, allocations: 11.98 kB / 405 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003774/0.6014, allocations: 2.238 MB / 407.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6014, allocations: 0 / 407.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.6033, allocations: 0.8079 MB / 408.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003246/0.6037, allocations: 176.4 kB / 408.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.6038, allocations: 7.938 kB / 408.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005525/0.6044, allocations: 31.95 kB / 408.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.6046, allocations: 64.47 kB / 408.4 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.6047, allocations: 16 kB / 408.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004556/0.6051, allocations: 274.9 kB / 408.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6051, allocations: 0 / 408.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001555/0.6067, allocations: 291 kB / 408.9 MB, free: 14.12 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.002284/0.609, allocations: 1.367 MB / 410.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002504/0.6115, allocations: 1.058 MB / 411.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.6115, allocations: 3.984 kB / 411.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008808/0.6124, allocations: 412.7 kB / 411.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007306/0.6132, allocations: 82.17 kB / 411.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.6163, allocations: 0.9572 MB / 412.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007046/0.6171, allocations: 0.9424 MB / 413.7 MB, free: 9.168 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004757/0.6176, allocations: 219.3 kB / 414 MB, free: 8.957 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6176, allocations: 0 / 414 MB, free: 8.957 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.145/3.762, allocations: 12.83 MB / 426.8 MB, free: 105.8 MB / 362.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