Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) [: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.736/1.736, allocations: 194.9 MB / 202.5 MB, free: 6.934 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2315/1.967, allocations: 46.85 MB / 249.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08907/2.056, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3029/2.359, allocations: 96.91 MB / 390.8 MB, free: 3.566 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/2.36, allocations: 87.44 kB / 390.9 MB, free: 3.551 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.2317/2.591, allocations: 42.61 MB / 433.5 MB, free: 5.766 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/2.592, allocations: 12 kB / 433.5 MB, free: 5.754 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002157/2.594, allocations: 265.2 kB / 433.7 MB, free: 5.492 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006377/2.6, allocations: 1.196 MB / 434.9 MB, free: 4.539 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002074/2.6, allocations: 52.88 kB / 435 MB, free: 4.488 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008687/2.601, allocations: 101.5 kB / 435.1 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006429/2.608, allocations: 1.075 MB / 436.2 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007966/2.616, allocations: 1.425 MB / 437.6 MB, free: 1.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001579/2.616, allocations: 7.906 kB / 437.6 MB, free: 1.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005599/2.617, allocations: 4 kB / 437.6 MB, free: 1.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.292e-05/2.617, allocations: 40 kB / 437.6 MB, free: 1.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02494/2.642, allocations: 6.645 MB / 444.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/2.644, allocations: 0.5361 MB / 444.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002601/2.647, allocations: 0.6052 MB / 445.4 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001785/2.647, allocations: 9 kB / 445.4 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002712/2.65, allocations: 0.6349 MB / 446.1 MB, free: 9.211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 7.724e-06/2.65, allocations: 0 / 446.1 MB, free: 9.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.01227/2.662, allocations: 2.457 MB / 448.5 MB, free: 6.691 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001988/2.662, allocations: 204.9 kB / 448.7 MB, free: 6.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/2.666, allocations: 0.9214 MB / 449.7 MB, free: 5.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000347/2.666, allocations: 33.7 kB / 449.7 MB, free: 5.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00119/2.668, allocations: 0.6158 MB / 450.3 MB, free: 4.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008783/2.668, allocations: 358.7 kB / 450.7 MB, free: 4.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/2.669, allocations: 0 / 450.7 MB, free: 4.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003604/2.669, allocations: 357.9 kB / 451 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/2.671, allocations: 399.9 kB / 451.4 MB, free: 3.754 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002639/2.674, allocations: 0.7935 MB / 452.2 MB, free: 2.777 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002342/2.676, allocations: 482.6 kB / 452.7 MB, free: 2.309 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.924e-05/2.676, allocations: 4 kB / 452.7 MB, free: 2.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.007077/2.683, allocations: 1.434 MB / 454.1 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003344/2.687, allocations: 4.809 MB / 458.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-05/2.687, allocations: 12 kB / 458.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/2.689, allocations: 334.3 kB / 459.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/2.692, allocations: 227.7 kB / 459.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01495/2.707, allocations: 5.506 MB / 465 MB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/2.709, allocations: 51.94 kB / 465 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003831/2.71, allocations: 64.06 kB / 465.1 MB, free: 5.148 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/2.71, allocations: 4 kB / 465.1 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004546/2.714, allocations: 1.258 MB / 466.3 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-05/2.714, allocations: 12 kB / 466.4 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/2.716, allocations: 335.7 kB / 466.7 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/2.718, allocations: 219.7 kB / 466.9 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/2.728, allocations: 5.519 MB / 472.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/2.73, allocations: 36.05 kB / 472.5 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004103/2.731, allocations: 64.3 kB / 472.5 MB, free: 13.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$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,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005994/2.731, allocations: 241 kB / 472.8 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004873/2.732, allocations: 150.2 kB / 472.9 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004431/2.736, allocations: 1.205 MB / 474.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-05/2.736, allocations: 11.91 kB / 474.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/2.736, allocations: 4 kB / 474.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.948e-05/2.736, allocations: 4.109 kB / 474.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009393/2.746, allocations: 2.715 MB / 476.8 MB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/2.746, allocations: 8.219 kB / 476.8 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/2.747, allocations: 123.8 kB / 477 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001722/2.749, allocations: 326.3 kB / 477.3 MB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002723/2.749, allocations: 12 kB / 477.3 MB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/2.759, allocations: 5.467 MB / 482.8 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/2.76, allocations: 7.844 kB / 482.8 MB, free: 2.637 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006395/2.766, allocations: 2.04 MB / 484.8 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008605/2.775, allocations: 3.036 MB / 487.8 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/2.776, allocations: 352.3 kB / 488.2 MB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005958/2.777, allocations: 23.89 kB / 488.2 MB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001718/2.779, allocations: 39.91 kB / 488.3 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004814/2.779, allocations: 92.81 kB / 488.3 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001761/2.779, allocations: 51.98 kB / 488.4 MB, free: 12.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003112/2.782, allocations: 0.6677 MB / 489.1 MB, free: 12.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006595/2.789, allocations: 0.6525 MB / 489.7 MB, free: 11.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,inductor.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,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,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001125/2.79, allocations: 356.3 kB / 490.1 MB, free: 11.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007896/2.798, allocations: 2.665 MB / 492.7 MB, free: 8.395 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/2.798, allocations: 0 / 492.7 MB, free: 8.395 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003291/2.801, allocations: 1.067 MB / 493.8 MB, free: 7.289 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/2.804, allocations: 253 kB / 494 MB, free: 7.043 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009984/2.814, allocations: 2.326 MB / 496.4 MB, free: 4.645 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002381/2.817, allocations: 1.417 MB / 497.8 MB, free: 3.203 MB / 394.7 MB Notification: Performance of SimCode: time 1.954e-06/2.817, allocations: 0 / 497.8 MB, free: 3.203 MB / 394.7 MB