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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 2.18/2.18, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.808e-05/2.812e-05, allocations: 4 kB / 292.2 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08954/0.08959, allocations: 50.41 MB / 342.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.4525, allocations: 86.87 MB / 429.4 MB, free: 7.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.4528, allocations: 79.02 kB / 429.5 MB, free: 7.367 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06437/0.5172, allocations: 15.34 MB / 444.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.442e-06/0.5172, allocations: 0 / 444.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001327/0.5174, allocations: 20 kB / 444.9 MB, free: 10.44 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.004214/0.5216, allocations: 1.058 MB / 445.9 MB, free: 9.383 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.789e-05/0.5217, allocations: 12.03 kB / 445.9 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004989/0.5223, allocations: 114.7 kB / 446.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002614/0.5249, allocations: 0.6275 MB / 446.7 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.5251, allocations: 66.31 kB / 446.8 MB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003537/0.5255, allocations: 93.19 kB / 446.8 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004087/0.5296, allocations: 0.9004 MB / 447.7 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-05/0.5297, allocations: 3.938 kB / 447.7 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/0.5299, allocations: 39.19 kB / 447.8 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.666e-05/0.53, allocations: 20 kB / 447.8 MB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003426/0.5334, allocations: 0.6603 MB / 448.5 MB, free: 7.574 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01256/0.546, allocations: 3.737 MB / 452.2 MB, free: 4.672 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003399/0.5495, allocations: 0.7474 MB / 452.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.5515, allocations: 440.3 kB / 453.4 MB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.748e-05/0.5516, allocations: 16.7 kB / 453.4 MB, free: 3.645 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001961/0.5536, allocations: 431.8 kB / 453.8 MB, free: 3.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 7.324e-06/0.5536, allocations: 4 kB / 453.8 MB, free: 3.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.004527/0.5582, allocations: 0.8522 MB / 454.7 MB, free: 2.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/0.5584, allocations: 115.5 kB / 454.8 MB, free: 2.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/0.5606, allocations: 0.5933 MB / 455.4 MB, free: 1.602 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.5608, allocations: 45.7 kB / 455.4 MB, free: 1.551 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007263/0.5616, allocations: 356.6 kB / 455.8 MB, free: 1.195 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005099/0.5621, allocations: 236.6 kB / 456 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.5623, allocations: 16 kB / 456 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004246/0.5627, allocations: 382.8 kB / 456.4 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.564, allocations: 241.6 kB / 456.6 MB, free: 336 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.5656, allocations: 385.7 kB / 457 MB, free: 15.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.567, allocations: 283.8 kB / 457.3 MB, free: 15.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.587e-05/0.5671, allocations: 4 kB / 457.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004746/0.5718, allocations: 0.8939 MB / 458.2 MB, free: 14.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001349/0.5732, allocations: 1.344 MB / 459.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.5e-05/0.5733, allocations: 8 kB / 459.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002665/0.576, allocations: 309.5 kB / 459.8 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.5772, allocations: 95.89 kB / 459.9 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/0.5905, allocations: 3.631 MB / 463.6 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008477/0.5914, allocations: 99.28 kB / 463.7 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-05/0.5915, allocations: 28 kB / 463.7 MB, free: 8.953 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.5916, allocations: 4 kB / 463.7 MB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002064/0.5936, allocations: 0.8134 MB / 464.5 MB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.417e-06/0.5937, allocations: 4 kB / 464.5 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.5949, allocations: 329.5 kB / 464.8 MB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.5955, allocations: 87.83 kB / 464.9 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007095/0.6026, allocations: 3.622 MB / 468.5 MB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007762/0.6034, allocations: 79.34 kB / 468.6 MB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.804e-05/0.6035, allocations: 31.98 kB / 468.6 MB, free: 3.844 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.0003042/0.6038, allocations: 164.8 kB / 468.8 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.604, allocations: 82.97 kB / 468.9 MB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002676/0.6043, allocations: 96.25 kB / 469 MB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.6043, allocations: 8 kB / 469 MB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.6043, allocations: 0 / 469 MB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.6044, allocations: 7.984 kB / 469 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.6085, allocations: 1.911 MB / 470.9 MB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.198e-06/0.6085, allocations: 0 / 470.9 MB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.609, allocations: 67.89 kB / 471 MB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.6102, allocations: 320.8 kB / 471.3 MB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.225e-05/0.6103, allocations: 16 kB / 471.3 MB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007109/0.6174, allocations: 3.631 MB / 474.9 MB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.984e-06/0.6174, allocations: 160 / 474.9 MB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.6205, allocations: 1.303 MB / 476.2 MB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.6211, allocations: 255.9 kB / 476.5 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.6213, allocations: 16 kB / 476.5 MB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.6219, allocations: 39.97 kB / 476.5 MB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.6222, allocations: 84.72 kB / 476.6 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.751e-05/0.6223, allocations: 20 kB / 476.6 MB, free: 11.58 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008761/0.6232, allocations: 459.1 kB / 477.1 MB, free: 11.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.6232, allocations: 0 / 477.1 MB, free: 11.14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001815/0.625, allocations: 447.2 kB / 477.5 MB, free: 10.7 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.0002901/0.6253, allocations: 142 kB / 477.7 MB, free: 10.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003955/0.6293, allocations: 1.733 MB / 479.4 MB, free: 8.781 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.79e-06/0.6293, allocations: 4.375 kB / 479.4 MB, free: 8.777 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.6308, allocations: 0.6291 MB / 480 MB, free: 8.141 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.6318, allocations: 162.7 kB / 480.2 MB, free: 7.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.6354, allocations: 1.199 MB / 481.4 MB, free: 6.758 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009153/0.6363, allocations: 1.012 MB / 482.4 MB, free: 5.715 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006529/0.637, allocations: 114.6 kB / 482.5 MB, free: 5.598 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.6371, allocations: 35.44 kB / 482.5 MB, free: 5.562 MB / 394.7 MB Notification: Performance of SimCode: time 1.712e-06/0.6371, allocations: 0 / 482.5 MB, free: 5.562 MB / 394.7 MB Notification: Performance of Templates: time 0.04183/0.679, allocations: 17.12 MB / 499.7 MB, free: 4.672 MB / 410.7 MB