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_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 1.807/1.807, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.29e-05/2.309e-05, allocations: 0 / 255.4 MB, free: 2.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07538/0.07543, allocations: 44.5 MB / 299.9 MB, free: 6.105 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3608/0.4363, allocations: 79.79 MB / 379.7 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.008741/0.4451, allocations: 86.23 kB / 379.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08083/0.526, allocations: 14.73 MB / 394.5 MB, free: 19.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.21e-06/0.526, allocations: 0 / 394.5 MB, free: 19.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.404e-05/0.5261, allocations: 23.66 kB / 394.5 MB, free: 19.53 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.002062/0.5282, allocations: 1.045 MB / 395.6 MB, free: 18.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.5282, allocations: 11.72 kB / 395.6 MB, free: 18.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002284/0.5285, allocations: 117 kB / 395.7 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.5297, allocations: 0.6266 MB / 396.3 MB, free: 18.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.5298, allocations: 64.03 kB / 396.4 MB, free: 18.51 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/0.53, allocations: 88.72 kB / 396.5 MB, free: 18.51 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.5319, allocations: 0.9045 MB / 397.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.372e-05/0.532, allocations: 0 / 397.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.5321, allocations: 32.31 kB / 397.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.5322, allocations: 27.44 kB / 397.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.5338, allocations: 0.6584 MB / 398.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/0.5393, allocations: 3.715 MB / 401.8 MB, free: 16.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.5408, allocations: 0.7449 MB / 402.5 MB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008085/0.5417, allocations: 445 kB / 403 MB, free: 16.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.486e-05/0.5417, allocations: 11.67 kB / 403 MB, free: 16.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008397/0.5426, allocations: 445.1 kB / 403.4 MB, free: 16.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 4.21e-06/0.5426, allocations: 0 / 403.4 MB, free: 16.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.00198/0.5446, allocations: 0.8374 MB / 404.3 MB, free: 16.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.5447, allocations: 123.2 kB / 404.4 MB, free: 16.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009116/0.5456, allocations: 0.588 MB / 405 MB, free: 16.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-05/0.5457, allocations: 40.36 kB / 405 MB, free: 16.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.546, allocations: 355.9 kB / 405.4 MB, free: 16.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.5462, allocations: 243.9 kB / 405.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/0.5462, allocations: 14.56 kB / 405.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.5464, allocations: 386 kB / 406 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005686/0.5469, allocations: 239.4 kB / 406.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006579/0.5476, allocations: 379.6 kB / 406.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.5482, allocations: 284.7 kB / 406.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.5483, allocations: 3.938 kB / 406.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001821/0.5501, allocations: 0.899 MB / 407.8 MB, free: 15.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002793/0.5504, allocations: 1.351 MB / 409.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.5504, allocations: 7.812 kB / 409.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.5516, allocations: 310 kB / 409.4 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.5521, allocations: 95.03 kB / 409.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006077/0.5582, allocations: 3.636 MB / 413.2 MB, free: 28.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007605/0.559, allocations: 92.64 kB / 413.3 MB, free: 28.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.66e-05/0.5591, allocations: 26.88 kB / 413.3 MB, free: 28.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.5591, allocations: 3.906 kB / 413.3 MB, free: 28.3 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001768/0.5609, allocations: 0.8175 MB / 414.1 MB, free: 28.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.182e-06/0.5609, allocations: 0 / 414.1 MB, free: 28.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.562, allocations: 324.7 kB / 414.4 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003963/0.5624, allocations: 81.58 kB / 414.5 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005969/0.5684, allocations: 3.622 MB / 418.1 MB, free: 26.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007518/0.5692, allocations: 75.84 kB / 418.2 MB, free: 26.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.177e-05/0.5693, allocations: 29.97 kB / 418.2 MB, free: 26.69 MB / 330.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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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.0002696/0.5696, allocations: 162.7 kB / 418.4 MB, free: 26.56 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.5698, allocations: 93.55 kB / 418.5 MB, free: 26.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.57, allocations: 93.58 kB / 418.6 MB, free: 26.49 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.79e-06/0.57, allocations: 7.812 kB / 418.6 MB, free: 26.49 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.186e-06/0.57, allocations: 3.906 kB / 418.6 MB, free: 26.49 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.5701, allocations: 7.922 kB / 418.6 MB, free: 26.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003378/0.5735, allocations: 1.917 MB / 420.5 MB, free: 25.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.578e-06/0.5735, allocations: 0 / 420.5 MB, free: 25.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/0.5739, allocations: 54.69 kB / 420.6 MB, free: 25.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.575, allocations: 320.6 kB / 420.9 MB, free: 25.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/0.5751, allocations: 15.59 kB / 420.9 MB, free: 25.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005982/0.5811, allocations: 3.621 MB / 424.5 MB, free: 23.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.703e-06/0.5811, allocations: 8.375 kB / 424.5 MB, free: 23.15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.5836, allocations: 1.29 MB / 425.8 MB, free: 22.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004929/0.5842, allocations: 255 kB / 426.1 MB, free: 22.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.5843, allocations: 19.91 kB / 426.1 MB, free: 22.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000582/0.5849, allocations: 39.56 kB / 426.1 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.5852, allocations: 87.86 kB / 426.2 MB, free: 22.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/0.5853, allocations: 27.67 kB / 426.2 MB, free: 22.1 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007507/0.586, allocations: 454.3 kB / 426.7 MB, free: 21.86 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.71e-07/0.586, allocations: 0 / 426.7 MB, free: 21.86 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001598/0.5877, allocations: 446.9 kB / 427.1 MB, free: 21.77 MB / 330.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,meanVoltage.y) * 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.0002388/0.5879, allocations: 149 kB / 427.3 MB, free: 21.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003212/0.5911, allocations: 1.717 MB / 429 MB, free: 20.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.5912, allocations: 0 / 429 MB, free: 20.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.5924, allocations: 0.6346 MB / 429.6 MB, free: 20.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009286/0.5933, allocations: 152.3 kB / 429.8 MB, free: 20.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.5964, allocations: 1.19 MB / 430.9 MB, free: 19.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008014/0.5972, allocations: 1.012 MB / 432 MB, free: 18.63 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006419/0.5979, allocations: 113.8 kB / 432.1 MB, free: 18.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.598, allocations: 42.12 kB / 432.1 MB, free: 18.56 MB / 330.7 MB Notification: Performance of SimCode: time 1.653e-06/0.598, allocations: 0 / 432.1 MB, free: 18.56 MB / 330.7 MB Notification: Performance of Templates: time 0.03825/0.6363, allocations: 17.03 MB / 449.1 MB, free: 6.125 MB / 330.7 MB