Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.149/2.149, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.542e-05/2.552e-05, allocations: 0 / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3067, allocations: 44.5 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1434/0.4502, allocations: 79.13 MB / 373.3 MB, free: 2.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003346/0.4506, allocations: 83.95 kB / 373.4 MB, free: 2.668 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05915/0.5098, allocations: 14.55 MB / 388 MB, free: 4.008 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.5098, allocations: 0 / 388 MB, free: 4.008 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.576e-05/0.5099, allocations: 24 kB / 388 MB, free: 3.984 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.003126/0.5131, allocations: 1.055 MB / 389 MB, free: 2.871 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.5131, allocations: 8.031 kB / 389.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004171/0.5136, allocations: 114.6 kB / 389.2 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.5153, allocations: 0.6291 MB / 389.8 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.5154, allocations: 28 kB / 389.8 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/0.5156, allocations: 48 kB / 389.9 MB, free: 2.004 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001989/0.5176, allocations: 0.621 MB / 390.5 MB, free: 1.383 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.5198, allocations: 0.7875 MB / 391.3 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.66e-05/0.5198, allocations: 3.938 kB / 391.3 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.5199, allocations: 7.984 kB / 391.3 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.52, allocations: 23.95 kB / 391.3 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008253/0.5282, allocations: 3.515 MB / 394.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001966/0.5303, allocations: 0.727 MB / 395.6 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.5314, allocations: 419.6 kB / 396 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.916e-05/0.5315, allocations: 8.781 kB / 396 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.5326, allocations: 411.8 kB / 396.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 3.787e-06/0.5326, allocations: 0 / 396.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.002509/0.5351, allocations: 0.7782 MB / 397.2 MB, free: 10.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.513e-05/0.5352, allocations: 119.6 kB / 397.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009332/0.5362, allocations: 433.9 kB / 397.7 MB, free: 9.945 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.5363, allocations: 33.7 kB / 397.7 MB, free: 9.906 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004108/0.5368, allocations: 394.9 kB / 398.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003459/0.5371, allocations: 236.6 kB / 398.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.734e-05/0.5372, allocations: 0 / 398.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.5374, allocations: 342.8 kB / 398.7 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006574/0.5381, allocations: 237.5 kB / 398.9 MB, free: 8.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007833/0.5388, allocations: 358.9 kB / 399.3 MB, free: 8.305 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006685/0.5395, allocations: 240.4 kB / 399.5 MB, free: 8.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.5396, allocations: 0 / 399.5 MB, free: 8.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002148/0.5417, allocations: 0.7649 MB / 400.3 MB, free: 7.297 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007021/0.5424, allocations: 1.34 MB / 401.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.5425, allocations: 4 kB / 401.6 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.5441, allocations: 300.6 kB / 401.9 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007793/0.5449, allocations: 99.83 kB / 402 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007887/0.5528, allocations: 3.525 MB / 405.5 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009812/0.5538, allocations: 75.36 kB / 405.6 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.5539, allocations: 24 kB / 405.6 MB, free: 1.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.554, allocations: 4 kB / 405.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002081/0.556, allocations: 0.7104 MB / 406.3 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.5561, allocations: 4 kB / 406.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.5574, allocations: 297.2 kB / 406.6 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006757/0.5581, allocations: 87.83 kB / 406.7 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00754/0.5656, allocations: 3.485 MB / 410.2 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007103/0.5664, allocations: 51.56 kB / 410.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-05/0.5665, allocations: 28 kB / 410.3 MB, free: 12.93 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.0003058/0.5668, allocations: 133.2 kB / 410.4 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002443/0.5692, allocations: 0.7774 MB / 411.2 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.5695, allocations: 79.09 kB / 411.3 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.5699, allocations: 79.23 kB / 411.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/0.5699, allocations: 15.94 kB / 411.4 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.5699, allocations: 0 / 411.4 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.5699, allocations: 3.984 kB / 411.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004224/0.5742, allocations: 1.721 MB / 413.1 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.5742, allocations: 0 / 413.1 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000564/0.5748, allocations: 67.91 kB / 413.1 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.5762, allocations: 308.8 kB / 413.4 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.487e-05/0.5763, allocations: 0 / 413.4 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007653/0.5839, allocations: 3.529 MB / 417 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.584, allocations: 0 / 417 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.5871, allocations: 1.206 MB / 418.2 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005515/0.5876, allocations: 240.1 kB / 418.4 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.5878, allocations: 4 kB / 418.4 MB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007061/0.5885, allocations: 23.97 kB / 418.4 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003374/0.5889, allocations: 88.59 kB / 418.5 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.369e-05/0.589, allocations: 24.06 kB / 418.6 MB, free: 4.422 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006255/0.5896, allocations: 319 kB / 418.9 MB, free: 4.109 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5896, allocations: 0 / 418.9 MB, free: 4.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001916/0.5916, allocations: 402.9 kB / 419.3 MB, free: 3.715 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.00355/0.5951, allocations: 1.797 MB / 421.1 MB, free: 1.887 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004295/0.5995, allocations: 1.642 MB / 422.7 MB, free: 204 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.5995, allocations: 0 / 422.7 MB, free: 204 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2467/0.8462, allocations: 0.6108 MB / 423.3 MB, free: 104.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.8474, allocations: 100.3 kB / 423.4 MB, free: 104.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/0.8527, allocations: 1.266 MB / 424.7 MB, free: 104.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008225/0.8536, allocations: 1.013 MB / 425.7 MB, free: 103.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006242/0.8543, allocations: 289.2 kB / 426 MB, free: 103.5 MB / 362.7 MB Notification: Performance of SimCode: time 2.044e-06/0.8543, allocations: 0.9688 kB / 426 MB, free: 103.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.086/3.941, allocations: 17.51 MB / 443.5 MB, free: 99.88 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat