Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.185/2.185, allocations: 195 MB / 202.8 MB, free: 13.77 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.266e-05/2.267e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2962, allocations: 44.49 MB / 294.2 MB, free: 14.49 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.173/0.4693, allocations: 96.99 MB / 391.2 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/0.4697, allocations: 91.89 kB / 391.3 MB, free: 0.793 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4197/0.8893, allocations: 40.69 MB / 432 MB, free: 91.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.8894, allocations: 1.062 kB / 432 MB, free: 91.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000189/0.8896, allocations: 35.88 kB / 432 MB, free: 91.42 MB / 362.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.005988/0.8956, allocations: 1.829 MB / 433.9 MB, free: 90.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.8957, allocations: 12.38 kB / 433.9 MB, free: 90.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001531/0.8972, allocations: 259.1 kB / 434.1 MB, free: 90.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003719/0.901, allocations: 1.194 MB / 435.3 MB, free: 89.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.32e-05/0.9011, allocations: 50.94 kB / 435.4 MB, free: 89.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003714/0.9015, allocations: 101.3 kB / 435.5 MB, free: 89.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003382/0.9049, allocations: 1.075 MB / 436.6 MB, free: 89.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00394/0.9089, allocations: 1.427 MB / 438 MB, free: 89.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.529e-05/0.909, allocations: 3.875 kB / 438 MB, free: 89.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000187/0.9092, allocations: 7.375 kB / 438 MB, free: 89.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-05/0.9092, allocations: 42.66 kB / 438 MB, free: 89.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/0.9226, allocations: 6.612 MB / 444.6 MB, free: 86.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/0.9248, allocations: 0.9604 MB / 445.6 MB, free: 86.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.9261, allocations: 0.6018 MB / 446.2 MB, free: 86.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.9262, allocations: 15.56 kB / 446.2 MB, free: 86.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001332/0.9275, allocations: 0.664 MB / 446.9 MB, free: 86.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 3.556e-06/0.9275, allocations: 2.625 kB / 446.9 MB, free: 86.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=125): time 0.006599/0.9342, allocations: 2.532 MB / 449.4 MB, free: 84.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.2e-05/0.9343, allocations: 203 kB / 449.6 MB, free: 84.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.9361, allocations: 0.9222 MB / 450.5 MB, free: 84.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.9363, allocations: 37.36 kB / 450.6 MB, free: 84.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007203/0.9371, allocations: 0.7833 MB / 451.4 MB, free: 83.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003805/0.9375, allocations: 368.6 kB / 451.7 MB, free: 83.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.003e-05/0.9376, allocations: 0 / 451.7 MB, free: 83.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.9377, allocations: 363.2 kB / 452.1 MB, free: 82.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009244/0.9386, allocations: 398.2 kB / 452.5 MB, free: 82.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.9398, allocations: 0.7902 MB / 453.3 MB, free: 82.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.9409, allocations: 487.2 kB / 453.7 MB, free: 81.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.941, allocations: 3.344 kB / 453.7 MB, free: 81.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.00353/0.9445, allocations: 1.444 MB / 455.2 MB, free: 81.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001011/0.9455, allocations: 4.906 MB / 460.1 MB, free: 76.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/0.9456, allocations: 17.91 kB / 460.1 MB, free: 76.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.9471, allocations: 337.5 kB / 460.4 MB, free: 76.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.9486, allocations: 226.4 kB / 460.6 MB, free: 76.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007599/0.9562, allocations: 5.931 MB / 466.6 MB, free: 71.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.958, allocations: 43.86 kB / 466.6 MB, free: 71.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/0.9582, allocations: 65.22 kB / 466.7 MB, free: 71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.9582, allocations: 3.969 kB / 466.7 MB, free: 71 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003331/0.9615, allocations: 1.319 MB / 468 MB, free: 70.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/0.9616, allocations: 13.78 kB / 468 MB, free: 70.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.9629, allocations: 343.6 kB / 468.4 MB, free: 70.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.9642, allocations: 211.7 kB / 468.6 MB, free: 70.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007364/0.9716, allocations: 5.915 MB / 474.5 MB, free: 65.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.9733, allocations: 40.53 kB / 474.5 MB, free: 65.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.9735, allocations: 69.81 kB / 474.6 MB, free: 65.34 MB / 362.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,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.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 (138): * Single equations (assignments): 132 * 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.0004775/0.974, allocations: 246.5 kB / 474.8 MB, free: 65.12 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003055/0.977, allocations: 1.195 MB / 476 MB, free: 64.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.9774, allocations: 150.5 kB / 476.2 MB, free: 64.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.9805, allocations: 1.246 MB / 477.4 MB, free: 63.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.9806, allocations: 15.94 kB / 477.4 MB, free: 63.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.9806, allocations: 0 / 477.4 MB, free: 63.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/0.9806, allocations: 7.359 kB / 477.4 MB, free: 63.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006383/0.987, allocations: 2.735 MB / 480.2 MB, free: 61.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.9871, allocations: 224 / 480.2 MB, free: 61.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009908/0.9881, allocations: 124.7 kB / 480.3 MB, free: 61.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001327/0.9895, allocations: 318.9 kB / 480.6 MB, free: 61.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002044/0.9897, allocations: 19.83 kB / 480.6 MB, free: 61.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007551/0.9972, allocations: 5.899 MB / 486.5 MB, free: 55.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/0.9973, allocations: 7.406 kB / 486.5 MB, free: 55.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004595/1.002, allocations: 2.072 MB / 488.6 MB, free: 53.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009953/1.003, allocations: 343.3 kB / 488.9 MB, free: 52.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003487/1.003, allocations: 15.23 kB / 489 MB, free: 52.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/1.004, allocations: 37.25 kB / 489 MB, free: 52.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003644/1.005, allocations: 118.1 kB / 489.1 MB, free: 52.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/1.005, allocations: 43.7 kB / 489.1 MB, free: 52.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001253/1.006, allocations: 0.6689 MB / 489.8 MB, free: 52.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.006, allocations: 3.938 kB / 489.8 MB, free: 52.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003711/1.01, allocations: 0.6399 MB / 490.5 MB, free: 51.52 MB / 362.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,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,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 (80): * Single equations (assignments): 69 * 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.005007/1.015, allocations: 3.236 MB / 493.7 MB, free: 48.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005615/1.021, allocations: 3.131 MB / 496.8 MB, free: 45.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/1.021, allocations: 0 / 496.8 MB, free: 45.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002242/1.023, allocations: 1.202 MB / 498 MB, free: 43.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/1.025, allocations: 264.4 kB / 498.3 MB, free: 43.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008011/1.033, allocations: 2.533 MB / 0.4891 GB, free: 41.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/1.034, allocations: 1.358 MB / 0.4904 GB, free: 40.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001764/1.036, allocations: 234.2 kB / 0.4906 GB, free: 40.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009734/1.037, allocations: 0.6152 MB / 0.4912 GB, free: 39.6 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/1.037, allocations: 4 kB / 0.4912 GB, free: 39.6 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1434/1.181, allocations: 36.57 MB / 0.527 GB, free: 5.137 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002298/1.181, allocations: 166.9 kB / 0.5271 GB, free: 4.945 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.327/5.508, allocations: 0 / 0.5271 GB, free: 4.945 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat