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 2.161/2.161, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.599e-05, allocations: 4 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4656/0.5844, allocations: 97.66 MB / 397.6 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.5848, allocations: 92.03 kB / 397.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.161/0.7458, allocations: 41.21 MB / 438.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.127e-06/0.7458, allocations: 0 / 438.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002103/0.7461, allocations: 47.88 kB / 439 MB, free: 10.7 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.006169/0.7523, allocations: 1.819 MB / 440.8 MB, free: 8.941 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.7523, allocations: 8.031 kB / 440.8 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007935/0.7531, allocations: 227 kB / 441 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001248/0.7544, allocations: 269.2 kB / 441.3 MB, free: 8.531 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003926/0.7584, allocations: 1.185 MB / 442.5 MB, free: 7.617 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.7586, allocations: 121.8 kB / 442.6 MB, free: 7.547 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005791/0.7592, allocations: 159.5 kB / 442.7 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00506/0.7642, allocations: 1.631 MB / 444.4 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-05/0.7644, allocations: 7.891 kB / 444.4 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/0.7646, allocations: 71.31 kB / 444.5 MB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.951e-05/0.7647, allocations: 36 kB / 444.5 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004232/0.7689, allocations: 1.154 MB / 445.6 MB, free: 5.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01683/0.7858, allocations: 6.939 MB / 452.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002848/0.7887, allocations: 0.9942 MB / 453.6 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.7905, allocations: 0.6481 MB / 454.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.801e-05/0.7906, allocations: 13 kB / 454.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001721/0.7923, allocations: 0.6934 MB / 454.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 3.787e-06/0.7923, allocations: 0 / 454.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.007945/0.8003, allocations: 2.872 MB / 457.8 MB, free: 9.605 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.8005, allocations: 204.9 kB / 458 MB, free: 9.359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/0.8033, allocations: 1.172 MB / 459.2 MB, free: 8.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002754/0.8036, allocations: 53.7 kB / 459.2 MB, free: 8.121 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000844/0.8045, allocations: 0.7435 MB / 460 MB, free: 7.371 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005783/0.8051, allocations: 386.1 kB / 460.3 MB, free: 7.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.8052, allocations: 28 kB / 460.4 MB, free: 6.977 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.8054, allocations: 362.8 kB / 460.7 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.8066, allocations: 428 kB / 461.1 MB, free: 6.195 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.8083, allocations: 0.8134 MB / 462 MB, free: 5.207 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.8097, allocations: 0.5915 MB / 462.6 MB, free: 4.598 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.8098, allocations: 4 kB / 462.6 MB, free: 4.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004246/0.814, allocations: 1.567 MB / 464.1 MB, free: 2.992 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002159/0.8162, allocations: 4.881 MB / 469 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.125e-05/0.8163, allocations: 16 kB / 469 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.818, allocations: 346.4 kB / 469.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.8196, allocations: 219.7 kB / 469.6 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.8304, allocations: 6.115 MB / 475.7 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/0.8324, allocations: 67.97 kB / 475.8 MB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/0.8327, allocations: 64 kB / 475.8 MB, free: 6.496 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.8327, allocations: 6.094 kB / 475.8 MB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004231/0.837, allocations: 1.55 MB / 477.4 MB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-05/0.837, allocations: 12 kB / 477.4 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.8384, allocations: 338.8 kB / 477.7 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/0.8399, allocations: 211.7 kB / 477.9 MB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009559/0.8495, allocations: 6.091 MB / 484 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.8508, allocations: 60.05 kB / 484.1 MB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.851, allocations: 68 kB / 484.1 MB, free: 13.74 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.0006545/0.8517, allocations: 285.7 kB / 484.4 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005346/0.8522, allocations: 169.9 kB / 484.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004117/0.8563, allocations: 1.414 MB / 486 MB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.979e-05/0.8564, allocations: 12 kB / 486 MB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.8564, allocations: 0 / 486 MB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-05/0.8565, allocations: 7.969 kB / 486 MB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008554/0.865, allocations: 3.112 MB / 489.1 MB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.8651, allocations: 0 / 489.1 MB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.8661, allocations: 120 kB / 489.2 MB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001559/0.8677, allocations: 322.3 kB / 489.6 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002258/0.868, allocations: 32 kB / 489.6 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009806/0.8778, allocations: 6.094 MB / 495.7 MB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.8779, allocations: 12.05 kB / 495.7 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005784/0.8837, allocations: 2.247 MB / 497.9 MB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.8849, allocations: 374.9 kB / 498.3 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003664/0.8852, allocations: 35.98 kB / 498.3 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.8865, allocations: 55.91 kB / 498.4 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/0.8869, allocations: 116.8 kB / 498.5 MB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.8871, allocations: 47.98 kB / 498.6 MB, free: 14.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002046/0.8891, allocations: 0.8671 MB / 499.4 MB, free: 13.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.8892, allocations: 0 / 499.4 MB, free: 13.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003868/0.893, allocations: 0.7462 MB / 0.4885 GB, free: 13.03 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.006499/0.8996, allocations: 3.464 MB / 0.4918 GB, free: 9.496 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007097/0.9067, allocations: 3.175 MB / 0.4949 GB, free: 6.195 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.9068, allocations: 0 / 0.4949 GB, free: 6.195 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002811/0.9096, allocations: 1.219 MB / 0.4961 GB, free: 4.926 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002521/0.9122, allocations: 313.6 kB / 0.4964 GB, free: 4.617 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009142/0.9213, allocations: 2.698 MB / 0.4991 GB, free: 1.844 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/0.9228, allocations: 1.348 MB / 0.5004 GB, free: 480 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/0.9243, allocations: 0.6425 MB / 0.501 GB, free: 15.83 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.9243, allocations: 0 / 0.501 GB, free: 15.83 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.873/4.798, allocations: 50.59 MB / 0.5504 GB, free: 108.7 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