Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",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.727/1.727, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2371/1.964, allocations: 46.84 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/2.055, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2899/2.345, allocations: 77.19 MB / 371.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/2.345, allocations: 79.28 kB / 371.1 MB, free: 7.117 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.02987/2.375, allocations: 7.324 MB / 378.5 MB, free: 5.645 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/2.375, allocations: 11.62 kB / 378.5 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/2.376, allocations: 54.69 kB / 378.5 MB, free: 5.617 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006639/2.376, allocations: 359 kB / 378.9 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/2.376, allocations: 19.5 kB / 378.9 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/2.376, allocations: 27.34 kB / 378.9 MB, free: 5.332 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007823/2.377, allocations: 248.1 kB / 379.2 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008799/2.378, allocations: 376.3 kB / 379.5 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/2.378, allocations: 0 / 379.5 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.152e-05/2.378, allocations: 0 / 379.5 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/2.378, allocations: 11.66 kB / 379.5 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003333/2.382, allocations: 1.574 MB / 381.1 MB, free: 4.152 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006216/2.382, allocations: 237.2 kB / 381.3 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004079/2.383, allocations: 144.8 kB / 381.5 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/2.383, allocations: 3.781 kB / 381.5 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004045/2.383, allocations: 194.8 kB / 381.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.516e-06/2.383, allocations: 3.984 kB / 381.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008032/2.384, allocations: 273.8 kB / 382 MB, free: 3.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/2.384, allocations: 143.5 kB / 382.1 MB, free: 3.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004804/2.385, allocations: 244.5 kB / 382.3 MB, free: 19.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.696e-05/2.385, allocations: 33.56 kB / 382.4 MB, free: 19.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/2.385, allocations: 199.5 kB / 382.6 MB, free: 19.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.859e-05/2.385, allocations: 104 kB / 382.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.82e-05/2.385, allocations: 4.031 kB / 382.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/2.385, allocations: 340.8 kB / 383 MB, free: 19.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/2.385, allocations: 86.53 kB / 383.1 MB, free: 19.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/2.386, allocations: 215.2 kB / 383.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00029/2.386, allocations: 110.9 kB / 383.4 MB, free: 18.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/2.386, allocations: 0 / 383.4 MB, free: 18.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009045/2.387, allocations: 364.5 kB / 383.8 MB, free: 18.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005752/2.388, allocations: 1.39 MB / 385.1 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/2.388, allocations: 3.844 kB / 385.1 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004489/2.388, allocations: 83.42 kB / 385.2 MB, free: 17.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004956/2.389, allocations: 65.41 kB / 385.3 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/2.391, allocations: 1.647 MB / 386.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006954/2.392, allocations: 58.38 kB / 387 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/2.392, allocations: 19.19 kB / 387 MB, free: 15.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/2.392, allocations: 7.781 kB / 387 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007795/2.393, allocations: 296.3 kB / 387.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/2.393, allocations: 4.438 kB / 387.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003344/2.393, allocations: 73.11 kB / 387.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/2.393, allocations: 57.97 kB / 387.4 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/2.396, allocations: 1.654 MB / 389.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005909/2.396, allocations: 39.05 kB / 389.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/2.396, allocations: 21.44 kB / 389.2 MB, free: 14.37 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 (43): * Single equations (assignments): 41 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002513/2.396, allocations: 138.8 kB / 389.3 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.859e-05/2.397, allocations: 38.31 kB / 389.3 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/2.397, allocations: 35.58 kB / 389.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/2.397, allocations: 3.844 kB / 389.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/2.397, allocations: 0 / 389.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/2.397, allocations: 0 / 389.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/2.398, allocations: 0.8684 MB / 390.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/2.398, allocations: 0 / 390.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/2.399, allocations: 42.08 kB / 390.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003147/2.399, allocations: 60.11 kB / 390.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/2.399, allocations: 11.11 kB / 390.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/2.401, allocations: 1.5 MB / 391.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/2.401, allocations: 4.062 kB / 391.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001104/2.402, allocations: 0.5075 MB / 392.4 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00143/2.404, allocations: 1.011 MB / 393.4 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/2.404, allocations: 141.5 kB / 393.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.529e-05/2.404, allocations: 7.891 kB / 393.5 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00055/2.405, allocations: 27.48 kB / 393.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/2.405, allocations: 37.66 kB / 393.6 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.55e-05/2.405, allocations: 11.41 kB / 393.6 MB, free: 11.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002812/2.405, allocations: 190.6 kB / 393.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002933/2.408, allocations: 182.6 kB / 394 MB, free: 11.32 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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 (29): * Single equations (assignments): 22 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002587/2.408, allocations: 126.5 kB / 394.1 MB, free: 11.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001585/2.41, allocations: 0.6954 MB / 394.8 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/2.41, allocations: 0.75 kB / 394.8 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004638/2.411, allocations: 237.8 kB / 395 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000547/2.411, allocations: 41.09 kB / 395.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/2.413, allocations: 0.5798 MB / 395.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006461/2.414, allocations: 0.8615 MB / 396.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/2.414, allocations: 0 / 396.5 MB, free: 9.676 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_RL_res.mat does not exist to compare? outputFormat=mat