Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.946e-05/3.952e-05, allocations: 8 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2985, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4388, allocations: 79.42 MB / 373.6 MB, free: 2.555 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.4392, allocations: 87.94 kB / 373.7 MB, free: 2.469 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06102/0.5002, allocations: 14.89 MB / 388.6 MB, free: 3.469 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5003, allocations: 0 / 388.6 MB, free: 3.469 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001008/0.5004, allocations: 24 kB / 388.6 MB, free: 3.445 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.00328/0.5037, allocations: 1.079 MB / 389.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.5037, allocations: 8.031 kB / 389.7 MB, free: 2.301 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000444/0.5042, allocations: 110.7 kB / 389.8 MB, free: 2.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/0.5059, allocations: 0.6331 MB / 390.5 MB, free: 1.516 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.57e-05/0.506, allocations: 31.98 kB / 390.5 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/0.5062, allocations: 56 kB / 390.5 MB, free: 1.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002046/0.5083, allocations: 0.621 MB / 391.2 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/0.5105, allocations: 0.7993 MB / 392 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.82e-05/0.5106, allocations: 0 / 392 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.5107, allocations: 19.89 kB / 392 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.5108, allocations: 20 kB / 392 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008476/0.5193, allocations: 3.569 MB / 395.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.5212, allocations: 0.7261 MB / 396.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.5225, allocations: 439.1 kB / 396.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.622e-05/0.5226, allocations: 12.77 kB / 396.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00111/0.5237, allocations: 431.6 kB / 397.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=83): time 3.476e-06/0.5238, allocations: 0 / 397.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=83): time 0.0022/0.526, allocations: 0.7199 MB / 397.9 MB, free: 9.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.525e-05/0.5261, allocations: 123.6 kB / 398 MB, free: 9.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009373/0.527, allocations: 434 kB / 398.4 MB, free: 9.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.5272, allocations: 25.7 kB / 398.5 MB, free: 9.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004066/0.5276, allocations: 410.8 kB / 398.9 MB, free: 8.883 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003504/0.528, allocations: 244.5 kB / 399.1 MB, free: 8.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.5281, allocations: 3.938 kB / 399.1 MB, free: 8.637 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.5283, allocations: 338.8 kB / 399.4 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006773/0.529, allocations: 230.1 kB / 399.7 MB, free: 8.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008124/0.5298, allocations: 378 kB / 400 MB, free: 7.656 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006824/0.5305, allocations: 244.5 kB / 400.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.5305, allocations: 4 kB / 400.3 MB, free: 7.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002205/0.5327, allocations: 0.7635 MB / 401 MB, free: 6.633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006735/0.5334, allocations: 1.34 MB / 402.4 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.5335, allocations: 0 / 402.4 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.5349, allocations: 282.1 kB / 402.6 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008935/0.5358, allocations: 111.8 kB / 402.8 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008131/0.5439, allocations: 4.414 MB / 407.2 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.545, allocations: 75.55 kB / 407.2 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.5451, allocations: 28 kB / 407.3 MB, free: 52 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.5452, allocations: 4 kB / 407.3 MB, free: 48 kB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002093/0.5473, allocations: 0.715 MB / 408 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.5473, allocations: 4 kB / 408 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.5484, allocations: 278.1 kB / 408.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007672/0.5492, allocations: 99.83 kB / 408.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007681/0.5569, allocations: 4.382 MB / 412.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007867/0.5578, allocations: 55.56 kB / 412.8 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.963e-05/0.5579, allocations: 31.98 kB / 412.8 MB, free: 10.25 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 (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.0003337/0.5582, allocations: 142.1 kB / 413 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002089/0.5603, allocations: 0.7199 MB / 413.7 MB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.5606, allocations: 71.16 kB / 413.8 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.5609, allocations: 83.36 kB / 413.8 MB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.5609, allocations: 12 kB / 413.9 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5609, allocations: 0 / 413.9 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.5609, allocations: 3.984 kB / 413.9 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004166/0.5651, allocations: 1.739 MB / 415.6 MB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5651, allocations: 0 / 415.6 MB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000718/0.5659, allocations: 79.89 kB / 415.7 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.5671, allocations: 285.4 kB / 416 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.244e-05/0.5672, allocations: 4 kB / 416 MB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007444/0.5747, allocations: 4.416 MB / 420.4 MB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.5747, allocations: 0 / 420.4 MB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/0.5778, allocations: 1.218 MB / 421.6 MB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005821/0.5784, allocations: 236.2 kB / 421.8 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.5786, allocations: 7.984 kB / 421.8 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007235/0.5794, allocations: 27.97 kB / 421.9 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/0.5797, allocations: 84.66 kB / 421.9 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.429e-05/0.5798, allocations: 20 kB / 422 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005873/0.5804, allocations: 326.9 kB / 422.3 MB, free: 452 kB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5804, allocations: 0 / 422.3 MB, free: 452 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.00216/0.5826, allocations: 398.8 kB / 422.7 MB, free: 52 kB / 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,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 (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.246/0.8286, allocations: 1.787 MB / 424.5 MB, free: 103.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003941/0.8325, allocations: 1.811 MB / 426.3 MB, free: 102.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.8326, allocations: 0 / 426.3 MB, free: 102.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.8341, allocations: 0.6952 MB / 427 MB, free: 102.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.8352, allocations: 111.1 kB / 427.1 MB, free: 102.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004653/0.8399, allocations: 1.328 MB / 428.4 MB, free: 102.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007217/0.8406, allocations: 1.021 MB / 429.4 MB, free: 101.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000582/0.8412, allocations: 290.1 kB / 429.7 MB, free: 101.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8412, allocations: 0 / 429.7 MB, free: 101.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.137/3.979, allocations: 21.59 MB / 451.3 MB, free: 93.64 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_RL_res.mat does not exist to compare? outputFormat=mat