Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",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.645/1.645, allocations: 194.9 MB / 202.5 MB, free: 6.914 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2248/1.87, allocations: 46.85 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/1.961, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2866/2.248, allocations: 76.89 MB / 370.7 MB, free: 7.125 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/2.248, allocations: 85.73 kB / 370.8 MB, free: 7.125 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0307/2.279, allocations: 6.965 MB / 377.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/2.279, allocations: 11.72 kB / 377.8 MB, free: 5.863 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002551/2.279, allocations: 54.66 kB / 377.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008381/2.28, allocations: 349.7 kB / 378.2 MB, free: 5.562 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/2.28, allocations: 15.53 kB / 378.2 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/2.28, allocations: 27.23 kB / 378.2 MB, free: 5.555 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008157/2.281, allocations: 233.6 kB / 378.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009621/2.282, allocations: 357.3 kB / 378.8 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/2.282, allocations: 0 / 378.8 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/2.282, allocations: 7.969 kB / 378.8 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/2.282, allocations: 11.62 kB / 378.8 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003625/2.286, allocations: 1.501 MB / 380.3 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/2.287, allocations: 213.6 kB / 380.6 MB, free: 4.398 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004389/2.287, allocations: 142.6 kB / 380.7 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.468e-05/2.287, allocations: 0 / 380.7 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/2.288, allocations: 194.5 kB / 380.9 MB, free: 4.273 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 2.444e-06/2.288, allocations: 0 / 380.9 MB, free: 4.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008423/2.288, allocations: 269.2 kB / 381.1 MB, free: 4.195 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.711e-05/2.289, allocations: 138.8 kB / 381.3 MB, free: 4.035 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004117/2.289, allocations: 248.6 kB / 381.5 MB, free: 3.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/2.289, allocations: 37.17 kB / 381.6 MB, free: 19.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/2.289, allocations: 192.3 kB / 381.7 MB, free: 19.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/2.289, allocations: 96.31 kB / 381.8 MB, free: 19.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/2.289, allocations: 0 / 381.8 MB, free: 19.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/2.29, allocations: 340.6 kB / 382.2 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/2.29, allocations: 83.06 kB / 382.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/2.29, allocations: 207.1 kB / 382.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/2.291, allocations: 105.1 kB / 382.6 MB, free: 19.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/2.291, allocations: 0 / 382.6 MB, free: 19.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009664/2.292, allocations: 356.3 kB / 382.9 MB, free: 19.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005901/2.292, allocations: 1.394 MB / 384.3 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/2.292, allocations: 7.688 kB / 384.3 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005615/2.293, allocations: 83 kB / 384.4 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/2.293, allocations: 61.19 kB / 384.4 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002657/2.296, allocations: 1.596 MB / 386 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007274/2.297, allocations: 58.94 kB / 386.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.916e-05/2.297, allocations: 15.62 kB / 386.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/2.297, allocations: 3.719 kB / 386.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008126/2.298, allocations: 292.6 kB / 386.4 MB, free: 16.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/2.298, allocations: 3.75 kB / 386.4 MB, free: 16.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004051/2.298, allocations: 79.31 kB / 386.5 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/2.298, allocations: 50.64 kB / 386.5 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002642/2.301, allocations: 1.724 MB / 388.3 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006468/2.302, allocations: 35.77 kB / 388.3 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/2.302, allocations: 18.56 kB / 388.3 MB, free: 14.74 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 21 ($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,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.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 (39): * Single equations (assignments): 37 * 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 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002465/2.302, allocations: 130.6 kB / 388.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/2.302, allocations: 38.97 kB / 388.5 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/2.302, allocations: 39.66 kB / 388.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/2.302, allocations: 3.875 kB / 388.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/2.302, allocations: 0 / 388.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/2.303, allocations: 3.844 kB / 388.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001812/2.304, allocations: 0.8511 MB / 389.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/2.304, allocations: 0 / 389.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/2.305, allocations: 30.33 kB / 389.4 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003735/2.305, allocations: 68.8 kB / 389.5 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.946e-05/2.305, allocations: 11.2 kB / 389.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/2.307, allocations: 1.558 MB / 391 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/2.307, allocations: 0 / 391 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001134/2.309, allocations: 0.5034 MB / 391.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001547/2.31, allocations: 0.9884 MB / 392.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/2.311, allocations: 139.6 kB / 392.7 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-05/2.311, allocations: 0 / 392.7 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005505/2.311, allocations: 31.47 kB / 392.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/2.311, allocations: 29.3 kB / 392.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.774e-05/2.311, allocations: 15.39 kB / 392.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002936/2.312, allocations: 187.6 kB / 392.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002957/2.315, allocations: 183 kB / 393.1 MB, free: 11.7 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.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 (26): * Single equations (assignments): 19 * 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 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003016/2.315, allocations: 122.1 kB / 393.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001782/2.317, allocations: 0.6778 MB / 393.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/2.317, allocations: 0 / 393.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000597/2.318, allocations: 245.7 kB / 394.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/2.318, allocations: 54.56 kB / 394.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/2.32, allocations: 0.5132 MB / 394.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006556/2.321, allocations: 0.8595 MB / 395.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of SimCode: time 1.723e-06/2.321, allocations: 0 / 395.6 MB, free: 10.11 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat