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.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 205.8 MB / 218.9 MB, free: 9.25 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.464e-05/2.47e-05, allocations: 0 / 269.4 MB, free: 6.383 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08377/0.08382, allocations: 47.58 MB / 316.9 MB, free: 6.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3439/0.4277, allocations: 85.59 MB / 402.5 MB, free: 2.543 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4281, allocations: 88.88 kB / 402.6 MB, free: 2.492 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05578/0.4839, allocations: 15.12 MB / 417.7 MB, free: 5.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.652e-06/0.4839, allocations: 0 / 417.7 MB, free: 5.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.434e-05/0.484, allocations: 28 kB / 417.8 MB, free: 5.758 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.002344/0.4864, allocations: 1.039 MB / 418.8 MB, free: 4.719 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.4864, allocations: 12.03 kB / 418.8 MB, free: 4.707 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002753/0.4867, allocations: 114.7 kB / 418.9 MB, free: 4.594 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.488, allocations: 0.6417 MB / 419.6 MB, free: 4.066 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.632e-05/0.4881, allocations: 66.69 kB / 419.6 MB, free: 4.027 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.4883, allocations: 82.56 kB / 419.7 MB, free: 3.973 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.4903, allocations: 0.8987 MB / 420.6 MB, free: 3.336 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.4904, allocations: 4 kB / 420.6 MB, free: 3.332 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.4905, allocations: 40.73 kB / 420.7 MB, free: 3.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.673e-05/0.4905, allocations: 20 kB / 420.7 MB, free: 3.301 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.4923, allocations: 0.6576 MB / 421.3 MB, free: 2.906 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006674/0.499, allocations: 3.715 MB / 425.1 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.5007, allocations: 0.7668 MB / 425.8 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009466/0.5017, allocations: 441.5 kB / 426.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.973e-05/0.5018, allocations: 8.781 kB / 426.3 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009772/0.5028, allocations: 451.3 kB / 426.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 7.089e-06/0.5028, allocations: 0 / 426.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.00222/0.505, allocations: 0.8435 MB / 427.5 MB, free: 14.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.5051, allocations: 118.7 kB / 427.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.5063, allocations: 0.5918 MB / 428.3 MB, free: 13.81 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.499e-05/0.5064, allocations: 40.27 kB / 428.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003744/0.5067, allocations: 361.7 kB / 428.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.507, allocations: 235 kB / 428.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/0.5071, allocations: 14.88 kB / 428.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002536/0.5074, allocations: 386.9 kB / 429.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000588/0.508, allocations: 241.7 kB / 429.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007352/0.5087, allocations: 386.6 kB / 429.9 MB, free: 12.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006632/0.5094, allocations: 282.8 kB / 430.2 MB, free: 12.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.732e-06/0.5094, allocations: 0 / 430.2 MB, free: 12.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00212/0.5116, allocations: 0.8948 MB / 431.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007623/0.5123, allocations: 1.347 MB / 432.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.5124, allocations: 8 kB / 432.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.5136, allocations: 305.4 kB / 432.7 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005013/0.5141, allocations: 95.45 kB / 432.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006726/0.5209, allocations: 3.635 MB / 436.4 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008216/0.5217, allocations: 97.61 kB / 436.5 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-05/0.5218, allocations: 27 kB / 436.6 MB, free: 7.184 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.5219, allocations: 6.344 kB / 436.6 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002021/0.5239, allocations: 0.8157 MB / 437.4 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.5239, allocations: 4 kB / 437.4 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.5251, allocations: 317.6 kB / 437.7 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.5256, allocations: 87.83 kB / 437.8 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006997/0.5326, allocations: 3.623 MB / 441.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007779/0.5334, allocations: 79.36 kB / 441.5 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.004e-05/0.5335, allocations: 31.98 kB / 441.5 MB, free: 2.152 MB / 346.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.0003041/0.5338, allocations: 164.6 kB / 441.7 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.534, allocations: 86.97 kB / 441.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.5343, allocations: 92.39 kB / 441.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.5343, allocations: 8 kB / 441.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.461e-06/0.5343, allocations: 3.953 kB / 441.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.5344, allocations: 3.984 kB / 441.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004015/0.5384, allocations: 1.919 MB / 443.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.974e-06/0.5384, allocations: 0 / 443.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004117/0.5389, allocations: 67.91 kB / 443.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.54, allocations: 309.4 kB / 444.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.297e-05/0.5401, allocations: 23.88 kB / 444.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007014/0.5472, allocations: 3.624 MB / 447.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.511e-06/0.5472, allocations: 4 kB / 447.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003031/0.5502, allocations: 1.299 MB / 449.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005224/0.5508, allocations: 252 kB / 449.3 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.551, allocations: 23.94 kB / 449.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005746/0.5515, allocations: 39.97 kB / 449.4 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.5518, allocations: 84.72 kB / 449.5 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.232e-05/0.5519, allocations: 24 kB / 449.5 MB, free: 9.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000868/0.5528, allocations: 455.2 kB / 450 MB, free: 9.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.24e-07/0.5528, allocations: 0 / 450 MB, free: 9.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001712/0.5546, allocations: 447.1 kB / 450.4 MB, free: 9.016 MB / 362.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.0002844/0.5549, allocations: 150.2 kB / 450.5 MB, free: 8.859 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003847/0.5587, allocations: 1.721 MB / 452.3 MB, free: 7.094 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.893e-06/0.5587, allocations: 4.062 kB / 452.3 MB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001439/0.5602, allocations: 0.6447 MB / 452.9 MB, free: 6.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.5612, allocations: 150.8 kB / 453.1 MB, free: 6.289 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.5648, allocations: 1.196 MB / 454.3 MB, free: 5.066 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009271/0.5657, allocations: 1.016 MB / 455.3 MB, free: 4.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007114/0.5664, allocations: 118.6 kB / 455.4 MB, free: 3.898 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.5666, allocations: 35.44 kB / 455.4 MB, free: 3.863 MB / 362.7 MB Notification: Performance of SimCode: time 1.818e-06/0.5666, allocations: 0 / 455.4 MB, free: 3.863 MB / 362.7 MB Notification: Performance of Templates: time 0.04297/0.6096, allocations: 17.13 MB / 472.6 MB, free: 2.785 MB / 378.7 MB