Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.184e-05, allocations: 0 / 255.5 MB, free: 2.594 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 44.49 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4659/0.5698, allocations: 79.8 MB / 379.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003313/0.5702, allocations: 87.84 kB / 379.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05414/0.6243, allocations: 14.71 MB / 394.6 MB, free: 11.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.6244, allocations: 3.938 kB / 394.6 MB, free: 11.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.72e-05/0.6245, allocations: 31.03 kB / 394.6 MB, free: 11.17 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.002873/0.6274, allocations: 1.046 MB / 395.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.6274, allocations: 11.44 kB / 395.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003337/0.6278, allocations: 131.3 kB / 395.8 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/0.6281, allocations: 116.6 kB / 395.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.6295, allocations: 0.6298 MB / 396.5 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/0.6296, allocations: 63.28 kB / 396.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001794/0.6298, allocations: 84.16 kB / 396.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.632, allocations: 0.9022 MB / 397.6 MB, free: 9.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.142e-05/0.6321, allocations: 0 / 397.6 MB, free: 9.969 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.6323, allocations: 32.56 kB / 397.6 MB, free: 9.969 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.6323, allocations: 27.3 kB / 397.6 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.6343, allocations: 0.6622 MB / 398.3 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007888/0.6422, allocations: 3.714 MB / 402 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.6441, allocations: 0.7512 MB / 402.8 MB, free: 8.074 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.6452, allocations: 437.9 kB / 403.2 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.49e-05/0.6453, allocations: 8.5 kB / 403.2 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001013/0.6463, allocations: 452.7 kB / 403.7 MB, free: 7.898 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 3.125e-06/0.6463, allocations: 3.938 kB / 403.7 MB, free: 7.895 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.002357/0.6487, allocations: 0.8372 MB / 404.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.6488, allocations: 123 kB / 404.6 MB, free: 7.602 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.6499, allocations: 0.581 MB / 405.2 MB, free: 7.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.6501, allocations: 44.2 kB / 405.2 MB, free: 7.398 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.6505, allocations: 354.3 kB / 405.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002818/0.6508, allocations: 245 kB / 405.8 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.661e-05/0.6508, allocations: 13.5 kB / 405.8 MB, free: 7.043 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.651, allocations: 387.6 kB / 406.2 MB, free: 6.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006878/0.6517, allocations: 237.8 kB / 406.4 MB, free: 6.703 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007195/0.6524, allocations: 377.9 kB / 406.8 MB, free: 6.551 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.6531, allocations: 289.8 kB / 407.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.304e-05/0.6531, allocations: 3.875 kB / 407.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002163/0.6553, allocations: 0.8911 MB / 408 MB, free: 6.297 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003201/0.6557, allocations: 1.353 MB / 409.3 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.6557, allocations: 7.859 kB / 409.4 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.6571, allocations: 315.8 kB / 409.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000737/0.6579, allocations: 96.89 kB / 409.8 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007082/0.665, allocations: 3.615 MB / 413.4 MB, free: 19.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.6661, allocations: 101.3 kB / 413.5 MB, free: 19.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-05/0.6662, allocations: 26.38 kB / 413.5 MB, free: 19.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.6663, allocations: 7.812 kB / 413.5 MB, free: 19.05 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002053/0.6683, allocations: 0.8204 MB / 414.3 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.6684, allocations: 3.875 kB / 414.3 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/0.6697, allocations: 322.5 kB / 414.6 MB, free: 18.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/0.6704, allocations: 93.3 kB / 414.7 MB, free: 18.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007154/0.6776, allocations: 3.614 MB / 418.4 MB, free: 17.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009915/0.6786, allocations: 74.7 kB / 418.4 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.002e-05/0.6787, allocations: 25.34 kB / 418.4 MB, free: 17.11 MB / 330.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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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 (62): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0003283/0.679, allocations: 176.8 kB / 418.6 MB, free: 16.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.6792, allocations: 84.89 kB / 418.7 MB, free: 16.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.6795, allocations: 95.05 kB / 418.8 MB, free: 16.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.6796, allocations: 7.781 kB / 418.8 MB, free: 16.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.6796, allocations: 3.938 kB / 418.8 MB, free: 16.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.6796, allocations: 3.984 kB / 418.8 MB, free: 16.9 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003935/0.6835, allocations: 1.914 MB / 420.7 MB, free: 16.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.6836, allocations: 4 kB / 420.7 MB, free: 16.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000544/0.6842, allocations: 66.55 kB / 420.8 MB, free: 16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.6855, allocations: 316.2 kB / 421.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.463e-05/0.6856, allocations: 15.78 kB / 421.1 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007052/0.6926, allocations: 3.625 MB / 424.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.6927, allocations: 4 kB / 424.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003209/0.6959, allocations: 1.293 MB / 426 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000658/0.6966, allocations: 254.9 kB / 426.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.6968, allocations: 11.84 kB / 426.3 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008029/0.6976, allocations: 47.5 kB / 426.3 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003128/0.6979, allocations: 87.7 kB / 426.4 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.12e-05/0.698, allocations: 23.48 kB / 426.5 MB, free: 11.99 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008884/0.6989, allocations: 448.5 kB / 426.9 MB, free: 11.76 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6989, allocations: 0 / 426.9 MB, free: 11.76 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001915/0.7009, allocations: 451.4 kB / 427.3 MB, free: 11.67 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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,meanVoltage.y) * 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 (48): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.003581/0.7045, allocations: 1.883 MB / 429.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004324/0.7088, allocations: 1.726 MB / 430.9 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.7089, allocations: 0 / 430.9 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.7107, allocations: 0.6405 MB / 431.6 MB, free: 8.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.7121, allocations: 150 kB / 431.7 MB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005065/0.7172, allocations: 1.331 MB / 433.1 MB, free: 8.109 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008/0.718, allocations: 1.009 MB / 434.1 MB, free: 7.258 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008334/0.7189, allocations: 108.8 kB / 434.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005481/0.7194, allocations: 293.1 kB / 434.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.7195, allocations: 7.812 kB / 434.5 MB, free: 6.941 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08603/0.8055, allocations: 23.9 MB / 458.4 MB, free: 2.82 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004021/0.806, allocations: 196.5 kB / 458.6 MB, free: 2.598 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.711/4.517, allocations: 3.906 kB / 458.6 MB, free: 2.594 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat