Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.134/2.134, allocations: 225.8 MB / 239.3 MB, free: 1.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.691e-05/3.707e-05, allocations: 3.984 kB / 292.8 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 50.42 MB / 343.2 MB, free: 8.957 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4652/0.5756, allocations: 86.94 MB / 430.1 MB, free: 7.785 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.576, allocations: 87 kB / 430.2 MB, free: 7.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06216/0.6382, allocations: 15.67 MB / 445.9 MB, free: 1.477 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6383, allocations: 4 kB / 445.9 MB, free: 1.473 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.821e-05/0.6384, allocations: 19.41 kB / 445.9 MB, free: 1.473 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003241/0.6416, allocations: 1.078 MB / 447 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.6417, allocations: 7.688 kB / 447 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004069/0.6421, allocations: 140.6 kB / 447.1 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003716/0.6425, allocations: 115.9 kB / 447.2 MB, free: 0.582 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.6441, allocations: 0.6425 MB / 447.9 MB, free: 216 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.983e-05/0.6443, allocations: 71.48 kB / 447.9 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002827/0.6445, allocations: 89.66 kB / 448 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.6472, allocations: 0.9229 MB / 449 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.597e-05/0.6473, allocations: 7.75 kB / 449 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.6475, allocations: 37.56 kB / 449 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.6475, allocations: 26.78 kB / 449 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002273/0.6498, allocations: 0.6727 MB / 449.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009145/0.659, allocations: 3.789 MB / 453.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00221/0.6613, allocations: 0.761 MB / 454.2 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.6628, allocations: 470.2 kB / 454.7 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.6629, allocations: 8.781 kB / 454.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.6643, allocations: 442.1 kB / 455.1 MB, free: 13.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=83): time 4.839e-06/0.6643, allocations: 4 kB / 455.2 MB, free: 13.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=83): time 0.002649/0.667, allocations: 0.8077 MB / 456 MB, free: 12.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.6672, allocations: 111.6 kB / 456.1 MB, free: 12.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.6687, allocations: 0.5966 MB / 456.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002226/0.6689, allocations: 40.14 kB / 456.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004722/0.6694, allocations: 367.8 kB / 457.1 MB, free: 11.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004565/0.6699, allocations: 237.9 kB / 457.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.726e-05/0.67, allocations: 16.44 kB / 457.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003101/0.6703, allocations: 398.9 kB / 457.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008224/0.6711, allocations: 239.8 kB / 457.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009645/0.6721, allocations: 391.7 kB / 458.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009272/0.6731, allocations: 288.1 kB / 458.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.385e-05/0.6732, allocations: 4 kB / 458.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002931/0.6761, allocations: 0.9045 MB / 459.5 MB, free: 9.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007375/0.6769, allocations: 1.344 MB / 460.9 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.677, allocations: 0 / 460.9 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.6786, allocations: 289 kB / 461.1 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009773/0.6796, allocations: 111.5 kB / 461.2 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009124/0.6888, allocations: 4.567 MB / 465.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.6902, allocations: 101.6 kB / 465.9 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.6905, allocations: 27.73 kB / 465.9 MB, free: 4.074 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.6905, allocations: 4 kB / 465.9 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/0.6931, allocations: 0.8239 MB / 466.8 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/0.6932, allocations: 7.938 kB / 466.8 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.6946, allocations: 285.9 kB / 467.1 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008666/0.6955, allocations: 101.3 kB / 467.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008901/0.7044, allocations: 4.559 MB / 471.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.7057, allocations: 83.48 kB / 471.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/0.7059, allocations: 28 kB / 471.8 MB, free: 14.42 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003793/0.7063, allocations: 168.9 kB / 472 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.7066, allocations: 90.91 kB / 472.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003515/0.707, allocations: 104.4 kB / 472.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.707, allocations: 8 kB / 472.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.707, allocations: 0 / 472.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.7071, allocations: 3.984 kB / 472.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00559/0.7127, allocations: 1.937 MB / 474.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.7127, allocations: 0 / 474.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008892/0.7136, allocations: 75.89 kB / 474.2 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.7152, allocations: 277.5 kB / 474.5 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001735/0.7154, allocations: 19.98 kB / 474.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01307/0.7285, allocations: 4.567 MB / 479.1 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.7286, allocations: 0 / 479.1 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006131/0.7347, allocations: 1.308 MB / 480.4 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001158/0.736, allocations: 251.9 kB / 480.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004826/0.7365, allocations: 23.98 kB / 480.6 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.7381, allocations: 39.92 kB / 480.7 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006386/0.7388, allocations: 80.66 kB / 480.8 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001937/0.7391, allocations: 27.98 kB / 480.8 MB, free: 5.082 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001769/0.7409, allocations: 463.2 kB / 481.2 MB, free: 4.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.352e-06/0.741, allocations: 0 / 481.2 MB, free: 4.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004397/0.7454, allocations: 451.1 kB / 481.7 MB, free: 4.191 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$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,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.007067/0.7525, allocations: 1.903 MB / 483.6 MB, free: 2.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008256/0.7608, allocations: 1.873 MB / 485.4 MB, free: 324 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/0.7609, allocations: 0 / 485.4 MB, free: 324 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003185/0.7641, allocations: 0.7252 MB / 486.2 MB, free: 15.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.7666, allocations: 159.2 kB / 486.3 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009054/0.7757, allocations: 1.382 MB / 487.7 MB, free: 14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.7772, allocations: 1.02 MB / 488.7 MB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001448/0.7787, allocations: 122.6 kB / 488.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009712/0.7797, allocations: 291.3 kB / 489.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.693e-06/0.7798, allocations: 3.938 kB / 489.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/0.8814, allocations: 23.7 MB / 0.5008 GB, free: 5.184 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002716/0.8817, allocations: 205.8 kB / 0.501 GB, free: 4.957 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.647/4.528, allocations: 0 / 0.501 GB, free: 4.957 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat