Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.212/2.212, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.132e-05, allocations: 2.562 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4397/0.548, allocations: 79.12 MB / 373.4 MB, free: 6.875 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.5483, allocations: 83.42 kB / 373.5 MB, free: 6.875 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05562/0.604, allocations: 14.55 MB / 388.1 MB, free: 18.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.604, allocations: 0 / 388.1 MB, free: 18.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.309e-05/0.6041, allocations: 26.91 kB / 388.1 MB, free: 18.09 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.002769/0.6069, allocations: 1.049 MB / 389.1 MB, free: 17.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.607, allocations: 7.75 kB / 389.1 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000271/0.6073, allocations: 116.9 kB / 389.3 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.6086, allocations: 0.6326 MB / 389.9 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.267e-05/0.6087, allocations: 26.91 kB / 389.9 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.6088, allocations: 50.28 kB / 390 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001731/0.6106, allocations: 0.6186 MB / 390.6 MB, free: 16.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002011/0.6126, allocations: 0.7868 MB / 391.4 MB, free: 16.63 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/0.6127, allocations: 4 kB / 391.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.6128, allocations: 7.828 kB / 391.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.6128, allocations: 22.89 kB / 391.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007268/0.6201, allocations: 3.523 MB / 394.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.6219, allocations: 0.7245 MB / 395.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009942/0.623, allocations: 406.6 kB / 396.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.369e-05/0.6231, allocations: 16.22 kB / 396.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/0.6241, allocations: 424.1 kB / 396.5 MB, free: 14.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 4.248e-06/0.6242, allocations: 0 / 396.5 MB, free: 14.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.002369/0.6265, allocations: 0.7719 MB / 397.3 MB, free: 14.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.506e-05/0.6267, allocations: 118.5 kB / 397.4 MB, free: 14.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008698/0.6275, allocations: 434.7 kB / 397.8 MB, free: 13.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.6277, allocations: 28.95 kB / 397.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.6281, allocations: 365.8 kB / 398.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003203/0.6284, allocations: 234 kB / 398.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.6285, allocations: 0 / 398.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002216/0.6287, allocations: 382.2 kB / 398.8 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005952/0.6293, allocations: 222.7 kB / 399 MB, free: 13.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007378/0.6301, allocations: 367.6 kB / 399.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006257/0.6307, allocations: 243 kB / 399.6 MB, free: 13.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.6308, allocations: 0 / 399.6 MB, free: 13.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002187/0.6329, allocations: 0.7916 MB / 400.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006897/0.6337, allocations: 1.34 MB / 401.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.6337, allocations: 3.875 kB / 401.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/0.6353, allocations: 303.6 kB / 402 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008019/0.6361, allocations: 96.45 kB / 402.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007698/0.6438, allocations: 3.517 MB / 405.6 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.6449, allocations: 74.19 kB / 405.7 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.908e-05/0.645, allocations: 30.66 kB / 405.7 MB, free: 9.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.6451, allocations: 5.906 kB / 405.7 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001953/0.647, allocations: 0.707 MB / 406.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.6471, allocations: 3.906 kB / 406.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001419/0.6485, allocations: 308.3 kB / 406.8 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000743/0.6493, allocations: 93.83 kB / 406.9 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007818/0.6571, allocations: 3.527 MB / 410.4 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009429/0.6581, allocations: 50.88 kB / 410.4 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.838e-05/0.6582, allocations: 24.72 kB / 410.5 MB, free: 7.859 MB / 314.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.0003468/0.6586, allocations: 142.5 kB / 410.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002372/0.6609, allocations: 0.7803 MB / 411.4 MB, free: 7.453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.6612, allocations: 66.09 kB / 411.4 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002936/0.6615, allocations: 82.73 kB / 411.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.6615, allocations: 7.781 kB / 411.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6615, allocations: 0 / 411.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.6615, allocations: 3.984 kB / 411.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/0.6658, allocations: 1.731 MB / 413.3 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.6658, allocations: 0 / 413.3 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006023/0.6665, allocations: 58.62 kB / 413.3 MB, free: 6.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00147/0.668, allocations: 307.2 kB / 413.6 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.77e-05/0.668, allocations: 7.875 kB / 413.6 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008063/0.6761, allocations: 3.513 MB / 417.1 MB, free: 2.691 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.295e-06/0.6762, allocations: 3.938 kB / 417.1 MB, free: 2.688 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.6795, allocations: 1.221 MB / 418.4 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000512/0.68, allocations: 228.2 kB / 418.6 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.6802, allocations: 12 kB / 418.6 MB, free: 1.195 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007827/0.681, allocations: 23.97 kB / 418.6 MB, free: 1.172 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003219/0.6814, allocations: 88.59 kB / 418.7 MB, free: 1.086 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.437e-05/0.6815, allocations: 20 kB / 418.7 MB, free: 1.066 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006393/0.6821, allocations: 323 kB / 419 MB, free: 0.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6821, allocations: 0 / 419 MB, free: 0.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002075/0.6842, allocations: 406.8 kB / 419.4 MB, free: 360 kB / 314.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.003804/0.688, allocations: 1.801 MB / 421.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004636/0.6927, allocations: 1.661 MB / 422.9 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6927, allocations: 0 / 422.9 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.6946, allocations: 0.6182 MB / 423.5 MB, free: 12.19 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.6957, allocations: 109.9 kB / 423.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006704/0.7024, allocations: 1.238 MB / 424.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/0.7038, allocations: 1.016 MB / 425.9 MB, free: 9.762 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001027/0.7049, allocations: 81.56 kB / 426 MB, free: 9.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008052/0.7057, allocations: 279.3 kB / 426.2 MB, free: 9.406 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.7057, allocations: 0 / 426.2 MB, free: 9.406 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1586/0.8643, allocations: 20.73 MB / 447 MB, free: 4.73 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000383/0.8648, allocations: 171 kB / 447.1 MB, free: 4.531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.858/4.723, allocations: 0 / 447.1 MB, free: 4.531 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat