Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.102/2.102, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.364e-05/3.377e-05, allocations: 4 kB / 292.3 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.41 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.532/0.6411, allocations: 105.3 MB / 448 MB, free: 5.156 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004675/0.6416, allocations: 93.06 kB / 448.1 MB, free: 5.105 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2568/0.8984, allocations: 42.27 MB / 490.4 MB, free: 14.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.969e-06/0.8985, allocations: 8 kB / 490.4 MB, free: 14.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002297/0.8988, allocations: 36 kB / 490.4 MB, free: 14.69 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 412 * Number of variables: 412 Notification: Performance of Generate backend data structure: time 0.006575/0.9053, allocations: 1.826 MB / 492.2 MB, free: 12.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.816e-05/0.9054, allocations: 12.03 kB / 492.2 MB, free: 12.78 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008987/0.9063, allocations: 232.3 kB / 492.5 MB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/0.9078, allocations: 261.3 kB / 492.7 MB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004502/0.9123, allocations: 1.202 MB / 493.9 MB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.9126, allocations: 115.2 kB / 494 MB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006636/0.9133, allocations: 164 kB / 494.2 MB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005798/0.9191, allocations: 1.655 MB / 495.8 MB, free: 9.012 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.095e-05/0.9192, allocations: 12.25 kB / 495.9 MB, free: 9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002867/0.9195, allocations: 67.95 kB / 495.9 MB, free: 8.934 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.238e-05/0.9196, allocations: 40 kB / 496 MB, free: 8.895 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004669/0.9243, allocations: 1.177 MB / 497.1 MB, free: 7.715 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01873/0.9431, allocations: 6.967 MB / 0.4923 GB, free: 496 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00312/0.9463, allocations: 1.009 MB / 0.4933 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002031/0.9483, allocations: 0.6542 MB / 0.4939 GB, free: 14.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.9485, allocations: 16.98 kB / 0.4939 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002103/0.9506, allocations: 0.709 MB / 0.4946 GB, free: 14.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 5.299e-06/0.9507, allocations: 0 / 0.4946 GB, free: 14.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.009881/0.9606, allocations: 3.048 MB / 0.4976 GB, free: 10.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001734/0.9608, allocations: 204.9 kB / 0.4978 GB, free: 10.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/0.9642, allocations: 1.168 MB / 0.4989 GB, free: 9.484 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003294/0.9645, allocations: 53.69 kB / 0.499 GB, free: 9.426 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.9658, allocations: 0.7856 MB / 0.4998 GB, free: 8.629 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007589/0.9666, allocations: 386.6 kB / 0.5001 GB, free: 8.246 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.9668, allocations: 36 kB / 0.5002 GB, free: 8.211 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002597/0.9671, allocations: 365.9 kB / 0.5005 GB, free: 7.848 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.9685, allocations: 435.9 kB / 0.5009 GB, free: 7.422 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/0.9706, allocations: 0.8251 MB / 0.5017 GB, free: 6.422 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.9725, allocations: 0.5916 MB / 0.5023 GB, free: 5.812 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-05/0.9725, allocations: 4 kB / 0.5023 GB, free: 5.809 MB / 426.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005994/0.9785, allocations: 1.785 MB / 0.5041 GB, free: 3.984 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002654/0.9813, allocations: 4.971 MB / 0.5089 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.735e-05/0.9814, allocations: 16 kB / 0.5089 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.9832, allocations: 334.4 kB / 0.5092 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00169/0.985, allocations: 223.6 kB / 0.5095 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01549/1.001, allocations: 6.126 MB / 0.5154 GB, free: 7.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003083/1.004, allocations: 75.94 kB / 0.5155 GB, free: 7.539 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004053/1.004, allocations: 64 kB / 0.5156 GB, free: 7.477 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/1.004, allocations: 4 kB / 0.5156 GB, free: 7.473 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005488/1.01, allocations: 1.683 MB / 0.5172 GB, free: 5.762 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.495e-05/1.01, allocations: 19.98 kB / 0.5172 GB, free: 5.742 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/1.011, allocations: 334.8 kB / 0.5176 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/1.013, allocations: 223.7 kB / 0.5178 GB, free: 5.188 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.341/1.354, allocations: 6.103 MB / 0.5237 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/1.356, allocations: 66.83 kB / 0.5238 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003955/1.357, allocations: 66.09 kB / 0.5239 GB, free: 117.8 MB / 442.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_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (140): * Single equations (assignments): 134 * 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.0006157/1.357, allocations: 280.3 kB / 0.5241 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005256/1.358, allocations: 169.8 kB / 0.5243 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005126/1.363, allocations: 1.537 MB / 0.5258 GB, free: 117.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.779e-05/1.363, allocations: 12.92 kB / 0.5258 GB, free: 117.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/1.363, allocations: 3.375 kB / 0.5258 GB, free: 117.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-05/1.363, allocations: 5.766 kB / 0.5258 GB, free: 117.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009434/1.373, allocations: 3.239 MB / 0.529 GB, free: 117 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/1.373, allocations: 2.094 kB / 0.529 GB, free: 117 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/1.374, allocations: 121.4 kB / 0.5291 GB, free: 117 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001585/1.375, allocations: 332.7 kB / 0.5294 GB, free: 117 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002914/1.376, allocations: 30.09 kB / 0.5294 GB, free: 117 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008929/1.385, allocations: 6.091 MB / 0.5354 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/1.385, allocations: 2.938 kB / 0.5354 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006452/1.391, allocations: 2.391 MB / 0.5377 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.393, allocations: 377.3 kB / 0.5381 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006272/1.393, allocations: 31.56 kB / 0.5381 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/1.395, allocations: 55.28 kB / 0.5382 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005504/1.396, allocations: 114.5 kB / 0.5383 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001945/1.396, allocations: 47.81 kB / 0.5383 GB, free: 112.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002515/1.398, allocations: 0.8758 MB / 0.5392 GB, free: 112.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.398, allocations: 3.609 kB / 0.5392 GB, free: 112.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005133/1.403, allocations: 0.7657 MB / 0.5399 GB, free: 112.4 MB / 442.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_last,meanVoltage.y_last,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 (82): * Single equations (assignments): 71 * 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.007486/1.411, allocations: 3.587 MB / 0.5434 GB, free: 110.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007756/1.419, allocations: 3.234 MB / 0.5466 GB, free: 109.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.419, allocations: 4.625 kB / 0.5466 GB, free: 109.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002867/1.422, allocations: 1.234 MB / 0.5478 GB, free: 109.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002895/1.425, allocations: 326.3 kB / 0.5481 GB, free: 109.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/1.435, allocations: 2.676 MB / 0.5507 GB, free: 108.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/1.436, allocations: 1.361 MB / 0.5521 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00217/1.439, allocations: 279.9 kB / 0.5523 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.44, allocations: 0.6212 MB / 0.5529 GB, free: 107.3 MB / 442.7 MB Notification: Performance of SimCode: time 2.295e-06/1.44, allocations: 0 / 0.5529 GB, free: 107.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1154/1.555, allocations: 43.72 MB / 0.5956 GB, free: 90.07 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/1.555, allocations: 204.3 kB / 0.5958 GB, free: 89.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.681/6.236, allocations: 0 / 0.5958 GB, free: 89.84 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat