Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_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.894/1.894, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.245/2.139, allocations: 46.84 MB / 249.4 MB, free: 5.309 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/2.242, allocations: 44.5 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3175/2.559, allocations: 77.19 MB / 371.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/2.56, allocations: 83.28 kB / 371.2 MB, free: 7.098 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.03444/2.594, allocations: 7.326 MB / 378.5 MB, free: 5.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/2.594, allocations: 11.53 kB / 378.5 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002646/2.594, allocations: 54.44 kB / 378.6 MB, free: 5.574 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008671/2.595, allocations: 358.5 kB / 378.9 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/2.595, allocations: 15.62 kB / 379 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/2.595, allocations: 25.75 kB / 379 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008971/2.596, allocations: 248.3 kB / 379.2 MB, free: 5.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009976/2.597, allocations: 377.9 kB / 379.6 MB, free: 5.145 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/2.597, allocations: 3.75 kB / 379.6 MB, free: 5.145 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-05/2.597, allocations: 3.984 kB / 379.6 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/2.597, allocations: 11.84 kB / 379.6 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00399/2.601, allocations: 1.571 MB / 381.2 MB, free: 4.113 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007354/2.602, allocations: 240.2 kB / 381.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004979/2.603, allocations: 138 kB / 381.6 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.892e-05/2.603, allocations: 3.906 kB / 381.6 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004658/2.603, allocations: 200.6 kB / 381.8 MB, free: 3.953 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.456e-06/2.603, allocations: 0 / 381.8 MB, free: 3.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009243/2.604, allocations: 274.1 kB / 382 MB, free: 3.871 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/2.604, allocations: 147.9 kB / 382.2 MB, free: 3.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004983/2.605, allocations: 242.3 kB / 382.4 MB, free: 19.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.086e-05/2.605, allocations: 33.45 kB / 382.4 MB, free: 19.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/2.605, allocations: 200.2 kB / 382.6 MB, free: 19.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/2.605, allocations: 102.6 kB / 382.7 MB, free: 19.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/2.605, allocations: 0 / 382.7 MB, free: 19.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/2.606, allocations: 344.2 kB / 383.1 MB, free: 19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/2.606, allocations: 85.41 kB / 383.1 MB, free: 18.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/2.606, allocations: 216.4 kB / 383.4 MB, free: 18.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/2.607, allocations: 111 kB / 383.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/2.607, allocations: 0 / 383.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001064/2.608, allocations: 360.9 kB / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006476/2.608, allocations: 1.389 MB / 385.2 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/2.608, allocations: 3.75 kB / 385.2 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005221/2.609, allocations: 83.91 kB / 385.3 MB, free: 17.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005728/2.609, allocations: 68.84 kB / 385.4 MB, free: 17.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/2.612, allocations: 1.648 MB / 387 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000801/2.613, allocations: 54.78 kB / 387.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/2.613, allocations: 19.19 kB / 387.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/2.613, allocations: 7.875 kB / 387.1 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008781/2.614, allocations: 294 kB / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/2.614, allocations: 7.938 kB / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004204/2.615, allocations: 71.05 kB / 387.5 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/2.615, allocations: 69.62 kB / 387.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/2.618, allocations: 1.64 MB / 389.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006886/2.618, allocations: 43.22 kB / 389.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/2.618, allocations: 19.53 kB / 389.2 MB, free: 14.33 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.0002645/2.619, allocations: 134.2 kB / 389.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/2.619, allocations: 34.98 kB / 389.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/2.619, allocations: 33.12 kB / 389.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/2.619, allocations: 3.906 kB / 389.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/2.619, allocations: 11.86 kB / 389.4 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/2.619, allocations: 0 / 389.4 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/2.621, allocations: 0.8628 MB / 390.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/2.621, allocations: 3.844 kB / 390.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003992/2.621, allocations: 42.36 kB / 390.3 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003634/2.622, allocations: 65.73 kB / 390.4 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/2.622, allocations: 7.859 kB / 390.4 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/2.624, allocations: 1.496 MB / 391.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/2.624, allocations: 7.875 kB / 391.9 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001263/2.626, allocations: 0.509 MB / 392.4 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001729/2.627, allocations: 1.008 MB / 393.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003104/2.628, allocations: 144.1 kB / 393.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/2.628, allocations: 7.906 kB / 393.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/2.628, allocations: 27.38 kB / 393.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/2.629, allocations: 41.12 kB / 393.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/2.629, allocations: 14.89 kB / 393.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003256/2.629, allocations: 183.7 kB / 393.8 MB, free: 11.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003308/2.632, allocations: 189.3 kB / 394 MB, free: 11.28 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.0003317/2.633, allocations: 125 kB / 394.2 MB, free: 11.17 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/2.635, allocations: 0.6973 MB / 394.8 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/2.635, allocations: 1.875 kB / 394.9 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005908/2.635, allocations: 234.4 kB / 395.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006537/2.636, allocations: 43.48 kB / 395.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/2.638, allocations: 0.5804 MB / 395.7 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006997/2.639, allocations: 0.8591 MB / 396.6 MB, free: 9.625 MB / 314.7 MB Notification: Performance of SimCode: time 1.253e-06/2.639, allocations: 0 / 396.6 MB, free: 9.625 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat