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.183/2.183, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.95e-05, allocations: 4 kB / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09494/0.095, allocations: 44.51 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.5634, allocations: 97.66 MB / 397.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.5638, allocations: 89.38 kB / 397.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1646/0.7284, allocations: 41.2 MB / 438.9 MB, free: 10.37 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.7285, allocations: 0 / 438.9 MB, free: 10.37 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001918/0.7287, allocations: 50.61 kB / 439 MB, free: 10.32 MB / 330.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.005816/0.7345, allocations: 1.812 MB / 440.8 MB, free: 8.574 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.7346, allocations: 8.031 kB / 440.8 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005625/0.7352, allocations: 231.4 kB / 441 MB, free: 8.426 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.7363, allocations: 269.2 kB / 441.3 MB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/0.7399, allocations: 1.185 MB / 442.5 MB, free: 7.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.74, allocations: 125.4 kB / 442.6 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003672/0.7404, allocations: 159.2 kB / 442.7 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004511/0.7449, allocations: 1.652 MB / 444.4 MB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.726e-05/0.7451, allocations: 7.906 kB / 444.4 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002251/0.7453, allocations: 65.06 kB / 444.5 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.925e-05/0.7454, allocations: 40 kB / 444.5 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003517/0.7489, allocations: 1.176 MB / 445.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.7649, allocations: 6.935 MB / 452.6 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002602/0.7676, allocations: 1.013 MB / 453.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.7692, allocations: 0.6404 MB / 454.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.7694, allocations: 13 kB / 454.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001709/0.7711, allocations: 0.6993 MB / 455 MB, free: 12.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 4.438e-06/0.7711, allocations: 7.875 kB / 455 MB, free: 12.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.007909/0.779, allocations: 2.884 MB / 457.9 MB, free: 9.168 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/0.7792, allocations: 196.9 kB / 458.1 MB, free: 8.934 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00271/0.782, allocations: 1.168 MB / 459.2 MB, free: 7.758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002313/0.7822, allocations: 49.7 kB / 459.3 MB, free: 7.703 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009954/0.7832, allocations: 0.7893 MB / 460.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000571/0.7838, allocations: 382.4 kB / 460.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.7839, allocations: 28 kB / 460.5 MB, free: 6.516 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.7841, allocations: 357.9 kB / 460.8 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.7854, allocations: 424 kB / 461.2 MB, free: 5.746 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.787, allocations: 0.8251 MB / 462.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.7885, allocations: 0.5954 MB / 462.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.7885, allocations: 4 kB / 462.7 MB, free: 4.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004577/0.7931, allocations: 1.694 MB / 464.4 MB, free: 2.398 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00234/0.7955, allocations: 4.968 MB / 469.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.066e-05/0.7956, allocations: 12 kB / 469.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.7973, allocations: 342.4 kB / 469.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/0.7989, allocations: 227.6 kB / 469.9 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/0.8093, allocations: 6.107 MB / 476 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00213/0.8115, allocations: 71.88 kB / 476.1 MB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003971/0.812, allocations: 68 kB / 476.1 MB, free: 5.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.812, allocations: 8.062 kB / 476.1 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004705/0.8167, allocations: 1.581 MB / 477.7 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.134e-05/0.8168, allocations: 12 kB / 477.7 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/0.8184, allocations: 346.6 kB / 478.1 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001532/0.82, allocations: 211.7 kB / 478.3 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009957/0.83, allocations: 6.123 MB / 484.4 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.8318, allocations: 67.95 kB / 484.5 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002009/0.832, allocations: 67.98 kB / 484.5 MB, free: 13.05 MB / 378.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.0005586/0.8326, allocations: 281.3 kB / 484.8 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003947/0.833, allocations: 166 kB / 485 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00411/0.8371, allocations: 1.417 MB / 486.4 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.8372, allocations: 8 kB / 486.4 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.8372, allocations: 4 kB / 486.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/0.8372, allocations: 3.984 kB / 486.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008085/0.8453, allocations: 3.118 MB / 489.5 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.8454, allocations: 4 kB / 489.5 MB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.8464, allocations: 124 kB / 489.6 MB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.8479, allocations: 322.9 kB / 490 MB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/0.8481, allocations: 31.98 kB / 490 MB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009949/0.8581, allocations: 6.087 MB / 496.1 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/0.8581, allocations: 7.969 kB / 496.1 MB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005854/0.864, allocations: 2.251 MB / 498.3 MB, free: 14.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.8652, allocations: 375.2 kB / 498.7 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003405/0.8656, allocations: 31.94 kB / 498.7 MB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.8668, allocations: 55.97 kB / 498.8 MB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004089/0.8672, allocations: 120.7 kB / 498.9 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.8674, allocations: 47.98 kB / 499 MB, free: 13.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00207/0.8695, allocations: 0.8749 MB / 499.8 MB, free: 13.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.8695, allocations: 0 / 499.8 MB, free: 13.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003994/0.8735, allocations: 0.7539 MB / 0.4889 GB, free: 12.33 MB / 394.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.00672/0.8803, allocations: 3.457 MB / 0.4922 GB, free: 8.809 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007573/0.8879, allocations: 3.319 MB / 0.4955 GB, free: 5.344 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.888, allocations: 0 / 0.4955 GB, free: 5.344 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002917/0.8909, allocations: 1.262 MB / 0.4967 GB, free: 4.027 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002603/0.8935, allocations: 309.6 kB / 0.497 GB, free: 3.727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009134/0.9027, allocations: 2.669 MB / 0.4996 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00148/0.9042, allocations: 1.346 MB / 0.5009 GB, free: 15.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002114/0.9064, allocations: 276 kB / 0.5012 GB, free: 15.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001279/0.9077, allocations: 0.6281 MB / 0.5018 GB, free: 14.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.9077, allocations: 0 / 0.5018 GB, free: 14.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3887/1.296, allocations: 43.32 MB / 0.5441 GB, free: 109.4 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002543/1.297, allocations: 212.3 kB / 0.5443 GB, free: 109.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.816/6.112, allocations: 11.72 kB / 0.5443 GB, free: 109.1 MB / 410.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