Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",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.88/1.88, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2518/2.132, allocations: 46.85 MB / 249.4 MB, free: 5.305 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/2.237, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3191/2.556, allocations: 79.36 MB / 373.3 MB, free: 7.055 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/2.557, allocations: 85.75 kB / 373.4 MB, free: 7.055 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.06789/2.625, allocations: 15.85 MB / 389.2 MB, free: 1.652 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/2.625, allocations: 7.625 kB / 389.2 MB, free: 1.652 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005328/2.625, allocations: 112.8 kB / 389.3 MB, free: 1.598 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/2.627, allocations: 0.6434 MB / 390 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.288e-05/2.627, allocations: 31.09 kB / 390 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002321/2.628, allocations: 49.47 kB / 390.1 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002602/2.63, allocations: 0.6233 MB / 390.7 MB, free: 1.199 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002679/2.633, allocations: 0.8008 MB / 391.5 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.615e-05/2.633, allocations: 5.188 kB / 391.5 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/2.633, allocations: 6.547 kB / 391.5 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.754e-05/2.633, allocations: 21.53 kB / 391.5 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009465/2.643, allocations: 3.576 MB / 395.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002273/2.645, allocations: 0.6436 MB / 395.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/2.647, allocations: 436.5 kB / 396.2 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.358e-05/2.647, allocations: 12.25 kB / 396.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001284/2.648, allocations: 411.8 kB / 396.6 MB, free: 14.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 4.939e-06/2.648, allocations: 0 / 396.6 MB, free: 14.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.002564/2.651, allocations: 0.7075 MB / 397.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/2.651, allocations: 117.9 kB / 397.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/2.652, allocations: 437.6 kB / 397.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002302/2.652, allocations: 31.33 kB / 397.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/2.653, allocations: 303 kB / 398.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004505/2.653, allocations: 236.2 kB / 398.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.435e-05/2.653, allocations: 1.344 kB / 398.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002791/2.654, allocations: 375.5 kB / 398.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008588/2.654, allocations: 237.3 kB / 399 MB, free: 13.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/2.656, allocations: 371.3 kB / 399.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008847/2.656, allocations: 244.5 kB / 399.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/2.656, allocations: 0 / 399.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002908/2.659, allocations: 0.7908 MB / 400.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006621/2.66, allocations: 1.311 MB / 401.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.058e-05/2.66, allocations: 3.375 kB / 401.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00178/2.662, allocations: 280.2 kB / 402 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/2.663, allocations: 116.9 kB / 402.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008984/2.672, allocations: 4.019 MB / 406.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/2.674, allocations: 78.62 kB / 406.2 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001904/2.674, allocations: 24.41 kB / 406.2 MB, free: 8.996 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/2.674, allocations: 2.844 kB / 406.2 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002521/2.676, allocations: 0.6969 MB / 406.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.22e-05/2.677, allocations: 3.344 kB / 406.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/2.678, allocations: 283.1 kB / 407.2 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/2.679, allocations: 104.7 kB / 407.3 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00888/2.688, allocations: 4.015 MB / 411.3 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/2.689, allocations: 60.67 kB / 411.4 MB, free: 6.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001696/2.69, allocations: 31.89 kB / 411.4 MB, free: 6.094 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 (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.000406/2.69, allocations: 141.4 kB / 411.5 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003025/2.69, allocations: 69.62 kB / 411.6 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/2.691, allocations: 83.67 kB / 411.7 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/2.691, allocations: 7.562 kB / 411.7 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/2.691, allocations: 1.188 kB / 411.7 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/2.691, allocations: 3.984 kB / 411.7 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005855/2.697, allocations: 1.721 MB / 413.4 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/2.697, allocations: 1.375 kB / 413.4 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009763/2.698, allocations: 87.95 kB / 413.5 MB, free: 5.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001667/2.699, allocations: 279.7 kB / 413.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001794/2.7, allocations: 1.094 kB / 413.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009026/2.709, allocations: 4.011 MB / 417.8 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/2.709, allocations: 0 / 417.8 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004099/2.713, allocations: 1.218 MB / 419 MB, free: 296 kB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005513/2.719, allocations: 1.969 MB / 421 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/2.719, allocations: 240.2 kB / 421.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/2.72, allocations: 4 kB / 421.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/2.721, allocations: 27.97 kB / 421.2 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/2.721, allocations: 68.67 kB / 421.3 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-05/2.721, allocations: 24 kB / 421.3 MB, free: 13.92 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0008335/2.722, allocations: 319 kB / 421.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00468/2.727, allocations: 414.8 kB / 422 MB, free: 13.21 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.0004606/2.728, allocations: 126.2 kB / 422.2 MB, free: 13.08 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005597/2.733, allocations: 1.606 MB / 423.8 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/2.733, allocations: 0.875 kB / 423.8 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00212/2.735, allocations: 0.627 MB / 424.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/2.737, allocations: 110.2 kB / 424.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00625/2.743, allocations: 1.207 MB / 425.7 MB, free: 9.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001359/2.744, allocations: 1.049 MB / 426.8 MB, free: 8.355 MB / 330.7 MB Notification: Performance of SimCode: time 2.255e-06/2.744, allocations: 4 kB / 426.8 MB, free: 8.352 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_RL_res.mat does not exist to compare? outputFormat=mat