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.821/1.821, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.673e-05/3.685e-05, allocations: 0 / 258.8 MB, free: 8.039 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2838, allocations: 44.5 MB / 303.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.007326/0.2911, allocations: 4.605 MB / 307.9 MB, free: 8.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003555/0.2948, allocations: 1.365 MB / 309.3 MB, free: 7.613 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006757/0.2955, allocations: 35.94 kB / 309.3 MB, free: 7.578 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.2959, allocations: 123 kB / 309.5 MB, free: 7.457 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008599/0.2967, allocations: 287 kB / 309.7 MB, free: 7.176 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000818/0.2976, allocations: 227.7 kB / 310 MB, free: 6.953 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001324/0.2989, allocations: 0.6602 MB / 310.6 MB, free: 6.289 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005992/0.2995, allocations: 274.2 kB / 310.9 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000431/0.3, allocations: 299.1 kB / 311.2 MB, free: 5.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005786/0.3006, allocations: 350.6 kB / 311.5 MB, free: 5.387 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.3008, allocations: 36 kB / 311.6 MB, free: 5.352 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.3009, allocations: 36 kB / 311.6 MB, free: 5.316 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.3011, allocations: 147.3 kB / 311.7 MB, free: 5.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.3013, allocations: 80 kB / 311.8 MB, free: 5.094 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001521/0.3029, allocations: 1.176 MB / 313 MB, free: 3.914 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3029, allocations: 3.938 kB / 313 MB, free: 3.91 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3029, allocations: 3.938 kB / 313 MB, free: 3.906 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.3029, allocations: 0 / 313 MB, free: 3.906 MB / 250.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.002769/0.3057, allocations: 1.052 MB / 314.1 MB, free: 2.793 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3058, allocations: 12.03 kB / 314.1 MB, free: 2.781 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.3061, allocations: 110.7 kB / 314.2 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.3074, allocations: 0.6174 MB / 314.8 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.3075, allocations: 74 kB / 314.9 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000195/0.3078, allocations: 87.91 kB / 315 MB, free: 1.852 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00246/0.3102, allocations: 0.9358 MB / 315.9 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.3103, allocations: 7.938 kB / 315.9 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.3104, allocations: 39.98 kB / 315.9 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.3105, allocations: 20 kB / 316 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002275/0.3128, allocations: 0.7222 MB / 316.7 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007332/0.3201, allocations: 3.724 MB / 320.4 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.3224, allocations: 0.7891 MB / 321.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.404e-05/0.3225, allocations: 16.64 kB / 321.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.3238, allocations: 471.1 kB / 321.7 MB, free: 10.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=82): time 3.557e-06/0.3238, allocations: 7.938 kB / 321.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=82): time 0.009192/0.333, allocations: 1.779 MB / 323.5 MB, free: 9.125 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.837e-05/0.3332, allocations: 123.5 kB / 323.6 MB, free: 8.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.3343, allocations: 0.5776 MB / 324.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.3344, allocations: 41.7 kB / 324.2 MB, free: 8.348 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004042/0.3348, allocations: 360.6 kB / 324.5 MB, free: 7.988 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/0.3352, allocations: 244.5 kB / 324.8 MB, free: 7.746 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.3352, allocations: 12 kB / 324.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.3354, allocations: 386.8 kB / 325.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008706/0.3363, allocations: 265.9 kB / 325.4 MB, free: 7.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.3373, allocations: 434.7 kB / 325.9 MB, free: 6.605 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000912/0.3383, allocations: 304.9 kB / 326.2 MB, free: 6.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.3383, allocations: 4 kB / 326.2 MB, free: 6.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002773/0.3411, allocations: 0.9633 MB / 327.1 MB, free: 5.316 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006208/0.3417, allocations: 1.606 MB / 328.7 MB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.3417, allocations: 4 kB / 328.7 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001407/0.3432, allocations: 312.6 kB / 329 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007252/0.3439, allocations: 95.83 kB / 329.1 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007813/0.3517, allocations: 3.574 MB / 332.7 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009545/0.3527, allocations: 87.17 kB / 332.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-05/0.3528, allocations: 28 kB / 332.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3529, allocations: 4 kB / 332.8 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002385/0.3553, allocations: 0.8571 MB / 333.7 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3553, allocations: 4 kB / 333.7 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.3566, allocations: 301.5 kB / 334 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006325/0.3573, allocations: 95.83 kB / 334.1 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007688/0.365, allocations: 3.59 MB / 337.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008689/0.3659, allocations: 79.27 kB / 337.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/0.366, allocations: 28 kB / 337.8 MB, free: 10.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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.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.notFire,$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 (67): * Single equations (assignments): 65 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006246/0.3666, allocations: 265.6 kB / 338 MB, free: 9.984 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.3668, allocations: 94.94 kB / 338.1 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.3671, allocations: 96.27 kB / 338.2 MB, free: 9.789 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.3671, allocations: 8 kB / 338.2 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3671, allocations: 0 / 338.2 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.3672, allocations: 3.984 kB / 338.2 MB, free: 9.777 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004539/0.3717, allocations: 1.963 MB / 340.2 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.3718, allocations: 0 / 340.2 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005877/0.3723, allocations: 71.91 kB / 340.3 MB, free: 7.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001327/0.3737, allocations: 296.6 kB / 340.5 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.34e-05/0.3738, allocations: 15.98 kB / 340.6 MB, free: 7.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007628/0.3814, allocations: 3.579 MB / 344.1 MB, free: 3.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.3815, allocations: 4 kB / 344.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00376/0.3852, allocations: 1.378 MB / 345.5 MB, free: 2.246 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005133/0.3858, allocations: 259.8 kB / 345.8 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.386, allocations: 12 kB / 345.8 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007363/0.3867, allocations: 44.03 kB / 345.8 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002734/0.387, allocations: 76.55 kB / 345.9 MB, free: 1.844 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.767e-05/0.3871, allocations: 23.98 kB / 345.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008509/0.388, allocations: 451.1 kB / 346.4 MB, free: 1.383 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.388, allocations: 0 / 346.4 MB, free: 1.383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001777/0.3898, allocations: 454.9 kB / 346.8 MB, free: 0.9375 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.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.notFire,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 (51): * Single equations (assignments): 44 * 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 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002455/0.39, allocations: 143.1 kB / 347 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004758/0.3948, allocations: 1.842 MB / 348.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3949, allocations: 0 / 348.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.3967, allocations: 0.679 MB / 349.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.3978, allocations: 150.8 kB / 349.6 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005031/0.4028, allocations: 1.905 MB / 351.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000754/0.4036, allocations: 1.012 MB / 352.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0008318/0.4045, allocations: 110.6 kB / 352.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.4046, allocations: 43.42 kB / 352.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4047, allocations: 0 / 352.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of Templates: time 0.04568/0.4503, allocations: 16.6 MB / 369.3 MB, free: 10.35 MB / 314.7 MB