Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.608e-05/2.615e-05, allocations: 6.797 kB / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09878/0.09883, allocations: 50.41 MB / 343.1 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4271/0.526, allocations: 86.86 MB / 430 MB, free: 7.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.5263, allocations: 85.12 kB / 430 MB, free: 7.375 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05422/0.5806, allocations: 15.33 MB / 445.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.5806, allocations: 0 / 445.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.332e-05/0.5807, allocations: 20 kB / 445.4 MB, free: 10.45 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.002258/0.583, allocations: 1.058 MB / 446.5 MB, free: 9.395 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.583, allocations: 12.03 kB / 446.5 MB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.5833, allocations: 110.7 kB / 446.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.5845, allocations: 0.6384 MB / 447.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.733e-05/0.5846, allocations: 66.19 kB / 447.3 MB, free: 8.715 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00017/0.5848, allocations: 84.95 kB / 447.4 MB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.5868, allocations: 0.9122 MB / 448.3 MB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.5869, allocations: 0 / 448.3 MB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.587, allocations: 38.31 kB / 448.3 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-05/0.587, allocations: 20 kB / 448.3 MB, free: 7.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.5887, allocations: 0.6625 MB / 449 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006479/0.5952, allocations: 3.724 MB / 452.7 MB, free: 4.691 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.597, allocations: 0.7518 MB / 453.5 MB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.598, allocations: 437.8 kB / 453.9 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.658e-05/0.5981, allocations: 12.77 kB / 453.9 MB, free: 3.629 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.5991, allocations: 435.8 kB / 454.3 MB, free: 3.184 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 4.624e-06/0.5991, allocations: 4 kB / 454.3 MB, free: 3.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.002256/0.6014, allocations: 0.8522 MB / 455.2 MB, free: 2.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.549e-05/0.6015, allocations: 115.6 kB / 455.3 MB, free: 2.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.6026, allocations: 0.5855 MB / 455.9 MB, free: 1.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.103e-05/0.6027, allocations: 49.7 kB / 455.9 MB, free: 1.535 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004097/0.6032, allocations: 360.6 kB / 456.3 MB, free: 1.176 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/0.6035, allocations: 240.6 kB / 456.5 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.504e-05/0.6035, allocations: 16 kB / 456.5 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002569/0.6038, allocations: 382.8 kB / 456.9 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006182/0.6044, allocations: 241.6 kB / 457.1 MB, free: 312 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007901/0.6053, allocations: 381.7 kB / 457.5 MB, free: 15.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006681/0.6059, allocations: 283.8 kB / 457.8 MB, free: 15.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.417e-06/0.606, allocations: 8 kB / 457.8 MB, free: 15.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002176/0.6081, allocations: 0.8939 MB / 458.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007746/0.6089, allocations: 1.344 MB / 460 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.609, allocations: 4 kB / 460 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.6102, allocations: 313.5 kB / 460.4 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005258/0.6108, allocations: 103.8 kB / 460.5 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006997/0.6178, allocations: 3.627 MB / 464.1 MB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000793/0.6186, allocations: 95.34 kB / 464.2 MB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-05/0.6187, allocations: 24 kB / 464.2 MB, free: 8.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.6187, allocations: 4 kB / 464.2 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002006/0.6208, allocations: 0.8174 MB / 465 MB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.6208, allocations: 4 kB / 465 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.6219, allocations: 333.4 kB / 465.3 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.6224, allocations: 79.91 kB / 465.4 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00691/0.6294, allocations: 3.626 MB / 469.1 MB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007332/0.6301, allocations: 79.34 kB / 469.1 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-05/0.6302, allocations: 28 kB / 469.2 MB, free: 3.82 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.0003034/0.6305, allocations: 168.8 kB / 469.3 MB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.6307, allocations: 90.95 kB / 469.4 MB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000264/0.631, allocations: 92.27 kB / 469.5 MB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.6311, allocations: 8 kB / 469.5 MB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.523e-06/0.6311, allocations: 0 / 469.5 MB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.6311, allocations: 7.984 kB / 469.5 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003963/0.6351, allocations: 1.911 MB / 471.4 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.6351, allocations: 0 / 471.4 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.6355, allocations: 67.91 kB / 471.5 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.6366, allocations: 312.8 kB / 471.8 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.828e-05/0.6367, allocations: 16 kB / 471.8 MB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006842/0.6436, allocations: 3.635 MB / 475.4 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.033e-06/0.6436, allocations: 0 / 475.4 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002954/0.6466, allocations: 1.303 MB / 476.8 MB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005134/0.6471, allocations: 259.8 kB / 477 MB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.6473, allocations: 16 kB / 477 MB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005736/0.6479, allocations: 35.97 kB / 477.1 MB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.6481, allocations: 88.59 kB / 477.1 MB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.603e-05/0.6482, allocations: 31.98 kB / 477.2 MB, free: 11.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008587/0.6491, allocations: 455.2 kB / 477.6 MB, free: 11.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.78e-07/0.6491, allocations: 0 / 477.6 MB, free: 11.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001685/0.6508, allocations: 443.2 kB / 478.1 MB, free: 10.67 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.0002601/0.6511, allocations: 142.3 kB / 478.2 MB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003709/0.6548, allocations: 1.725 MB / 479.9 MB, free: 8.754 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.042e-06/0.6549, allocations: 0 / 479.9 MB, free: 8.754 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.6562, allocations: 0.6332 MB / 480.5 MB, free: 8.113 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008808/0.6571, allocations: 162.8 kB / 480.7 MB, free: 7.953 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003385/0.6605, allocations: 1.199 MB / 481.9 MB, free: 6.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000915/0.6614, allocations: 1.012 MB / 482.9 MB, free: 5.688 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006582/0.6621, allocations: 114.6 kB / 483 MB, free: 5.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.6623, allocations: 39.42 kB / 483.1 MB, free: 5.531 MB / 394.7 MB Notification: Performance of SimCode: time 1.425e-06/0.6623, allocations: 0 / 483.1 MB, free: 5.531 MB / 394.7 MB Notification: Performance of Templates: time 0.04166/0.7039, allocations: 17.12 MB / 0.4885 GB, free: 4.641 MB / 410.7 MB