Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=240000,variableFilter="time|dcpm.inertiaRotor.phi|dcpm.inertiaRotor.w|inductor.i|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_DC_Drive") Notification: Performance of loadModel(Modelica): time 2.233/2.233, allocations: 194.9 MB / 211.2 MB, free: 8.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.63e-05/3.635e-05, allocations: 0 / 258.8 MB, free: 8.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4024, allocations: 44.49 MB / 303.3 MB, free: 12.74 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.01554/0.418, allocations: 8.798 MB / 312.1 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008619/0.4267, allocations: 3.201 MB / 315.3 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001994/0.4287, allocations: 63.88 kB / 315.4 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002245/0.431, allocations: 0.5361 MB / 315.9 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003276/0.4343, allocations: 0.6893 MB / 316.6 MB, free: 348 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002141/0.4365, allocations: 391.3 kB / 317 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004333/0.4409, allocations: 1.309 MB / 318.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.4424, allocations: 0.4988 MB / 318.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.4437, allocations: 0.5842 MB / 319.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/0.4453, allocations: 0.7044 MB / 320.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009309/0.4463, allocations: 231.8 kB / 320.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004717/0.4468, allocations: 87.94 kB / 320.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004087/0.4472, allocations: 298.6 kB / 320.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006037/0.4478, allocations: 168 kB / 320.8 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003974/0.4518, allocations: 2.306 MB / 323.1 MB, free: 9.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.4519, allocations: 0 / 323.1 MB, free: 9.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.247e-06/0.4519, allocations: 0 / 323.1 MB, free: 9.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.276e-05/0.452, allocations: 0 / 323.1 MB, free: 9.77 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.005094/0.4571, allocations: 1.826 MB / 325 MB, free: 7.867 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.4572, allocations: 12.03 kB / 325 MB, free: 7.855 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.4582, allocations: 241.3 kB / 325.2 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/0.4613, allocations: 1.085 MB / 326.3 MB, free: 6.477 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.4616, allocations: 127.1 kB / 326.4 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004231/0.462, allocations: 163.9 kB / 326.6 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004953/0.467, allocations: 1.657 MB / 328.2 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.492e-05/0.4671, allocations: 7.938 kB / 328.2 MB, free: 4.441 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002255/0.4674, allocations: 68 kB / 328.3 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.136e-05/0.4674, allocations: 36 kB / 328.3 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004276/0.4717, allocations: 1.225 MB / 329.6 MB, free: 3.109 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01552/0.4873, allocations: 6.784 MB / 336.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.4904, allocations: 1.04 MB / 337.4 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.4906, allocations: 13 kB / 337.4 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001914/0.4925, allocations: 0.6876 MB / 338.1 MB, free: 10.29 MB / 282.7 MB Notification: Performance of pre-optimization done (n=122): time 5.17e-06/0.4926, allocations: 0 / 338.1 MB, free: 10.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.01477/0.5073, allocations: 4.076 MB / 342.2 MB, free: 6.027 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/0.5076, allocations: 212.9 kB / 342.4 MB, free: 5.773 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002877/0.5105, allocations: 1.15 MB / 343.5 MB, free: 4.617 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002784/0.5108, allocations: 53.69 kB / 343.6 MB, free: 4.559 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009442/0.5118, allocations: 0.7551 MB / 344.3 MB, free: 3.793 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006195/0.5124, allocations: 382.6 kB / 344.7 MB, free: 3.414 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.5125, allocations: 28 kB / 344.7 MB, free: 3.387 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.5128, allocations: 366.8 kB / 345.1 MB, free: 3.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.5142, allocations: 427.8 kB / 345.5 MB, free: 2.602 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/0.516, allocations: 0.8587 MB / 346.4 MB, free: 1.559 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001746/0.5178, allocations: 0.5897 MB / 347 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/0.5178, allocations: 4 kB / 347 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.004837/0.5226, allocations: 1.614 MB / 348.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002661/0.5254, allocations: 5.147 MB / 353.7 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-05/0.5255, allocations: 12 kB / 353.7 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/0.5273, allocations: 357.5 kB / 354.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.5289, allocations: 231.6 kB / 354.3 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.5399, allocations: 6.172 MB / 360.5 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.5416, allocations: 79.94 kB / 360.6 MB, free: 2.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002334/0.5419, allocations: 63.95 kB / 360.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.5419, allocations: 0 / 360.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004594/0.5465, allocations: 1.586 MB / 362.2 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-05/0.5466, allocations: 15.94 kB / 362.2 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.548, allocations: 330.3 kB / 362.6 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.5496, allocations: 219.8 kB / 362.8 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.5602, allocations: 6.154 MB / 368.9 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.5615, allocations: 67.92 kB / 369 MB, free: 9.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.5617, allocations: 60 kB / 369 MB, free: 9.57 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$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,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001357/0.563, allocations: 0.4909 MB / 369.5 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004432/0.5635, allocations: 162 kB / 369.7 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004497/0.568, allocations: 1.454 MB / 371.1 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.439e-05/0.5681, allocations: 12 kB / 371.2 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.5681, allocations: 7.875 kB / 371.2 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/0.5681, allocations: 3.984 kB / 371.2 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007991/0.5761, allocations: 3.076 MB / 374.2 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.5762, allocations: 4 kB / 374.3 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.5772, allocations: 124 kB / 374.4 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/0.5788, allocations: 322.3 kB / 374.7 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001895/0.579, allocations: 31.98 kB / 374.7 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/0.5896, allocations: 6.165 MB / 380.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.5897, allocations: 4 kB / 380.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005878/0.5956, allocations: 2.225 MB / 383.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.5967, allocations: 351 kB / 383.5 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004471/0.5971, allocations: 32 kB / 383.5 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.5983, allocations: 47.97 kB / 383.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003715/0.5987, allocations: 108.8 kB / 383.6 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.5989, allocations: 39.98 kB / 383.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002002/0.6009, allocations: 0.8762 MB / 384.6 MB, free: 9.355 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6009, allocations: 0 / 384.6 MB, free: 9.355 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003964/0.6049, allocations: 0.6953 MB / 385.3 MB, free: 8.66 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,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,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007186/0.6057, allocations: 211.6 kB / 385.5 MB, free: 8.441 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008364/0.6141, allocations: 3.367 MB / 388.8 MB, free: 4.926 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/0.6141, allocations: 0 / 388.8 MB, free: 4.926 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003029/0.6172, allocations: 1.283 MB / 390.1 MB, free: 3.586 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/0.6196, allocations: 312.4 kB / 390.4 MB, free: 3.289 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009462/0.6291, allocations: 3.726 MB / 394.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001417/0.6306, allocations: 1.352 MB / 395.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004611/0.6311, allocations: 91.44 kB / 395.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6311, allocations: 4 kB / 395.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of Templates: time 0.4302/1.061, allocations: 41.84 MB / 437.4 MB, free: 101.7 MB / 362.7 MB