Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.176e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09804, allocations: 44.51 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4694/0.5675, allocations: 97.66 MB / 397.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004596/0.5681, allocations: 86.23 kB / 397.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2057/0.7738, allocations: 41.21 MB / 438.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.352e-06/0.7739, allocations: 0 / 438.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000255/0.7742, allocations: 47.88 kB / 438.9 MB, free: 10.3 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.007672/0.7819, allocations: 1.81 MB / 440.8 MB, free: 8.555 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.228e-05/0.782, allocations: 8.031 kB / 440.8 MB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008567/0.7828, allocations: 227.2 kB / 441 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.7845, allocations: 272.7 kB / 441.3 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005416/0.7899, allocations: 1.185 MB / 442.4 MB, free: 7.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.7902, allocations: 120.2 kB / 442.6 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006037/0.7908, allocations: 162.9 kB / 442.7 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00635/0.7972, allocations: 1.645 MB / 444.4 MB, free: 5.879 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.976e-05/0.7973, allocations: 11.89 kB / 444.4 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/0.7977, allocations: 66.38 kB / 444.4 MB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-05/0.7977, allocations: 40 kB / 444.5 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005198/0.8029, allocations: 1.182 MB / 445.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02119/0.8242, allocations: 6.938 MB / 452.6 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003447/0.8277, allocations: 1.017 MB / 453.6 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.8294, allocations: 0.6287 MB / 454.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.8296, allocations: 13 kB / 454.3 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001798/0.8314, allocations: 0.6993 MB / 455 MB, free: 12.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 4.578e-06/0.8314, allocations: 0 / 455 MB, free: 12.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.008146/0.8396, allocations: 2.88 MB / 457.8 MB, free: 9.457 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000158/0.8398, allocations: 212.9 kB / 458 MB, free: 9.207 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002769/0.8426, allocations: 1.16 MB / 459.2 MB, free: 8.039 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002689/0.8429, allocations: 49.7 kB / 459.2 MB, free: 7.984 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009438/0.8438, allocations: 0.755 MB / 460 MB, free: 7.227 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000577/0.8444, allocations: 378.2 kB / 460.4 MB, free: 6.863 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.8446, allocations: 28 kB / 460.4 MB, free: 6.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.8448, allocations: 362.8 kB / 460.8 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.846, allocations: 424 kB / 461.2 MB, free: 6.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/0.8477, allocations: 0.829 MB / 462 MB, free: 5.055 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.8492, allocations: 0.5915 MB / 462.6 MB, free: 4.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.8492, allocations: 4 kB / 462.6 MB, free: 4.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004322/0.8536, allocations: 1.602 MB / 464.2 MB, free: 2.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002498/0.8561, allocations: 4.884 MB / 469.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.841e-05/0.8562, allocations: 12 kB / 469.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/0.858, allocations: 342.4 kB / 469.4 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.8596, allocations: 223.7 kB / 469.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.8698, allocations: 6.104 MB / 475.7 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.8718, allocations: 79.94 kB / 475.8 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002289/0.8721, allocations: 64 kB / 475.9 MB, free: 6.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.8721, allocations: 4 kB / 475.9 MB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00428/0.8764, allocations: 1.581 MB / 477.5 MB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/0.8765, allocations: 12 kB / 477.5 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/0.8778, allocations: 334.8 kB / 477.8 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.8793, allocations: 219.8 kB / 478 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009668/0.889, allocations: 6.082 MB / 484.1 MB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.8903, allocations: 68.03 kB / 484.2 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.8905, allocations: 64 kB / 484.2 MB, free: 13.52 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.0005701/0.8911, allocations: 285.5 kB / 484.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005237/0.8916, allocations: 169.9 kB / 484.7 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004071/0.8957, allocations: 1.421 MB / 486.1 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.8957, allocations: 8 kB / 486.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.8958, allocations: 4 kB / 486.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.011e-05/0.8958, allocations: 7.969 kB / 486.1 MB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007726/0.9035, allocations: 3.112 MB / 489.2 MB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/0.9036, allocations: 12.2 kB / 489.2 MB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.9046, allocations: 111.8 kB / 489.4 MB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001409/0.9061, allocations: 326.8 kB / 489.7 MB, free: 7.938 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.9062, allocations: 31.98 kB / 489.7 MB, free: 7.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009412/0.9156, allocations: 6.084 MB / 495.8 MB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.9157, allocations: 4.031 kB / 495.8 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005718/0.9214, allocations: 2.254 MB / 498 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.9226, allocations: 375.1 kB / 498.4 MB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003354/0.923, allocations: 39.98 kB / 498.5 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.9242, allocations: 55.97 kB / 498.5 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003969/0.9246, allocations: 116.8 kB / 498.6 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.9248, allocations: 47.92 kB / 498.7 MB, free: 14.41 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002021/0.9268, allocations: 0.8671 MB / 499.5 MB, free: 13.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.9268, allocations: 4 kB / 499.5 MB, free: 13.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00398/0.9308, allocations: 0.7461 MB / 0.4886 GB, free: 12.8 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.00677/0.9376, allocations: 3.456 MB / 0.4919 GB, free: 9.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007871/0.9456, allocations: 3.264 MB / 0.4951 GB, free: 5.863 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/0.9456, allocations: 0 / 0.4951 GB, free: 5.863 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003028/0.9487, allocations: 1.259 MB / 0.4964 GB, free: 4.547 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002635/0.9514, allocations: 313.5 kB / 0.4967 GB, free: 4.242 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009465/0.9609, allocations: 2.698 MB / 0.4993 GB, free: 1.469 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.9623, allocations: 1.348 MB / 0.5006 GB, free: 92 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001506/0.9639, allocations: 0.6494 MB / 0.5012 GB, free: 15.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.533e-06/0.9639, allocations: 0 / 0.5012 GB, free: 15.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.728/4.692, allocations: 50.69 MB / 0.5507 GB, free: 108.2 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat