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.005/2.005, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.438e-05, allocations: 8 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3411, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1744/0.5156, allocations: 96.99 MB / 391.2 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/0.516, allocations: 87.88 kB / 391.3 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4989/1.015, allocations: 40.69 MB / 432 MB, free: 91.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.015, allocations: 0 / 432 MB, free: 91.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001675/1.015, allocations: 46.84 kB / 432 MB, free: 91.01 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.005177/1.02, allocations: 1.819 MB / 433.8 MB, free: 90 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/1.02, allocations: 9.75 kB / 433.9 MB, free: 90 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/1.022, allocations: 261.1 kB / 434.1 MB, free: 89.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0032/1.025, allocations: 1.194 MB / 435.3 MB, free: 89.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-05/1.025, allocations: 53.7 kB / 435.4 MB, free: 89.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002792/1.025, allocations: 99.73 kB / 435.4 MB, free: 89.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002854/1.028, allocations: 1.071 MB / 436.5 MB, free: 89.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00321/1.031, allocations: 1.431 MB / 438 MB, free: 89.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.959e-05/1.031, allocations: 3.938 kB / 438 MB, free: 89.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001798/1.032, allocations: 4.719 kB / 438 MB, free: 89.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.474e-05/1.032, allocations: 42.06 kB / 438 MB, free: 89.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01522/1.047, allocations: 6.612 MB / 444.6 MB, free: 86.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/1.05, allocations: 0.9624 MB / 445.6 MB, free: 86.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/1.052, allocations: 0.603 MB / 446.2 MB, free: 86.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001426/1.052, allocations: 13.19 kB / 446.2 MB, free: 86.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001953/1.054, allocations: 0.6699 MB / 446.9 MB, free: 85.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 6.261e-06/1.054, allocations: 2.625 kB / 446.9 MB, free: 85.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=125): time 0.008966/1.063, allocations: 2.523 MB / 449.4 MB, free: 84.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/1.063, allocations: 208.5 kB / 449.6 MB, free: 84.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/1.065, allocations: 0.9196 MB / 450.5 MB, free: 83.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/1.065, allocations: 35.11 kB / 450.5 MB, free: 83.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/1.066, allocations: 0.7659 MB / 451.3 MB, free: 83.22 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004517/1.067, allocations: 366.5 kB / 451.7 MB, free: 82.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/1.067, allocations: 4 kB / 451.7 MB, free: 82.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/1.067, allocations: 370.2 kB / 452 MB, free: 82.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/1.068, allocations: 396 kB / 452.4 MB, free: 82.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001722/1.07, allocations: 0.7899 MB / 453.2 MB, free: 81.76 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/1.072, allocations: 487.6 kB / 453.7 MB, free: 81.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/1.072, allocations: 3.156 kB / 453.7 MB, free: 81.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004731/1.077, allocations: 1.371 MB / 455.1 MB, free: 81.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001279/1.078, allocations: 4.879 MB / 459.9 MB, free: 75.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.77e-05/1.078, allocations: 14.22 kB / 460 MB, free: 75.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001899/1.08, allocations: 342.5 kB / 460.3 MB, free: 75.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/1.082, allocations: 226.8 kB / 460.5 MB, free: 75.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/1.092, allocations: 5.929 MB / 466.4 MB, free: 70.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00228/1.095, allocations: 49.95 kB / 466.5 MB, free: 70.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/1.095, allocations: 67.34 kB / 466.6 MB, free: 70.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/1.095, allocations: 3.875 kB / 466.6 MB, free: 70.68 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004736/1.1, allocations: 1.322 MB / 467.9 MB, free: 70.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/1.1, allocations: 12.53 kB / 467.9 MB, free: 70.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/1.101, allocations: 320.8 kB / 468.2 MB, free: 70.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001746/1.103, allocations: 222.6 kB / 468.4 MB, free: 70.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009599/1.113, allocations: 5.871 MB / 474.3 MB, free: 65.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/1.114, allocations: 33.61 kB / 474.3 MB, free: 65.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/1.114, allocations: 66.06 kB / 474.4 MB, free: 65.03 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.0004569/1.115, allocations: 250.4 kB / 474.6 MB, free: 64.82 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003111/1.118, allocations: 1.199 MB / 475.8 MB, free: 64.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/1.118, allocations: 147.1 kB / 476 MB, free: 64.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002993/1.121, allocations: 1.245 MB / 477.2 MB, free: 63.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/1.121, allocations: 10.38 kB / 477.2 MB, free: 63.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.121, allocations: 0 / 477.2 MB, free: 63.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/1.121, allocations: 7.297 kB / 477.2 MB, free: 63.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005762/1.127, allocations: 2.747 MB / 480 MB, free: 61.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/1.127, allocations: 4 kB / 480 MB, free: 61.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009137/1.128, allocations: 121.5 kB / 480.1 MB, free: 61.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/1.129, allocations: 316.6 kB / 480.4 MB, free: 61.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/1.129, allocations: 19.33 kB / 480.4 MB, free: 61.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007165/1.137, allocations: 5.887 MB / 486.3 MB, free: 55.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.137, allocations: 4.062 kB / 486.3 MB, free: 55.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004471/1.141, allocations: 2.066 MB / 488.4 MB, free: 53.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009654/1.142, allocations: 344.6 kB / 488.7 MB, free: 53.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003475/1.142, allocations: 15.52 kB / 488.7 MB, free: 53.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/1.144, allocations: 35.27 kB / 488.8 MB, free: 53.03 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003496/1.144, allocations: 121.3 kB / 488.9 MB, free: 52.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/1.144, allocations: 46.34 kB / 488.9 MB, free: 52.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001236/1.145, allocations: 0.6664 MB / 489.6 MB, free: 52.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.145, allocations: 3.938 kB / 489.6 MB, free: 52.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003503/1.149, allocations: 0.6391 MB / 490.3 MB, free: 51.66 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.004762/1.154, allocations: 3.236 MB / 493.5 MB, free: 48.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005242/1.159, allocations: 3.084 MB / 496.6 MB, free: 45.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/1.159, allocations: 0 / 496.6 MB, free: 45.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001983/1.161, allocations: 1.19 MB / 497.8 MB, free: 44.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/1.163, allocations: 255.9 kB / 498 MB, free: 43.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007033/1.17, allocations: 2.574 MB / 0.4889 GB, free: 41.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009803/1.171, allocations: 1.361 MB / 0.4902 GB, free: 40.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/1.172, allocations: 0.6319 MB / 0.4908 GB, free: 39.9 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/1.172, allocations: 4 kB / 0.4908 GB, free: 39.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.396/4.568, allocations: 49.22 MB / 0.5389 GB, free: 8.949 MB / 378.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