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 2.058/2.058, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.485e-05/4.509e-05, allocations: 4 kB / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09945/0.09956, allocations: 44.51 MB / 299.9 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4503/0.5499, allocations: 80.09 MB / 380 MB, free: 21.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000406/0.5504, allocations: 86.03 kB / 380.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0657/0.6161, allocations: 15.05 MB / 395.2 MB, free: 19.19 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.526e-06/0.6162, allocations: 0 / 395.2 MB, free: 19.19 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001042/0.6163, allocations: 23.5 kB / 395.2 MB, free: 19.19 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.00378/0.6201, allocations: 1.083 MB / 396.3 MB, free: 18.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.6202, allocations: 7.812 kB / 396.3 MB, free: 18.52 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005055/0.6207, allocations: 143.2 kB / 396.4 MB, free: 18.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003762/0.6211, allocations: 112.9 kB / 396.5 MB, free: 18.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001892/0.623, allocations: 0.6359 MB / 397.2 MB, free: 18.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.208e-05/0.6231, allocations: 67.53 kB / 397.2 MB, free: 18.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002647/0.6234, allocations: 84.66 kB / 397.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/0.626, allocations: 0.926 MB / 398.2 MB, free: 17.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.207e-05/0.6261, allocations: 3.938 kB / 398.2 MB, free: 17.94 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001374/0.6262, allocations: 43.98 kB / 398.3 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.6262, allocations: 19.47 kB / 398.3 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002229/0.6285, allocations: 0.6823 MB / 399 MB, free: 17.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008588/0.6371, allocations: 3.766 MB / 402.8 MB, free: 16.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002066/0.6393, allocations: 0.7771 MB / 403.5 MB, free: 16.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.6406, allocations: 466 kB / 404 MB, free: 16.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001067/0.6407, allocations: 8.5 kB / 404 MB, free: 16.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.6419, allocations: 441 kB / 404.4 MB, free: 16.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 4.989e-06/0.642, allocations: 0 / 404.4 MB, free: 16.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.002212/0.6442, allocations: 0.8009 MB / 405.2 MB, free: 16.13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.6444, allocations: 118.7 kB / 405.3 MB, free: 16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.6456, allocations: 0.5855 MB / 405.9 MB, free: 15.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002374/0.6459, allocations: 43.64 kB / 406 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003208/0.6462, allocations: 386.1 kB / 406.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/0.6466, allocations: 250.6 kB / 406.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.732e-05/0.6467, allocations: 18.97 kB / 406.6 MB, free: 15.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.146e-05/0.6468, allocations: 336.1 kB / 406.9 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006772/0.6475, allocations: 251.9 kB / 407.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007469/0.6482, allocations: 382.9 kB / 407.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000704/0.649, allocations: 299.9 kB / 407.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.649, allocations: 0 / 407.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002192/0.6512, allocations: 0.8706 MB / 408.7 MB, free: 14.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003549/0.6516, allocations: 1.341 MB / 410.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.6516, allocations: 3.906 kB / 410.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001422/0.6531, allocations: 283.8 kB / 410.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009329/0.6541, allocations: 112.8 kB / 410.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008276/0.6624, allocations: 4.556 MB / 415 MB, free: 26.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.6636, allocations: 96.42 kB / 415.1 MB, free: 26.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/0.6638, allocations: 30.78 kB / 415.1 MB, free: 26.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.6639, allocations: 9.938 kB / 415.1 MB, free: 26.52 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002157/0.666, allocations: 0.831 MB / 416 MB, free: 26.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.6661, allocations: 3.906 kB / 416 MB, free: 26.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.6673, allocations: 281.9 kB / 416.3 MB, free: 26.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008217/0.6681, allocations: 98.81 kB / 416.4 MB, free: 26.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007763/0.6759, allocations: 4.546 MB / 420.9 MB, free: 23.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008583/0.6769, allocations: 71.33 kB / 421 MB, free: 23.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.439e-05/0.677, allocations: 28.92 kB / 421 MB, free: 23.57 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 (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.000413/0.6774, allocations: 165.8 kB / 421.2 MB, free: 23.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.6777, allocations: 78.19 kB / 421.2 MB, free: 23.4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003403/0.6781, allocations: 98.39 kB / 421.3 MB, free: 23.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.6781, allocations: 7.812 kB / 421.3 MB, free: 23.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.6781, allocations: 4 kB / 421.3 MB, free: 23.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.6782, allocations: 3.984 kB / 421.3 MB, free: 23.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004894/0.6831, allocations: 1.937 MB / 423.3 MB, free: 22.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.6831, allocations: 3.875 kB / 423.3 MB, free: 22.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007434/0.6839, allocations: 72.73 kB / 423.4 MB, free: 22.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001264/0.6852, allocations: 284.6 kB / 423.6 MB, free: 22.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.6854, allocations: 17.83 kB / 423.7 MB, free: 22.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007559/0.693, allocations: 4.559 MB / 428.2 MB, free: 19.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.6931, allocations: 0 / 428.2 MB, free: 19.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003238/0.6963, allocations: 1.301 MB / 429.5 MB, free: 18.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007014/0.6971, allocations: 255 kB / 429.8 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/0.6973, allocations: 15.91 kB / 429.8 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008247/0.6981, allocations: 39.59 kB / 429.8 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003404/0.6985, allocations: 87.77 kB / 429.9 MB, free: 18.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.967e-05/0.6986, allocations: 23.58 kB / 429.9 MB, free: 18.16 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008918/0.6995, allocations: 466.3 kB / 430.4 MB, free: 17.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6995, allocations: 0 / 430.4 MB, free: 17.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002215/0.7017, allocations: 446.3 kB / 430.8 MB, free: 17.81 MB / 330.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.003735/0.7055, allocations: 1.892 MB / 432.7 MB, free: 16.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004525/0.7101, allocations: 1.906 MB / 434.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/0.7102, allocations: 7.922 kB / 434.6 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00182/0.712, allocations: 0.7259 MB / 435.3 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.7135, allocations: 157.5 kB / 435.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005576/0.7192, allocations: 1.419 MB / 436.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008673/0.7201, allocations: 1.018 MB / 437.9 MB, free: 12.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006822/0.7208, allocations: 300.9 kB / 438.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/0.7209, allocations: 0 / 438.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.073/3.793, allocations: 22.56 MB / 460.8 MB, free: 10.25 MB / 346.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