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.104/2.104, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.933e-05/4.955e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1214, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4599/0.5814, allocations: 80.1 MB / 380.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003618/0.5818, allocations: 87.3 kB / 380.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0608/0.6426, allocations: 15.06 MB / 395.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6427, allocations: 0 / 395.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001163/0.6428, allocations: 23.59 kB / 395.2 MB, free: 10.88 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.003575/0.6464, allocations: 1.074 MB / 396.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.6465, allocations: 7.594 kB / 396.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004128/0.6469, allocations: 131.4 kB / 396.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003407/0.6473, allocations: 113.2 kB / 396.5 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/0.649, allocations: 0.6425 MB / 397.2 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.072e-05/0.6491, allocations: 68.75 kB / 397.3 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.6493, allocations: 86.59 kB / 397.3 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.6518, allocations: 0.9141 MB / 398.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.643e-05/0.6519, allocations: 0 / 398.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.6521, allocations: 39.7 kB / 398.3 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.6521, allocations: 23.41 kB / 398.3 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.6542, allocations: 0.6714 MB / 399 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008146/0.6624, allocations: 3.764 MB / 402.8 MB, free: 7.797 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.6643, allocations: 0.7651 MB / 403.5 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.6655, allocations: 466.9 kB / 404 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.6657, allocations: 8.5 kB / 404 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001061/0.6667, allocations: 448.1 kB / 404.4 MB, free: 7.562 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 3.317e-06/0.6668, allocations: 0 / 404.4 MB, free: 7.562 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.002103/0.6689, allocations: 0.7949 MB / 405.2 MB, free: 7.422 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.669, allocations: 111.3 kB / 405.3 MB, free: 7.297 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.6702, allocations: 0.5903 MB / 405.9 MB, free: 7.121 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.6704, allocations: 45.52 kB / 406 MB, free: 7.086 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002997/0.6708, allocations: 379.8 kB / 406.3 MB, free: 6.844 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/0.6711, allocations: 262.7 kB / 406.6 MB, free: 6.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.378e-05/0.6711, allocations: 14.22 kB / 406.6 MB, free: 6.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.6712, allocations: 341.2 kB / 406.9 MB, free: 6.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006592/0.6719, allocations: 247 kB / 407.2 MB, free: 6.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007224/0.6726, allocations: 385.9 kB / 407.5 MB, free: 6.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006743/0.6733, allocations: 289.3 kB / 407.8 MB, free: 6.109 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.6734, allocations: 4 kB / 407.8 MB, free: 6.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002123/0.6755, allocations: 0.8632 MB / 408.7 MB, free: 5.934 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003216/0.6759, allocations: 1.34 MB / 410 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.6759, allocations: 3.875 kB / 410 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.6773, allocations: 300.3 kB / 410.3 MB, free: 4.453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008763/0.6782, allocations: 108.5 kB / 410.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007604/0.6858, allocations: 4.552 MB / 415 MB, free: 17.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.687, allocations: 108 kB / 415.1 MB, free: 17.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.6872, allocations: 26.19 kB / 415.1 MB, free: 17.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.6872, allocations: 7.812 kB / 415.1 MB, free: 17.38 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002042/0.6893, allocations: 0.8148 MB / 415.9 MB, free: 17.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.6893, allocations: 3.875 kB / 416 MB, free: 17.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.6904, allocations: 288.9 kB / 416.2 MB, free: 17.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007886/0.6913, allocations: 100.6 kB / 416.3 MB, free: 17.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007408/0.6987, allocations: 4.541 MB / 420.9 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008129/0.6995, allocations: 61.5 kB / 420.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.168e-05/0.6996, allocations: 30.83 kB / 421 MB, free: 14.17 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.0003446/0.7, allocations: 168.7 kB / 421.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002683/0.7003, allocations: 84.94 kB / 421.2 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002984/0.7006, allocations: 97.14 kB / 421.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.7006, allocations: 7.75 kB / 421.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.7006, allocations: 0 / 421.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.7006, allocations: 3.984 kB / 421.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/0.705, allocations: 1.941 MB / 423.3 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.705, allocations: 0 / 423.3 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000738/0.7058, allocations: 76.08 kB / 423.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.707, allocations: 279.5 kB / 423.6 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.7072, allocations: 25.45 kB / 423.6 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007391/0.7146, allocations: 4.563 MB / 428.2 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.7147, allocations: 3.969 kB / 428.2 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003421/0.7181, allocations: 1.292 MB / 429.5 MB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007803/0.7189, allocations: 258.9 kB / 429.7 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/0.7192, allocations: 19.89 kB / 429.8 MB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008769/0.7201, allocations: 39.14 kB / 429.8 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003437/0.7204, allocations: 87.14 kB / 429.9 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.581e-05/0.7205, allocations: 27.3 kB / 429.9 MB, free: 8.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009414/0.7215, allocations: 456.8 kB / 430.4 MB, free: 7.984 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.223e-06/0.7215, allocations: 3.875 kB / 430.4 MB, free: 7.984 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002519/0.724, allocations: 439.3 kB / 430.8 MB, free: 7.895 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.004017/0.7281, allocations: 1.879 MB / 432.7 MB, free: 6.617 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004748/0.7329, allocations: 1.859 MB / 434.5 MB, free: 5.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/0.7329, allocations: 3.984 kB / 434.5 MB, free: 5.391 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.7348, allocations: 0.7119 MB / 435.2 MB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/0.7362, allocations: 152.9 kB / 435.4 MB, free: 4.828 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005759/0.742, allocations: 1.414 MB / 436.8 MB, free: 3.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008308/0.7429, allocations: 1.017 MB / 437.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007424/0.7437, allocations: 309.8 kB / 438.1 MB, free: 2.883 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.7437, allocations: 4 kB / 438.1 MB, free: 2.879 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.351/4.095, allocations: 22.5 MB / 460.6 MB, free: 444 kB / 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