Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.122e-05/3.132e-05, allocations: 4 kB / 269.5 MB, free: 6.285 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09738/0.09744, allocations: 47.57 MB / 317 MB, free: 6.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5022/0.5997, allocations: 104 MB / 421 MB, free: 332 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003442/0.6001, allocations: 91.05 kB / 421.1 MB, free: 284 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1866/0.7868, allocations: 42.06 MB / 463.2 MB, free: 12.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.7869, allocations: 0 / 463.2 MB, free: 12.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004368/0.7873, allocations: 39.98 kB / 463.2 MB, free: 12.8 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.006518/0.7939, allocations: 1.829 MB / 465.1 MB, free: 11.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.7939, allocations: 8.031 kB / 465.1 MB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007401/0.7947, allocations: 233.5 kB / 465.3 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/0.7959, allocations: 265.2 kB / 465.6 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004092/0.8, allocations: 1.199 MB / 466.8 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.8002, allocations: 119.5 kB / 466.9 MB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005233/0.8008, allocations: 167.9 kB / 467 MB, free: 9.133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005163/0.8059, allocations: 1.647 MB / 468.7 MB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.598e-05/0.8061, allocations: 7.938 kB / 468.7 MB, free: 7.395 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002524/0.8063, allocations: 64 kB / 468.8 MB, free: 7.332 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.818e-05/0.8064, allocations: 40 kB / 468.8 MB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004037/0.8104, allocations: 1.169 MB / 470 MB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01589/0.8264, allocations: 6.959 MB / 476.9 MB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002733/0.8292, allocations: 1.032 MB / 478 MB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.8309, allocations: 0.6533 MB / 478.6 MB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.682e-05/0.8311, allocations: 13 kB / 478.6 MB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001725/0.8328, allocations: 0.709 MB / 479.3 MB, free: 12.44 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 4.268e-06/0.8328, allocations: 0 / 479.3 MB, free: 12.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.00841/0.8412, allocations: 3.048 MB / 482.4 MB, free: 9.289 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001594/0.8414, allocations: 208.9 kB / 482.6 MB, free: 9.043 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002775/0.8442, allocations: 1.169 MB / 483.8 MB, free: 7.867 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002668/0.8445, allocations: 57.7 kB / 483.8 MB, free: 7.805 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.8456, allocations: 0.7973 MB / 484.6 MB, free: 6.996 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005699/0.8462, allocations: 374.7 kB / 485 MB, free: 6.625 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.8463, allocations: 28 kB / 485 MB, free: 6.598 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.8465, allocations: 357.9 kB / 485.3 MB, free: 6.242 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.8478, allocations: 439.9 kB / 485.8 MB, free: 5.812 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.8494, allocations: 0.825 MB / 486.6 MB, free: 4.812 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.8508, allocations: 0.5876 MB / 487.2 MB, free: 4.207 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.8509, allocations: 4 kB / 487.2 MB, free: 4.203 MB / 394.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004764/0.8557, allocations: 1.788 MB / 489 MB, free: 2.379 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002113/0.8578, allocations: 4.974 MB / 494 MB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.417e-05/0.8579, allocations: 15.98 kB / 494 MB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001725/0.8596, allocations: 342.3 kB / 494.3 MB, free: 12.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.8613, allocations: 219.7 kB / 494.5 MB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.8735, allocations: 6.126 MB / 0.4889 GB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002599/0.8762, allocations: 67.97 kB / 0.489 GB, free: 5.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003088/0.8765, allocations: 68 kB / 0.489 GB, free: 5.863 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.8765, allocations: 4 kB / 0.489 GB, free: 5.859 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007029/0.8836, allocations: 1.687 MB / 0.4907 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.236e-05/0.8837, allocations: 12 kB / 0.4907 GB, free: 4.133 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00206/0.8858, allocations: 347.6 kB / 0.491 GB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/0.8878, allocations: 215.6 kB / 0.4912 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/0.9013, allocations: 6.114 MB / 0.4972 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/0.9037, allocations: 60.11 kB / 0.4973 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002852/0.9041, allocations: 80.05 kB / 0.4973 GB, free: 12.92 MB / 426.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 (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.0007061/0.9048, allocations: 277.3 kB / 0.4976 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005745/0.9054, allocations: 177.9 kB / 0.4978 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006152/0.9116, allocations: 1.531 MB / 0.4993 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.021e-05/0.9117, allocations: 12 kB / 0.4993 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.9117, allocations: 0 / 0.4993 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.884e-05/0.9117, allocations: 7.969 kB / 0.4993 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01176/0.9235, allocations: 3.235 MB / 0.5025 GB, free: 7.527 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.9236, allocations: 0 / 0.5025 GB, free: 7.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.925, allocations: 124 kB / 0.5026 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/0.9269, allocations: 322.9 kB / 0.5029 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000173/0.9271, allocations: 31.98 kB / 0.5029 GB, free: 7.051 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01286/0.94, allocations: 6.096 MB / 0.5089 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.9401, allocations: 3.938 kB / 0.5089 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2869/1.227, allocations: 2.388 MB / 0.5112 GB, free: 117.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/1.228, allocations: 380.1 kB / 0.5116 GB, free: 117.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004064/1.229, allocations: 35.12 kB / 0.5116 GB, free: 117.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/1.23, allocations: 51.34 kB / 0.5116 GB, free: 117.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/1.231, allocations: 120.8 kB / 0.5118 GB, free: 117.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/1.231, allocations: 43.2 kB / 0.5118 GB, free: 117.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002125/1.233, allocations: 0.879 MB / 0.5127 GB, free: 117.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.182e-06/1.233, allocations: 1.094 kB / 0.5127 GB, free: 117.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004385/1.237, allocations: 0.768 MB / 0.5134 GB, free: 117.4 MB / 426.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 (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.006452/1.244, allocations: 3.575 MB / 0.5169 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007075/1.251, allocations: 3.229 MB / 0.5201 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/1.251, allocations: 1.156 kB / 0.5201 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002769/1.254, allocations: 1.232 MB / 0.5213 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002669/1.256, allocations: 329.9 kB / 0.5216 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009472/1.266, allocations: 2.678 MB / 0.5242 GB, free: 113.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/1.267, allocations: 1.354 MB / 0.5255 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002134/1.269, allocations: 282.3 kB / 0.5258 GB, free: 112.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/1.271, allocations: 0.6239 MB / 0.5264 GB, free: 112.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/1.271, allocations: 0 / 0.5264 GB, free: 112.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1226/1.393, allocations: 43.73 MB / 0.5691 GB, free: 98.11 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/1.393, allocations: 207.2 kB / 0.5693 GB, free: 97.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.731/6.125, allocations: 0 / 0.5693 GB, free: 97.89 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat