Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=240000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.958e-05/2.962e-05, allocations: 5.406 kB / 292.1 MB, free: 8.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09033, allocations: 50.41 MB / 342.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4268/0.5172, allocations: 105.4 MB / 448 MB, free: 5.066 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5175, allocations: 98.73 kB / 448 MB, free: 5.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1628/0.6803, allocations: 42.26 MB / 490.3 MB, free: 15.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.6804, allocations: 3.938 kB / 490.3 MB, free: 15.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001372/0.6805, allocations: 43.98 kB / 490.4 MB, free: 15.05 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 412 * Number of variables: 412 Notification: Performance of Generate backend data structure: time 0.003952/0.6845, allocations: 1.822 MB / 492.2 MB, free: 13.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.6845, allocations: 8.031 kB / 492.2 MB, free: 13.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009321/0.6855, allocations: 269.3 kB / 492.5 MB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.6885, allocations: 1.19 MB / 493.6 MB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.6887, allocations: 119.2 kB / 493.8 MB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003277/0.689, allocations: 167.9 kB / 493.9 MB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003931/0.693, allocations: 1.655 MB / 495.6 MB, free: 9.621 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-05/0.693, allocations: 3.938 kB / 495.6 MB, free: 9.617 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/0.6933, allocations: 68.34 kB / 495.6 MB, free: 9.551 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.657e-05/0.6933, allocations: 43.95 kB / 495.7 MB, free: 9.508 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003137/0.6965, allocations: 1.173 MB / 496.9 MB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01301/0.7095, allocations: 6.979 MB / 0.492 GB, free: 1.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.7118, allocations: 1.017 MB / 0.493 GB, free: 68 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.7134, allocations: 0.6543 MB / 0.4937 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.555e-05/0.7135, allocations: 16.98 kB / 0.4937 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001565/0.7151, allocations: 0.6974 MB / 0.4944 GB, free: 14.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 5.243e-06/0.7151, allocations: 4 kB / 0.4944 GB, free: 14.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.007519/0.7226, allocations: 3.052 MB / 0.4973 GB, free: 11.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.7228, allocations: 204.9 kB / 0.4975 GB, free: 11.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002512/0.7254, allocations: 1.161 MB / 0.4987 GB, free: 10.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002082/0.7256, allocations: 61.62 kB / 0.4987 GB, free: 10.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008358/0.7264, allocations: 0.7552 MB / 0.4995 GB, free: 9.262 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005315/0.727, allocations: 378.6 kB / 0.4998 GB, free: 8.887 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.7271, allocations: 32 kB / 0.4999 GB, free: 8.855 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002386/0.7274, allocations: 370.7 kB / 0.5002 GB, free: 8.484 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.7285, allocations: 428 kB / 0.5006 GB, free: 8.066 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.73, allocations: 0.8367 MB / 0.5014 GB, free: 7.055 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.7314, allocations: 0.5915 MB / 0.502 GB, free: 6.449 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.7314, allocations: 4 kB / 0.502 GB, free: 6.445 MB / 426.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004171/0.7356, allocations: 1.676 MB / 0.5037 GB, free: 4.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002763/0.7384, allocations: 4.881 MB / 0.5084 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.012e-05/0.7385, allocations: 16 kB / 0.5084 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.7399, allocations: 338.5 kB / 0.5088 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.741, allocations: 231.6 kB / 0.509 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009171/0.7502, allocations: 6.131 MB / 0.515 GB, free: 8.344 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.7517, allocations: 67.97 kB / 0.515 GB, free: 8.277 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/0.7519, allocations: 64 kB / 0.5151 GB, free: 8.215 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.7519, allocations: 4.062 kB / 0.5151 GB, free: 8.211 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004018/0.7559, allocations: 1.683 MB / 0.5167 GB, free: 6.496 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.756, allocations: 15.98 kB / 0.5168 GB, free: 6.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.7572, allocations: 330.9 kB / 0.5171 GB, free: 6.148 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009765/0.7582, allocations: 219.6 kB / 0.5173 GB, free: 5.934 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2493/1.008, allocations: 6.074 MB / 0.5232 GB, free: 118.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/1.009, allocations: 67.12 kB / 0.5233 GB, free: 118.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001831/1.009, allocations: 67.03 kB / 0.5233 GB, free: 118.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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.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,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 (140): * Single equations (assignments): 134 * 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%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004675/1.009, allocations: 282.9 kB / 0.5236 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004332/1.01, allocations: 164.6 kB / 0.5238 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/1.014, allocations: 1.54 MB / 0.5253 GB, free: 118.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/1.014, allocations: 11.62 kB / 0.5253 GB, free: 118.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.205e-06/1.014, allocations: 0.875 kB / 0.5253 GB, free: 118.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/1.014, allocations: 5.672 kB / 0.5253 GB, free: 118.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006838/1.021, allocations: 3.239 MB / 0.5285 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.891e-06/1.021, allocations: 2.219 kB / 0.5285 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006956/1.022, allocations: 123 kB / 0.5286 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/1.023, allocations: 325.6 kB / 0.5289 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/1.023, allocations: 35.17 kB / 0.5289 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007169/1.03, allocations: 6.087 MB / 0.5349 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.03, allocations: 2.844 kB / 0.5349 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004889/1.035, allocations: 2.395 MB / 0.5372 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008629/1.036, allocations: 374.4 kB / 0.5376 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002977/1.036, allocations: 35.44 kB / 0.5376 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000914/1.037, allocations: 51.61 kB / 0.5376 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003435/1.037, allocations: 117.8 kB / 0.5378 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.038, allocations: 41.5 kB / 0.5378 GB, free: 113.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001717/1.039, allocations: 0.8793 MB / 0.5387 GB, free: 113 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.869e-06/1.039, allocations: 0 / 0.5387 GB, free: 113 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003453/1.043, allocations: 0.7664 MB / 0.5394 GB, free: 113 MB / 442.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,inductor.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,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,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,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 71 * 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%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007808/1.044, allocations: 410.3 kB / 0.5398 GB, free: 112.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005563/1.049, allocations: 3.182 MB / 0.5429 GB, free: 111.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.356e-06/1.049, allocations: 1 kB / 0.5429 GB, free: 111.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002242/1.052, allocations: 1.22 MB / 0.5441 GB, free: 111.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/1.054, allocations: 310.5 kB / 0.5444 GB, free: 111.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00578/1.059, allocations: 2.421 MB / 0.5468 GB, free: 110.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/1.061, allocations: 1.359 MB / 0.5481 GB, free: 109.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003951/1.061, allocations: 93.66 kB / 0.5482 GB, free: 109.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.694e-06/1.061, allocations: 0 / 0.5482 GB, free: 109.9 MB / 442.7 MB Notification: Performance of Templates: time 0.05238/1.113, allocations: 43.2 MB / 0.5904 GB, free: 94.85 MB / 442.7 MB