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 1.976/1.976, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.677e-05/3.691e-05, allocations: 4 kB / 255.5 MB, free: 2.598 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09326, allocations: 44.5 MB / 300 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5089/0.6022, allocations: 97.66 MB / 397.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004197/0.6027, allocations: 88.61 kB / 397.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1804/0.7831, allocations: 41.21 MB / 438.9 MB, free: 9.922 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7832, allocations: 0 / 438.9 MB, free: 9.922 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000185/0.7834, allocations: 51.7 kB / 439 MB, free: 9.875 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.005557/0.789, allocations: 1.816 MB / 440.8 MB, free: 8.121 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.789, allocations: 8.031 kB / 440.8 MB, free: 8.113 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006266/0.7897, allocations: 228.4 kB / 441 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.7909, allocations: 269.2 kB / 441.3 MB, free: 7.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003712/0.7946, allocations: 1.189 MB / 442.5 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.7947, allocations: 119.9 kB / 442.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000386/0.7951, allocations: 165.4 kB / 442.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004545/0.7997, allocations: 1.624 MB / 444.4 MB, free: 5.461 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-05/0.7998, allocations: 9.406 kB / 444.4 MB, free: 5.453 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002381/0.8001, allocations: 67.25 kB / 444.5 MB, free: 5.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.032e-05/0.8001, allocations: 40 kB / 444.5 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003526/0.8037, allocations: 1.155 MB / 445.7 MB, free: 4.676 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01498/0.8187, allocations: 6.934 MB / 452.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004668/0.8234, allocations: 1.006 MB / 453.6 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003048/0.8265, allocations: 0.6364 MB / 454.2 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001733/0.8267, allocations: 16.98 kB / 454.3 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002872/0.8296, allocations: 0.6934 MB / 455 MB, free: 12.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 9.227e-06/0.8297, allocations: 0 / 455 MB, free: 12.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.008911/0.8386, allocations: 2.876 MB / 457.8 MB, free: 9.094 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/0.8388, allocations: 204.9 kB / 458 MB, free: 8.848 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/0.8415, allocations: 1.168 MB / 459.2 MB, free: 7.672 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002266/0.8418, allocations: 49.7 kB / 459.2 MB, free: 7.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000972/0.8428, allocations: 0.7932 MB / 460 MB, free: 6.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005423/0.8433, allocations: 378.4 kB / 460.4 MB, free: 6.457 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.8435, allocations: 32 kB / 460.4 MB, free: 6.426 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.8437, allocations: 361.9 kB / 460.8 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.8449, allocations: 416 kB / 461.2 MB, free: 5.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.8466, allocations: 0.8173 MB / 462 MB, free: 4.668 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.848, allocations: 0.5915 MB / 462.6 MB, free: 4.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.639e-05/0.8481, allocations: 4 kB / 462.6 MB, free: 4.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004566/0.8527, allocations: 1.664 MB / 464.3 MB, free: 2.355 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002244/0.8549, allocations: 4.969 MB / 469.2 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.637e-05/0.855, allocations: 12 kB / 469.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001728/0.8568, allocations: 342.4 kB / 469.6 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.8584, allocations: 227.6 kB / 469.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00979/0.8682, allocations: 6.103 MB / 475.9 MB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.8701, allocations: 71.88 kB / 476 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/0.8704, allocations: 76.05 kB / 476.1 MB, free: 5.852 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.8704, allocations: 4 kB / 476.1 MB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004241/0.8747, allocations: 1.542 MB / 477.6 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/0.8747, allocations: 12 kB / 477.6 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/0.8762, allocations: 350.8 kB / 478 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.8777, allocations: 211.7 kB / 478.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009873/0.8876, allocations: 6.118 MB / 484.3 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.8894, allocations: 80 kB / 484.4 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001881/0.8896, allocations: 64 kB / 484.4 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.0005565/0.8902, allocations: 281.6 kB / 484.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003843/0.8906, allocations: 166 kB / 484.9 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.8947, allocations: 1.421 MB / 486.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.8947, allocations: 8 kB / 486.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.8947, allocations: 4 kB / 486.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.8948, allocations: 3.984 kB / 486.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007836/0.9026, allocations: 3.105 MB / 489.4 MB, free: 7.922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.9027, allocations: 224 / 489.4 MB, free: 7.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009998/0.9037, allocations: 123.8 kB / 489.5 MB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.9051, allocations: 326.3 kB / 489.8 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.9053, allocations: 35.19 kB / 489.9 MB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009564/0.9149, allocations: 6.095 MB / 496 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.9149, allocations: 4.031 kB / 496 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005722/0.9206, allocations: 2.248 MB / 498.2 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.9218, allocations: 367 kB / 498.6 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003692/0.9222, allocations: 35.94 kB / 498.6 MB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/0.9234, allocations: 55.89 kB / 498.7 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004103/0.9239, allocations: 121 kB / 498.8 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.924, allocations: 40 kB / 498.8 MB, free: 13.97 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002124/0.9262, allocations: 0.8788 MB / 499.7 MB, free: 13.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9262, allocations: 0 / 499.7 MB, free: 13.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004136/0.9303, allocations: 0.7462 MB / 0.4887 GB, free: 12.34 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.006649/0.937, allocations: 3.476 MB / 0.4921 GB, free: 8.801 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007319/0.9444, allocations: 3.221 MB / 0.4953 GB, free: 5.457 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/0.9444, allocations: 0 / 0.4953 GB, free: 5.457 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002886/0.9473, allocations: 1.24 MB / 0.4965 GB, free: 4.164 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002549/0.9499, allocations: 313.6 kB / 0.4968 GB, free: 3.855 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009464/0.9594, allocations: 2.659 MB / 0.4994 GB, free: 1.133 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/0.9609, allocations: 1.351 MB / 0.5007 GB, free: 15.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001991/0.9629, allocations: 268.2 kB / 0.501 GB, free: 15.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/0.9642, allocations: 0.6203 MB / 0.5016 GB, free: 14.87 MB / 410.7 MB Notification: Performance of SimCode: time 1.333e-06/0.9642, allocations: 3.938 kB / 0.5016 GB, free: 14.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3812/1.345, allocations: 43.12 MB / 0.5437 GB, free: 108.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/1.346, allocations: 226.6 kB / 0.5439 GB, free: 108.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.725/6.071, allocations: 0 / 0.5439 GB, free: 108.7 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