Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.675e-05, allocations: 0 / 292.1 MB, free: 8.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09025, allocations: 50.42 MB / 342.6 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3634/0.4537, allocations: 86.92 MB / 429.5 MB, free: 7.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.454, allocations: 85.45 kB / 429.6 MB, free: 7.203 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05486/0.5089, allocations: 15.33 MB / 444.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.957e-06/0.5089, allocations: 0 / 444.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.871e-05/0.509, allocations: 27.98 kB / 444.9 MB, free: 10.27 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.002287/0.5113, allocations: 1.053 MB / 446 MB, free: 9.223 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.5113, allocations: 8.031 kB / 446 MB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002575/0.5116, allocations: 110.7 kB / 446.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.5129, allocations: 0.6366 MB / 446.7 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.102e-05/0.513, allocations: 72.09 kB / 446.8 MB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/0.5132, allocations: 94.45 kB / 446.9 MB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.5153, allocations: 0.8995 MB / 447.8 MB, free: 7.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.5154, allocations: 3.938 kB / 447.8 MB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.5155, allocations: 36.88 kB / 447.8 MB, free: 7.828 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.5155, allocations: 20 kB / 447.9 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.5173, allocations: 0.6616 MB / 448.5 MB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006889/0.5242, allocations: 3.725 MB / 452.2 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.5259, allocations: 0.7505 MB / 453 MB, free: 4.102 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000949/0.5269, allocations: 437.4 kB / 453.4 MB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.131e-05/0.527, allocations: 8.781 kB / 453.4 MB, free: 3.824 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.528, allocations: 449.3 kB / 453.9 MB, free: 3.414 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 4.49e-06/0.528, allocations: 0 / 453.9 MB, free: 3.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.002329/0.5304, allocations: 0.8444 MB / 454.7 MB, free: 2.559 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.955e-05/0.5305, allocations: 119.6 kB / 454.8 MB, free: 2.418 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.5317, allocations: 0.5855 MB / 455.4 MB, free: 1.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.223e-05/0.5318, allocations: 41.7 kB / 455.4 MB, free: 1.781 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003817/0.5322, allocations: 383.1 kB / 455.8 MB, free: 1.402 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/0.5325, allocations: 244.5 kB / 456.1 MB, free: 1.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.228e-05/0.5325, allocations: 12 kB / 456.1 MB, free: 1.148 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.5327, allocations: 338.8 kB / 456.4 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006394/0.5334, allocations: 241.5 kB / 456.6 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007779/0.5342, allocations: 381.7 kB / 457 MB, free: 152 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006985/0.5349, allocations: 279.8 kB / 457.3 MB, free: 15.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.188e-06/0.5349, allocations: 4 kB / 457.3 MB, free: 15.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002113/0.5371, allocations: 0.8632 MB / 458.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007795/0.5379, allocations: 1.332 MB / 459.5 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.5379, allocations: 4 kB / 459.5 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.5392, allocations: 325.5 kB / 459.8 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000522/0.5397, allocations: 91.83 kB / 459.9 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007169/0.5469, allocations: 3.628 MB / 463.5 MB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008317/0.5478, allocations: 95.34 kB / 463.6 MB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-05/0.5479, allocations: 31.98 kB / 463.7 MB, free: 9.242 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.5479, allocations: 7.938 kB / 463.7 MB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002045/0.55, allocations: 0.8136 MB / 464.5 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.55, allocations: 4 kB / 464.5 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.5511, allocations: 313.3 kB / 464.8 MB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.5516, allocations: 91.83 kB / 464.9 MB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007051/0.5586, allocations: 3.599 MB / 468.5 MB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/0.5593, allocations: 63.52 kB / 468.5 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.548e-05/0.5594, allocations: 28 kB / 468.6 MB, free: 4.184 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 1 * 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 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0003088/0.5597, allocations: 168.8 kB / 468.7 MB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002693/0.56, allocations: 82.97 kB / 468.8 MB, free: 3.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.5603, allocations: 100.3 kB / 468.9 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.5603, allocations: 8 kB / 468.9 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5603, allocations: 0 / 468.9 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.5603, allocations: 3.984 kB / 468.9 MB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004131/0.5645, allocations: 1.915 MB / 470.8 MB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.984e-06/0.5645, allocations: 0 / 470.8 MB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004276/0.565, allocations: 59.91 kB / 470.9 MB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/0.5662, allocations: 316.8 kB / 471.2 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-05/0.5663, allocations: 15.98 kB / 471.2 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00703/0.5733, allocations: 3.643 MB / 474.9 MB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5734, allocations: 480 / 474.9 MB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00301/0.5764, allocations: 1.299 MB / 476.2 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005066/0.5769, allocations: 255.8 kB / 476.4 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.5771, allocations: 19.98 kB / 476.4 MB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005783/0.5777, allocations: 35.97 kB / 476.5 MB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002588/0.5779, allocations: 84.66 kB / 476.5 MB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.601e-05/0.578, allocations: 24 kB / 476.6 MB, free: 11.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008639/0.5789, allocations: 459.2 kB / 477 MB, free: 11.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.5789, allocations: 0 / 477 MB, free: 11.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001682/0.5806, allocations: 439.1 kB / 477.4 MB, free: 11.05 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002609/0.5809, allocations: 149.9 kB / 477.6 MB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003671/0.5846, allocations: 1.694 MB / 479.3 MB, free: 9.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.077e-06/0.5846, allocations: 0.875 kB / 479.3 MB, free: 9.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.586, allocations: 0.633 MB / 479.9 MB, free: 8.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009325/0.5869, allocations: 169 kB / 480.1 MB, free: 8.355 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.5905, allocations: 1.226 MB / 481.3 MB, free: 7.098 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000927/0.5914, allocations: 1.015 MB / 482.3 MB, free: 6.051 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.5917, allocations: 47.44 kB / 482.4 MB, free: 6.004 MB / 394.7 MB Notification: Performance of SimCode: time 1.883e-06/0.5917, allocations: 0 / 482.4 MB, free: 6.004 MB / 394.7 MB Notification: Performance of Templates: time 0.02605/0.6177, allocations: 14.64 MB / 497 MB, free: 7.426 MB / 410.7 MB