Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.137/2.137, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.356e-05/2.368e-05, allocations: 0 / 249.8 MB, free: 14.75 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.332, allocations: 44.48 MB / 294.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.5198, allocations: 96.99 MB / 391.3 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003752/0.5202, allocations: 91.94 kB / 391.4 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4886/1.009, allocations: 40.69 MB / 432.1 MB, free: 91.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.009, allocations: 0 / 432.1 MB, free: 91.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000192/1.009, allocations: 40.19 kB / 432.1 MB, free: 91.28 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.00608/1.015, allocations: 1.821 MB / 433.9 MB, free: 90.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/1.015, allocations: 9.25 kB / 433.9 MB, free: 90.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001586/1.017, allocations: 259.3 kB / 434.2 MB, free: 90.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003942/1.021, allocations: 1.191 MB / 435.4 MB, free: 89.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.144e-05/1.021, allocations: 52.66 kB / 435.4 MB, free: 89.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003492/1.021, allocations: 99.67 kB / 435.5 MB, free: 89.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003635/1.025, allocations: 1.081 MB / 436.6 MB, free: 89.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00405/1.029, allocations: 1.419 MB / 438 MB, free: 89.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.738e-05/1.029, allocations: 7.5 kB / 438 MB, free: 89.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/1.029, allocations: 7.906 kB / 438.1 MB, free: 89.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.111e-05/1.029, allocations: 35.34 kB / 438.1 MB, free: 89.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01429/1.044, allocations: 6.613 MB / 444.7 MB, free: 86.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/1.046, allocations: 0.9677 MB / 445.7 MB, free: 86.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/1.048, allocations: 0.5969 MB / 446.3 MB, free: 86.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/1.048, allocations: 22.09 kB / 446.3 MB, free: 86.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00152/1.049, allocations: 0.6683 MB / 447 MB, free: 85.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 5.069e-06/1.05, allocations: 0 / 447 MB, free: 85.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=125): time 0.007496/1.057, allocations: 2.524 MB / 449.5 MB, free: 84.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.446e-05/1.057, allocations: 209.1 kB / 449.7 MB, free: 84.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/1.059, allocations: 0.9142 MB / 450.6 MB, free: 84.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002493/1.059, allocations: 36.14 kB / 450.6 MB, free: 84.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007722/1.06, allocations: 0.791 MB / 451.4 MB, free: 83.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004528/1.061, allocations: 364.5 kB / 451.8 MB, free: 83.17 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/1.061, allocations: 0 / 451.8 MB, free: 83.17 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/1.061, allocations: 366.5 kB / 452.1 MB, free: 82.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/1.062, allocations: 400.4 kB / 452.5 MB, free: 82.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/1.063, allocations: 0.7854 MB / 453.3 MB, free: 81.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/1.065, allocations: 489.2 kB / 453.8 MB, free: 81.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/1.065, allocations: 5.219 kB / 453.8 MB, free: 81.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004191/1.069, allocations: 1.453 MB / 455.2 MB, free: 81.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001027/1.07, allocations: 4.904 MB / 460.2 MB, free: 76.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.252e-05/1.07, allocations: 14.59 kB / 460.2 MB, free: 76.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001671/1.072, allocations: 332.4 kB / 460.5 MB, free: 75.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/1.074, allocations: 221.2 kB / 460.7 MB, free: 75.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008643/1.082, allocations: 5.935 MB / 466.6 MB, free: 70.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/1.084, allocations: 54.34 kB / 466.7 MB, free: 70.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002107/1.084, allocations: 67.28 kB / 466.8 MB, free: 70.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/1.084, allocations: 9.812 kB / 466.8 MB, free: 70.85 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003752/1.088, allocations: 1.312 MB / 468.1 MB, free: 70.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.713e-05/1.088, allocations: 12.69 kB / 468.1 MB, free: 70.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001462/1.09, allocations: 339.3 kB / 468.4 MB, free: 70.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/1.091, allocations: 213.6 kB / 468.6 MB, free: 70.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008361/1.1, allocations: 5.911 MB / 474.5 MB, free: 65.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/1.101, allocations: 38.81 kB / 474.6 MB, free: 65.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001908/1.102, allocations: 70.72 kB / 474.7 MB, free: 65.19 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.0005274/1.102, allocations: 241.3 kB / 474.9 MB, free: 64.98 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003466/1.106, allocations: 1.205 MB / 476.1 MB, free: 64.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003783/1.106, allocations: 148.3 kB / 476.2 MB, free: 64.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/1.11, allocations: 1.234 MB / 477.5 MB, free: 63.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/1.11, allocations: 16 kB / 477.5 MB, free: 63.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/1.11, allocations: 3.469 kB / 477.5 MB, free: 63.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/1.11, allocations: 3.75 kB / 477.5 MB, free: 63.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006989/1.117, allocations: 2.741 MB / 480.2 MB, free: 61.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/1.117, allocations: 4 kB / 480.2 MB, free: 61.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/1.118, allocations: 114.4 kB / 480.4 MB, free: 61.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001495/1.119, allocations: 328.5 kB / 480.7 MB, free: 61.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001739/1.12, allocations: 19.52 kB / 480.7 MB, free: 61.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008433/1.128, allocations: 5.893 MB / 486.6 MB, free: 55.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.128, allocations: 0 / 486.6 MB, free: 55.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005215/1.133, allocations: 2.07 MB / 488.7 MB, free: 53.01 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/1.135, allocations: 349.8 kB / 489 MB, free: 52.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004822/1.135, allocations: 16 kB / 489 MB, free: 52.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/1.136, allocations: 37.42 kB / 489 MB, free: 52.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004754/1.137, allocations: 109.6 kB / 489.2 MB, free: 52.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/1.137, allocations: 51.75 kB / 489.2 MB, free: 52.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001529/1.139, allocations: 0.67 MB / 489.9 MB, free: 51.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.32e-07/1.139, allocations: 0 / 489.9 MB, free: 51.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004818/1.144, allocations: 0.6432 MB / 490.5 MB, free: 51.28 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.005813/1.149, allocations: 3.243 MB / 493.8 MB, free: 48.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006675/1.156, allocations: 3.137 MB / 496.9 MB, free: 44.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.156, allocations: 4.062 kB / 496.9 MB, free: 44.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002582/1.159, allocations: 1.197 MB / 498.1 MB, free: 43.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/1.161, allocations: 264.5 kB / 498.4 MB, free: 43.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009178/1.171, allocations: 2.533 MB / 0.4892 GB, free: 41.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/1.172, allocations: 1.353 MB / 0.4905 GB, free: 40.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002021/1.174, allocations: 237.1 kB / 0.4907 GB, free: 39.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/1.175, allocations: 0.6161 MB / 0.4913 GB, free: 39.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.703e-06/1.175, allocations: 0 / 0.4913 GB, free: 39.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1258/1.301, allocations: 36.58 MB / 0.527 GB, free: 4.902 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002759/1.301, allocations: 179.2 kB / 0.5272 GB, free: 4.703 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.853/6.154, allocations: 0 / 0.5272 GB, free: 4.703 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat