Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.24/2.24, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.27e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 50.42 MB / 342.7 MB, free: 6.281 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4526/0.561, allocations: 85.81 MB / 428.5 MB, free: 8.012 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004078/0.5615, allocations: 89.05 kB / 428.6 MB, free: 7.961 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09293/0.6544, allocations: 20.8 MB / 449.4 MB, free: 6.453 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6545, allocations: 0 / 449.4 MB, free: 6.453 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000119/0.6546, allocations: 31.94 kB / 449.4 MB, free: 6.422 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004057/0.6587, allocations: 1.296 MB / 450.7 MB, free: 5.148 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.6588, allocations: 8.031 kB / 450.7 MB, free: 5.141 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004981/0.6593, allocations: 159.9 kB / 450.8 MB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004446/0.6597, allocations: 146.3 kB / 451 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006638/0.6664, allocations: 1.674 MB / 452.7 MB, free: 3.531 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.9e-05/0.6665, allocations: 74.25 kB / 452.7 MB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/0.6668, allocations: 96.19 kB / 452.8 MB, free: 3.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003298/0.6701, allocations: 1.377 MB / 454.2 MB, free: 2.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.896e-05/0.6702, allocations: 0 / 454.2 MB, free: 2.469 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.6703, allocations: 43.88 kB / 454.2 MB, free: 2.457 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-05/0.6704, allocations: 41.98 kB / 454.3 MB, free: 2.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002914/0.6733, allocations: 1.161 MB / 455.4 MB, free: 1.703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.6838, allocations: 4.359 MB / 459.8 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002934/0.6868, allocations: 1.932 MB / 461.7 MB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001964/0.6888, allocations: 0.7202 MB / 462.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.538e-05/0.6889, allocations: 8.781 kB / 462.5 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.6903, allocations: 0.5746 MB / 463 MB, free: 9.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=75): time 3.487e-06/0.6903, allocations: 0 / 463 MB, free: 9.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=75): time 0.003401/0.6937, allocations: 1.23 MB / 464.3 MB, free: 8.672 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.021e-05/0.6938, allocations: 115.6 kB / 464.4 MB, free: 8.535 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/0.6955, allocations: 0.7224 MB / 465.1 MB, free: 7.809 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.6957, allocations: 45.69 kB / 465.2 MB, free: 7.758 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005589/0.6962, allocations: 0.4944 MB / 465.6 MB, free: 7.258 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003168/0.6966, allocations: 236.6 kB / 465.9 MB, free: 7.023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.6966, allocations: 12 kB / 465.9 MB, free: 7.012 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.6968, allocations: 342.8 kB / 466.2 MB, free: 6.668 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009185/0.6978, allocations: 373.3 kB / 466.6 MB, free: 6.301 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.6988, allocations: 0.5059 MB / 467.1 MB, free: 5.742 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.6998, allocations: 423 kB / 467.5 MB, free: 5.332 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.6999, allocations: 0 / 467.5 MB, free: 5.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002997/0.7029, allocations: 1.19 MB / 468.7 MB, free: 4.133 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.7029, allocations: 8 kB / 468.7 MB, free: 4.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.703, allocations: 4 kB / 468.7 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001848/0.7048, allocations: 460.8 kB / 469.2 MB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007106/0.7055, allocations: 95.83 kB / 469.3 MB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/0.7166, allocations: 5.085 MB / 474.3 MB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.7177, allocations: 95.52 kB / 474.4 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.52e-05/0.7178, allocations: 27.98 kB / 474.5 MB, free: 14.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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 {6 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002774/0.7181, allocations: 154.6 kB / 474.6 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.7183, allocations: 86.97 kB / 474.7 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003549/0.7187, allocations: 112.5 kB / 474.8 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.7187, allocations: 4 kB / 474.8 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.7187, allocations: 7.938 kB / 474.8 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.7187, allocations: 7.984 kB / 474.8 MB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006395/0.7251, allocations: 2.576 MB / 477.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.7252, allocations: 0 / 477.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005836/0.7258, allocations: 67.89 kB / 477.5 MB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.7275, allocations: 456.5 kB / 477.9 MB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.7276, allocations: 12 kB / 477.9 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/0.7382, allocations: 5.063 MB / 483 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7382, allocations: 0 / 483 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004345/0.7426, allocations: 1.861 MB / 484.8 MB, free: 3.594 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007465/0.7434, allocations: 271.9 kB / 485.1 MB, free: 3.309 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/0.7436, allocations: 16 kB / 485.1 MB, free: 3.293 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007967/0.7444, allocations: 43.95 kB / 485.2 MB, free: 3.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.7448, allocations: 84.66 kB / 485.3 MB, free: 3.164 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.257e-05/0.7449, allocations: 16 kB / 485.3 MB, free: 3.148 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001233/0.7461, allocations: 0.5849 MB / 485.9 MB, free: 2.566 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7461, allocations: 0 / 485.9 MB, free: 2.566 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001523/0.7477, allocations: 339.1 kB / 486.2 MB, free: 2.234 MB / 394.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: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {6 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.00472/0.7524, allocations: 2.451 MB / 488.6 MB, free: 15.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003192/0.7556, allocations: 1.197 MB / 489.8 MB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.7557, allocations: 3.938 kB / 489.8 MB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.7577, allocations: 0.771 MB / 490.6 MB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.7597, allocations: 247 kB / 490.9 MB, free: 13.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00673/0.7665, allocations: 2.117 MB / 493 MB, free: 11.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.768, allocations: 1.319 MB / 494.3 MB, free: 10.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000862/0.7689, allocations: 375.3 kB / 494.7 MB, free: 9.648 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.769, allocations: 0 / 494.7 MB, free: 9.648 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.059/3.828, allocations: 25.71 MB / 0.5082 GB, free: 32 kB / 426.7 MB