Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.045/2.045, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.244e-05/3.259e-05, allocations: 8.297 kB / 292.3 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.41 MB / 342.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4473/0.5563, allocations: 86.87 MB / 429.5 MB, free: 7.023 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.5566, allocations: 94.8 kB / 429.6 MB, free: 6.969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06364/0.6203, allocations: 15.34 MB / 445 MB, free: 10.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6204, allocations: 0 / 445 MB, free: 10.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001013/0.6205, allocations: 20 kB / 445 MB, free: 10.04 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.003536/0.6241, allocations: 1.061 MB / 446 MB, free: 8.984 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.6241, allocations: 8.031 kB / 446.1 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004102/0.6246, allocations: 136 kB / 446.2 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003616/0.6249, allocations: 114.7 kB / 446.3 MB, free: 8.773 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.6267, allocations: 0.6351 MB / 446.9 MB, free: 8.254 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-05/0.6268, allocations: 65.19 kB / 447 MB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002231/0.627, allocations: 89.89 kB / 447.1 MB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002554/0.6296, allocations: 0.9067 MB / 448 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.824e-05/0.6297, allocations: 7.906 kB / 448 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.6298, allocations: 34.06 kB / 448 MB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.898e-05/0.6299, allocations: 20 kB / 448.1 MB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.6325, allocations: 0.6634 MB / 448.7 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.6438, allocations: 3.718 MB / 452.4 MB, free: 4.195 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002937/0.6468, allocations: 0.7544 MB / 453.2 MB, free: 3.742 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.6487, allocations: 441.8 kB / 453.6 MB, free: 3.309 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.6488, allocations: 12.72 kB / 453.6 MB, free: 3.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001723/0.6505, allocations: 447.7 kB / 454.1 MB, free: 2.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 6.382e-06/0.6506, allocations: 0 / 454.1 MB, free: 2.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.004032/0.6546, allocations: 0.8445 MB / 454.9 MB, free: 1.984 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.6548, allocations: 115.6 kB / 455 MB, free: 1.848 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.6566, allocations: 0.5933 MB / 455.6 MB, free: 1.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002135/0.6569, allocations: 41.7 kB / 455.7 MB, free: 1.203 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005546/0.6574, allocations: 360.6 kB / 456 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004119/0.6579, allocations: 240.6 kB / 456.3 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.121e-05/0.658, allocations: 12 kB / 456.3 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002818/0.6583, allocations: 386.8 kB / 456.6 MB, free: 212 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.6593, allocations: 237.6 kB / 456.9 MB, free: 15.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.6606, allocations: 389.7 kB / 457.3 MB, free: 15.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.6617, allocations: 283.8 kB / 457.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.6617, allocations: 0 / 457.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003728/0.6654, allocations: 0.9016 MB / 458.4 MB, free: 14.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008538/0.6663, allocations: 1.34 MB / 459.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/0.6664, allocations: 8 kB / 459.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/0.6686, allocations: 317.5 kB / 460.1 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.6697, allocations: 99.78 kB / 460.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.6809, allocations: 3.619 MB / 463.8 MB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.6825, allocations: 99.28 kB / 463.9 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.6827, allocations: 31.98 kB / 463.9 MB, free: 8.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.6827, allocations: 4 kB / 463.9 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003272/0.686, allocations: 0.8133 MB / 464.8 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.6861, allocations: 7.953 kB / 464.8 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/0.688, allocations: 317.6 kB / 465.1 MB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009249/0.689, allocations: 91.77 kB / 465.2 MB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.7, allocations: 3.623 MB / 468.8 MB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.7015, allocations: 79.34 kB / 468.9 MB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.7016, allocations: 31.95 kB / 468.9 MB, free: 3.488 MB / 378.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 (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.0004339/0.7021, allocations: 164.8 kB / 469.1 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.7024, allocations: 82.97 kB / 469.1 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000406/0.7028, allocations: 96.27 kB / 469.2 MB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.7028, allocations: 8 kB / 469.2 MB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.7028, allocations: 3.984 kB / 469.2 MB, free: 3.129 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.7029, allocations: 3.984 kB / 469.2 MB, free: 3.125 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006161/0.709, allocations: 1.915 MB / 471.2 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.198e-06/0.7091, allocations: 0 / 471.2 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007534/0.7099, allocations: 59.91 kB / 471.2 MB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00194/0.7118, allocations: 312.8 kB / 471.5 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.712, allocations: 19.98 kB / 471.5 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009764/0.7218, allocations: 3.635 MB / 475.2 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.7218, allocations: 0 / 475.2 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003386/0.7252, allocations: 1.307 MB / 476.5 MB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006099/0.7259, allocations: 255.9 kB / 476.7 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/0.7261, allocations: 16 kB / 476.7 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008024/0.7269, allocations: 35.97 kB / 476.8 MB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003204/0.7272, allocations: 88.72 kB / 476.9 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.972e-05/0.7273, allocations: 24 kB / 476.9 MB, free: 11.22 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009584/0.7283, allocations: 455.2 kB / 477.3 MB, free: 10.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7283, allocations: 0 / 477.3 MB, free: 10.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002162/0.7305, allocations: 447.2 kB / 477.8 MB, free: 10.35 MB / 394.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_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 (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.003934/0.7345, allocations: 1.882 MB / 479.7 MB, free: 8.434 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004843/0.7394, allocations: 1.729 MB / 481.4 MB, free: 6.664 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.7394, allocations: 0 / 481.4 MB, free: 6.664 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/0.7415, allocations: 0.6301 MB / 482 MB, free: 6.027 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.743, allocations: 158.8 kB / 482.2 MB, free: 5.871 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005134/0.7482, allocations: 1.341 MB / 483.5 MB, free: 4.492 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008499/0.7491, allocations: 1.02 MB / 484.5 MB, free: 3.441 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007652/0.7498, allocations: 110.6 kB / 484.6 MB, free: 3.328 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005509/0.7504, allocations: 291.3 kB / 484.9 MB, free: 3.043 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7504, allocations: 4 kB / 484.9 MB, free: 3.039 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07862/0.8291, allocations: 24.03 MB / 0.497 GB, free: 11.36 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003387/0.8295, allocations: 197.4 kB / 0.4972 GB, free: 11.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.688/4.517, allocations: 3.281 kB / 0.4972 GB, free: 11.13 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat