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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2604/2.082, allocations: 46.85 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/2.185, allocations: 44.5 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3143/2.499, allocations: 79.05 MB / 373 MB, free: 7.051 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003375/2.499, allocations: 79.83 kB / 373.1 MB, free: 7.051 MB / 298.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.06384/2.563, allocations: 15.5 MB / 388.6 MB, free: 1.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/2.563, allocations: 7.625 kB / 388.6 MB, free: 1.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/2.564, allocations: 116.5 kB / 388.7 MB, free: 1.781 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/2.565, allocations: 0.6274 MB / 389.3 MB, free: 1.414 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/2.565, allocations: 30.97 kB / 389.3 MB, free: 1.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/2.565, allocations: 53.69 kB / 389.4 MB, free: 1.406 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002212/2.568, allocations: 0.6188 MB / 390 MB, free: 1.383 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/2.57, allocations: 0.7864 MB / 390.8 MB, free: 1.125 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.284e-05/2.57, allocations: 7.375 kB / 390.8 MB, free: 1.121 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/2.57, allocations: 3.984 kB / 390.8 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/2.57, allocations: 23.38 kB / 390.8 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008149/2.578, allocations: 3.52 MB / 394.3 MB, free: 15.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/2.58, allocations: 0.6375 MB / 395 MB, free: 15.08 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001291/2.582, allocations: 414.3 kB / 395.4 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.004e-05/2.582, allocations: 8.5 kB / 395.4 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/2.583, allocations: 391.4 kB / 395.8 MB, free: 14.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 3.737e-06/2.583, allocations: 0 / 395.8 MB, free: 14.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.002903/2.586, allocations: 0.7605 MB / 396.5 MB, free: 14.78 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/2.586, allocations: 123.6 kB / 396.7 MB, free: 14.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/2.587, allocations: 429.7 kB / 397.1 MB, free: 14.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000182/2.587, allocations: 35.98 kB / 397.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003396/2.588, allocations: 299.4 kB / 397.4 MB, free: 14.24 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003325/2.588, allocations: 229 kB / 397.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.549e-05/2.588, allocations: 0 / 397.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002151/2.588, allocations: 377.9 kB / 398 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008004/2.589, allocations: 227.8 kB / 398.2 MB, free: 13.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009214/2.59, allocations: 361.7 kB / 398.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007935/2.591, allocations: 239.6 kB / 398.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/2.591, allocations: 0.875 kB / 398.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002627/2.594, allocations: 0.7836 MB / 399.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005761/2.594, allocations: 1.311 MB / 400.9 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/2.594, allocations: 2.75 kB / 400.9 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001726/2.596, allocations: 309 kB / 401.2 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009236/2.597, allocations: 101 kB / 401.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008492/2.605, allocations: 3.188 MB / 404.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/2.607, allocations: 75.28 kB / 404.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/2.607, allocations: 29.64 kB / 404.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/2.607, allocations: 3.375 kB / 404.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002333/2.609, allocations: 0.6882 MB / 405.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/2.609, allocations: 3.219 kB / 405.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/2.611, allocations: 309.5 kB / 405.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008094/2.612, allocations: 89.27 kB / 405.7 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008463/2.62, allocations: 3.185 MB / 408.9 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/2.621, allocations: 57.11 kB / 408.9 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.801e-05/2.621, allocations: 26.81 kB / 409 MB, free: 8.676 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.0003573/2.622, allocations: 136.5 kB / 409.1 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/2.622, allocations: 69.41 kB / 409.2 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/2.622, allocations: 72.5 kB / 409.2 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/2.622, allocations: 15.52 kB / 409.2 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/2.622, allocations: 4 kB / 409.2 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/2.622, allocations: 5.234 kB / 409.2 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005387/2.628, allocations: 1.709 MB / 411 MB, free: 7.789 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/2.628, allocations: 5.062 kB / 411 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008437/2.629, allocations: 65.95 kB / 411 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001738/2.631, allocations: 301.8 kB / 411.3 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-05/2.631, allocations: 2.062 kB / 411.3 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009099/2.64, allocations: 3.181 MB / 414.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.838e-06/2.64, allocations: 7.891 kB / 414.5 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003799/2.644, allocations: 1.201 MB / 415.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005269/2.649, allocations: 1.96 MB / 417.7 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/2.65, allocations: 236 kB / 417.9 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/2.65, allocations: 4 kB / 417.9 MB, free: 1.555 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009395/2.651, allocations: 32.03 kB / 417.9 MB, free: 1.523 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/2.651, allocations: 72.55 kB / 418 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.228e-05/2.651, allocations: 16 kB / 418 MB, free: 1.438 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0007395/2.652, allocations: 319 kB / 418.3 MB, free: 1.129 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004042/2.656, allocations: 398.8 kB / 418.7 MB, free: 0.7383 MB / 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.0003178/2.656, allocations: 134.3 kB / 418.9 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004951/2.661, allocations: 1.439 MB / 420.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/2.661, allocations: 0.875 kB / 420.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/2.663, allocations: 0.5381 MB / 420.8 MB, free: 14.58 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/2.664, allocations: 109.9 kB / 420.9 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005842/2.67, allocations: 1.168 MB / 422.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/2.672, allocations: 1.038 MB / 423.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of SimCode: time 1.523e-06/2.672, allocations: 0 / 423.1 MB, free: 12.21 MB / 330.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