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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 1.864/1.864, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.106e-05/5.117e-05, allocations: 7.188 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09582/0.0959, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/0.4325, allocations: 79.78 MB / 379.6 MB, free: 22.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.4328, allocations: 86.53 kB / 379.7 MB, free: 22.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05454/0.4874, allocations: 14.71 MB / 394.4 MB, free: 19.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.874e-06/0.4874, allocations: 0 / 394.4 MB, free: 19.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.385e-05/0.4875, allocations: 27.52 kB / 394.5 MB, free: 19.74 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.003107/0.4907, allocations: 1.046 MB / 395.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.4907, allocations: 11.72 kB / 395.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004041/0.4912, allocations: 117.1 kB / 395.6 MB, free: 19.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.493, allocations: 0.6378 MB / 396.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-05/0.4931, allocations: 64.34 kB / 396.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002502/0.4934, allocations: 81.91 kB / 396.4 MB, free: 18.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003095/0.4965, allocations: 0.9074 MB / 397.3 MB, free: 18.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.812e-05/0.4966, allocations: 3.938 kB / 397.3 MB, free: 18.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00018/0.4968, allocations: 34.69 kB / 397.4 MB, free: 18.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.767e-05/0.4969, allocations: 23.5 kB / 397.4 MB, free: 18.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002803/0.4997, allocations: 0.6736 MB / 398.1 MB, free: 18.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00959/0.5093, allocations: 3.715 MB / 401.8 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002497/0.5118, allocations: 0.7591 MB / 402.5 MB, free: 16.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001348/0.5132, allocations: 438.4 kB / 403 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.686e-05/0.5133, allocations: 12.53 kB / 403 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001418/0.5148, allocations: 453 kB / 403.4 MB, free: 16.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 7.599e-06/0.5148, allocations: 4 kB / 403.4 MB, free: 16.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.003471/0.5183, allocations: 0.8361 MB / 404.2 MB, free: 16.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.5184, allocations: 119.2 kB / 404.4 MB, free: 16.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001462/0.5199, allocations: 0.589 MB / 405 MB, free: 16.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.5201, allocations: 47.16 kB / 405 MB, free: 16.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003696/0.5205, allocations: 373.8 kB / 405.4 MB, free: 16.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.5208, allocations: 240 kB / 405.6 MB, free: 16.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.24e-05/0.5209, allocations: 15.19 kB / 405.6 MB, free: 16.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.5211, allocations: 340.5 kB / 405.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009519/0.522, allocations: 237.3 kB / 406.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.5231, allocations: 384.3 kB / 406.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.5242, allocations: 286.8 kB / 406.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.5242, allocations: 7.938 kB / 406.8 MB, free: 15.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003692/0.5279, allocations: 0.8576 MB / 407.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004645/0.5285, allocations: 1.347 MB / 409 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/0.5285, allocations: 0 / 409 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/0.5307, allocations: 322.1 kB / 409.4 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009875/0.5318, allocations: 96.72 kB / 409.5 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009483/0.5413, allocations: 3.617 MB / 413.1 MB, free: 28.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007997/0.5421, allocations: 94.69 kB / 413.2 MB, free: 28.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.091e-05/0.5422, allocations: 34.5 kB / 413.2 MB, free: 28.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.5423, allocations: 5.781 kB / 413.2 MB, free: 28.46 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001815/0.5441, allocations: 0.8281 MB / 414 MB, free: 28.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.5441, allocations: 3.906 kB / 414 MB, free: 28.37 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.5452, allocations: 312 kB / 414.3 MB, free: 28.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.5457, allocations: 88.55 kB / 414.4 MB, free: 28.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006032/0.5518, allocations: 3.584 MB / 418 MB, free: 26.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/0.5524, allocations: 65.77 kB / 418.1 MB, free: 26.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.88e-05/0.5525, allocations: 23.34 kB / 418.1 MB, free: 26.88 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.0003058/0.5528, allocations: 177.2 kB / 418.3 MB, free: 26.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.553, allocations: 85.95 kB / 418.4 MB, free: 26.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002635/0.5533, allocations: 98.27 kB / 418.5 MB, free: 26.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.5533, allocations: 7.812 kB / 418.5 MB, free: 26.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.5533, allocations: 0 / 418.5 MB, free: 26.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.5534, allocations: 7.125 kB / 418.5 MB, free: 26.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003585/0.557, allocations: 1.92 MB / 420.4 MB, free: 26.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.811e-06/0.557, allocations: 3.984 kB / 420.4 MB, free: 26.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/0.5575, allocations: 65.91 kB / 420.5 MB, free: 26.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.5586, allocations: 296.5 kB / 420.7 MB, free: 26.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.204e-05/0.5587, allocations: 18.83 kB / 420.8 MB, free: 26.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006335/0.5651, allocations: 3.62 MB / 424.4 MB, free: 23.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.839e-06/0.5651, allocations: 3.906 kB / 424.4 MB, free: 23.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.5677, allocations: 1.291 MB / 425.7 MB, free: 22.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000502/0.5683, allocations: 266.8 kB / 425.9 MB, free: 22.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.5684, allocations: 19.91 kB / 426 MB, free: 22.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005782/0.569, allocations: 35.41 kB / 426 MB, free: 22.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002379/0.5693, allocations: 91.61 kB / 426.1 MB, free: 22.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.176e-05/0.5694, allocations: 23.47 kB / 426.1 MB, free: 22.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007287/0.5701, allocations: 457.5 kB / 426.6 MB, free: 22.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.08e-07/0.5701, allocations: 0 / 426.6 MB, free: 22.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001606/0.5717, allocations: 434.2 kB / 427 MB, free: 22.06 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.0002645/0.572, allocations: 137.5 kB / 427.1 MB, free: 21.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003303/0.5753, allocations: 1.749 MB / 428.9 MB, free: 20.87 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.239e-06/0.5754, allocations: 0 / 428.9 MB, free: 20.87 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.5767, allocations: 0.6532 MB / 429.5 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.5778, allocations: 148.9 kB / 429.7 MB, free: 20.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.5811, allocations: 1.222 MB / 430.9 MB, free: 19.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007898/0.5819, allocations: 1.014 MB / 431.9 MB, free: 18.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.5821, allocations: 50.53 kB / 431.9 MB, free: 18.85 MB / 330.7 MB Notification: Performance of SimCode: time 1.804e-06/0.5821, allocations: 0 / 431.9 MB, free: 18.85 MB / 330.7 MB Notification: Performance of Templates: time 0.023/0.6051, allocations: 14.6 MB / 446.5 MB, free: 9.176 MB / 330.7 MB