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 2.137/2.137, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.844e-05/2.86e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3214, allocations: 44.49 MB / 294.2 MB, free: 14.39 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1441/0.4655, allocations: 79.13 MB / 373.4 MB, free: 2.703 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.466, allocations: 91.92 kB / 373.4 MB, free: 2.613 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07655/0.5425, allocations: 14.54 MB / 388 MB, free: 3.961 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.034e-06/0.5426, allocations: 3.984 kB / 388 MB, free: 3.957 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001077/0.5427, allocations: 27.94 kB / 388 MB, free: 3.93 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.004112/0.5469, allocations: 1.047 MB / 389.1 MB, free: 2.824 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.755e-05/0.5469, allocations: 8.031 kB / 389.1 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005438/0.5475, allocations: 118.6 kB / 389.2 MB, free: 2.699 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002346/0.5499, allocations: 0.6253 MB / 389.8 MB, free: 2.031 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.801e-05/0.55, allocations: 28 kB / 389.8 MB, free: 2.004 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002751/0.5503, allocations: 52 kB / 389.9 MB, free: 1.953 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002808/0.5531, allocations: 0.621 MB / 390.5 MB, free: 1.332 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.5561, allocations: 0.7914 MB / 391.3 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.773e-05/0.5562, allocations: 4 kB / 391.3 MB, free: 500 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001538/0.5564, allocations: 4 kB / 391.3 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-05/0.5565, allocations: 23.95 kB / 391.3 MB, free: 472 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009122/0.5656, allocations: 3.523 MB / 394.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/0.5676, allocations: 0.7265 MB / 395.6 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.5687, allocations: 419.6 kB / 396 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.897e-05/0.5688, allocations: 8.781 kB / 396 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.5699, allocations: 407.8 kB / 396.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 3.717e-06/0.57, allocations: 0 / 396.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.002531/0.5725, allocations: 0.7821 MB / 397.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.5727, allocations: 123.6 kB / 397.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000928/0.5736, allocations: 433.9 kB / 397.7 MB, free: 9.891 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001678/0.5738, allocations: 29.7 kB / 397.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004423/0.5743, allocations: 368.4 kB / 398.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000329/0.5746, allocations: 228.6 kB / 398.3 MB, free: 9.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/0.5747, allocations: 4 kB / 398.3 MB, free: 9.258 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.5749, allocations: 378.7 kB / 398.7 MB, free: 8.879 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000667/0.5756, allocations: 221.6 kB / 398.9 MB, free: 8.664 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007921/0.5764, allocations: 366.8 kB / 399.3 MB, free: 8.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006592/0.5771, allocations: 240.5 kB / 399.5 MB, free: 8.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.5771, allocations: 3.938 kB / 399.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002297/0.5794, allocations: 0.7919 MB / 400.3 MB, free: 7.215 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007382/0.5802, allocations: 1.339 MB / 401.7 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.5802, allocations: 4 kB / 401.7 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.5818, allocations: 312.6 kB / 402 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007961/0.5826, allocations: 91.89 kB / 402.1 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007817/0.5905, allocations: 3.517 MB / 405.6 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009783/0.5915, allocations: 71.45 kB / 405.6 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.5916, allocations: 28 kB / 405.7 MB, free: 1.633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.5917, allocations: 7.984 kB / 405.7 MB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002072/0.5937, allocations: 0.7065 MB / 406.4 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.5938, allocations: 0 / 406.4 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.5952, allocations: 313.1 kB / 406.7 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006924/0.5959, allocations: 83.89 kB / 406.8 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008074/0.604, allocations: 3.525 MB / 410.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008459/0.6049, allocations: 51.56 kB / 410.4 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.508e-05/0.605, allocations: 24 kB / 410.4 MB, free: 12.8 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,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.0003177/0.6053, allocations: 150 kB / 410.5 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002286/0.6076, allocations: 0.7812 MB / 411.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.6078, allocations: 71.16 kB / 411.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002695/0.6081, allocations: 79.23 kB / 411.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.6081, allocations: 8 kB / 411.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.6081, allocations: 3.938 kB / 411.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.6081, allocations: 3.984 kB / 411.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003919/0.612, allocations: 1.728 MB / 413.2 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.6121, allocations: 0 / 413.2 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.6126, allocations: 63.91 kB / 413.3 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001333/0.614, allocations: 296.9 kB / 413.5 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.043e-05/0.614, allocations: 7.984 kB / 413.6 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007388/0.6214, allocations: 3.521 MB / 417.1 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.6215, allocations: 0 / 417.1 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003089/0.6246, allocations: 1.217 MB / 418.3 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006069/0.6252, allocations: 236.1 kB / 418.5 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.6254, allocations: 8 kB / 418.5 MB, free: 4.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007403/0.6262, allocations: 27.97 kB / 418.6 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003172/0.6265, allocations: 84.59 kB / 418.6 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.657e-05/0.6266, allocations: 24.06 kB / 418.7 MB, free: 4.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005895/0.6272, allocations: 319 kB / 419 MB, free: 3.969 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6272, allocations: 0 / 419 MB, free: 3.969 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001828/0.6291, allocations: 406.8 kB / 419.4 MB, free: 3.57 MB / 362.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.003405/0.6325, allocations: 1.789 MB / 421.2 MB, free: 1.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004357/0.6369, allocations: 1.665 MB / 422.8 MB, free: 40 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.709e-06/0.6369, allocations: 4 kB / 422.8 MB, free: 36 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2456/0.8826, allocations: 0.6073 MB / 423.4 MB, free: 104.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.8837, allocations: 102.5 kB / 423.5 MB, free: 104.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004985/0.8887, allocations: 1.232 MB / 424.8 MB, free: 104.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006928/0.8895, allocations: 1.019 MB / 425.8 MB, free: 103.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007536/0.8902, allocations: 86 kB / 425.9 MB, free: 103.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004684/0.8907, allocations: 275.2 kB / 426.1 MB, free: 103.7 MB / 362.7 MB Notification: Performance of SimCode: time 2.275e-06/0.8907, allocations: 0 / 426.1 MB, free: 103.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1261/1.017, allocations: 20.75 MB / 446.9 MB, free: 97.36 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/1.017, allocations: 158.6 kB / 447 MB, free: 97.17 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.371/4.388, allocations: 0 / 447 MB, free: 97.17 MB / 362.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