Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.112/2.112, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.982e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 50.42 MB / 342.7 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4747/0.5792, allocations: 105.4 MB / 448 MB, free: 5.105 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.5796, allocations: 90.12 kB / 448.1 MB, free: 5.055 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2014/0.781, allocations: 42.28 MB / 490.4 MB, free: 15.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.781, allocations: 4 kB / 490.4 MB, free: 15.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001838/0.7812, allocations: 40 kB / 490.4 MB, free: 15.01 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.005867/0.7871, allocations: 1.814 MB / 492.3 MB, free: 13.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.7872, allocations: 12.03 kB / 492.3 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007205/0.7879, allocations: 236.3 kB / 492.5 MB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.7891, allocations: 261.3 kB / 492.8 MB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003905/0.793, allocations: 1.198 MB / 494 MB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.7932, allocations: 123.2 kB / 494.1 MB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004698/0.7937, allocations: 160 kB / 494.2 MB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004882/0.7986, allocations: 1.659 MB / 495.9 MB, free: 9.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.582e-05/0.7987, allocations: 8.25 kB / 495.9 MB, free: 9.332 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002914/0.799, allocations: 75.95 kB / 496 MB, free: 9.258 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.185e-05/0.7991, allocations: 40 kB / 496 MB, free: 9.219 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003959/0.803, allocations: 1.177 MB / 497.2 MB, free: 8.039 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01604/0.8191, allocations: 6.963 MB / 0.4923 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002701/0.8219, allocations: 1.013 MB / 0.4933 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.8237, allocations: 0.6542 MB / 0.494 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.8239, allocations: 16.98 kB / 0.494 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001791/0.8257, allocations: 0.7129 MB / 0.4947 GB, free: 14.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 4.028e-06/0.8257, allocations: 0 / 0.4947 GB, free: 14.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.008739/0.8344, allocations: 3.04 MB / 0.4976 GB, free: 11.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/0.8347, allocations: 208.9 kB / 0.4978 GB, free: 10.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00291/0.8376, allocations: 1.168 MB / 0.499 GB, free: 9.809 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002825/0.8379, allocations: 53.64 kB / 0.499 GB, free: 9.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009101/0.8388, allocations: 0.7514 MB / 0.4998 GB, free: 8.988 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006328/0.8395, allocations: 382.6 kB / 0.5001 GB, free: 8.609 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.8396, allocations: 32 kB / 0.5002 GB, free: 8.578 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.8398, allocations: 366.7 kB / 0.5005 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.8411, allocations: 439.9 kB / 0.5009 GB, free: 7.781 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.8428, allocations: 0.8251 MB / 0.5017 GB, free: 6.781 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.8444, allocations: 0.5877 MB / 0.5023 GB, free: 6.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.414e-05/0.8445, allocations: 4 kB / 0.5023 GB, free: 6.176 MB / 426.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004842/0.8493, allocations: 1.692 MB / 0.504 GB, free: 4.445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002483/0.8518, allocations: 4.885 MB / 0.5087 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-05/0.8519, allocations: 12 kB / 0.5088 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/0.8537, allocations: 338.3 kB / 0.5091 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/0.8553, allocations: 223.6 kB / 0.5093 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/0.8657, allocations: 6.119 MB / 0.5153 GB, free: 8.078 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001991/0.8678, allocations: 72.03 kB / 0.5153 GB, free: 8.008 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/0.8681, allocations: 68 kB / 0.5154 GB, free: 7.941 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.8681, allocations: 4 kB / 0.5154 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004783/0.8729, allocations: 1.683 MB / 0.517 GB, free: 6.223 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.383e-05/0.8729, allocations: 16.06 kB / 0.5171 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.8743, allocations: 338.7 kB / 0.5174 GB, free: 5.867 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.8758, allocations: 215.8 kB / 0.5176 GB, free: 5.656 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3013/1.177, allocations: 6.069 MB / 0.5235 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/1.179, allocations: 65.56 kB / 0.5236 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/1.179, allocations: 67.53 kB / 0.5236 GB, free: 118.2 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.0005481/1.179, allocations: 279.8 kB / 0.5239 GB, free: 118 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005196/1.18, allocations: 169.4 kB / 0.5241 GB, free: 118 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004654/1.185, allocations: 1.537 MB / 0.5256 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/1.185, allocations: 11.03 kB / 0.5256 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.185, allocations: 1.75 kB / 0.5256 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/1.185, allocations: 5.672 kB / 0.5256 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008477/1.193, allocations: 3.237 MB / 0.5288 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/1.193, allocations: 1.188 kB / 0.5288 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/1.194, allocations: 123 kB / 0.5289 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001799/1.196, allocations: 335.4 kB / 0.5292 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002939/1.196, allocations: 30.45 kB / 0.5292 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009692/1.206, allocations: 6.092 MB / 0.5352 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/1.206, allocations: 7.219 kB / 0.5352 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008041/1.214, allocations: 2.392 MB / 0.5375 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/1.216, allocations: 374.9 kB / 0.5379 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000546/1.216, allocations: 33.22 kB / 0.5379 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/1.218, allocations: 56.75 kB / 0.538 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006785/1.219, allocations: 116.3 kB / 0.5381 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/1.219, allocations: 47.36 kB / 0.5381 GB, free: 112.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003319/1.223, allocations: 0.8804 MB / 0.539 GB, free: 112.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.223, allocations: 3.609 kB / 0.539 GB, free: 112.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00634/1.229, allocations: 0.7544 MB / 0.5397 GB, free: 112.7 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.009373/1.239, allocations: 3.589 MB / 0.5432 GB, free: 111.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009747/1.248, allocations: 3.178 MB / 0.5463 GB, free: 110.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/1.248, allocations: 3.188 kB / 0.5463 GB, free: 110.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003773/1.252, allocations: 1.219 MB / 0.5475 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003594/1.256, allocations: 324.7 kB / 0.5478 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/1.268, allocations: 2.715 MB / 0.5505 GB, free: 108.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001718/1.27, allocations: 1.361 MB / 0.5518 GB, free: 108.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001616/1.271, allocations: 0.6498 MB / 0.5524 GB, free: 107.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.383e-06/1.271, allocations: 0 / 0.5524 GB, free: 107.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.603/4.874, allocations: 51 MB / 0.6022 GB, free: 83.32 MB / 442.7 MB