Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",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.876/1.876, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2523/2.128, allocations: 46.84 MB / 249.4 MB, free: 5.309 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09522/2.223, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3023/2.526, allocations: 76.89 MB / 370.8 MB, free: 7.027 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/2.526, allocations: 85.53 kB / 370.9 MB, free: 7.027 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.03314/2.559, allocations: 6.968 MB / 377.9 MB, free: 5.754 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/2.559, allocations: 15.19 kB / 377.9 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002602/2.56, allocations: 54.41 kB / 377.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008712/2.56, allocations: 346.7 kB / 378.3 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/2.561, allocations: 15.53 kB / 378.3 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/2.561, allocations: 27.39 kB / 378.3 MB, free: 5.445 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008768/2.562, allocations: 233.5 kB / 378.5 MB, free: 5.441 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009884/2.563, allocations: 355.7 kB / 378.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/2.563, allocations: 3.984 kB / 378.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.147e-05/2.563, allocations: 3.938 kB / 378.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/2.563, allocations: 11.81 kB / 378.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003874/2.567, allocations: 1.501 MB / 380.4 MB, free: 4.324 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/2.567, allocations: 214.7 kB / 380.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/2.568, allocations: 142.5 kB / 380.8 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/2.568, allocations: 3.969 kB / 380.8 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004716/2.568, allocations: 186.8 kB / 380.9 MB, free: 4.168 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 4.048e-06/2.568, allocations: 0 / 380.9 MB, free: 4.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009157/2.569, allocations: 271.7 kB / 381.2 MB, free: 4.086 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/2.569, allocations: 139.8 kB / 381.3 MB, free: 3.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004848/2.57, allocations: 244.5 kB / 381.6 MB, free: 19.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.126e-05/2.57, allocations: 29.55 kB / 381.6 MB, free: 19.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/2.57, allocations: 206.4 kB / 381.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/2.57, allocations: 95.34 kB / 381.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/2.57, allocations: 0 / 381.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/2.57, allocations: 340 kB / 382.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/2.571, allocations: 82.12 kB / 382.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/2.571, allocations: 212.6 kB / 382.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/2.571, allocations: 103.4 kB / 382.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/2.571, allocations: 0 / 382.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001083/2.573, allocations: 352.8 kB / 383 MB, free: 18.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005486/2.573, allocations: 1.392 MB / 384.4 MB, free: 17.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/2.573, allocations: 7.531 kB / 384.4 MB, free: 17.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/2.574, allocations: 89.45 kB / 384.5 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/2.574, allocations: 58 kB / 384.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/2.577, allocations: 1.6 MB / 386.1 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008003/2.578, allocations: 54.91 kB / 386.2 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.535e-05/2.578, allocations: 19.12 kB / 386.2 MB, free: 16.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/2.578, allocations: 3.938 kB / 386.2 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009036/2.579, allocations: 284.5 kB / 386.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/2.579, allocations: 3.719 kB / 386.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000438/2.579, allocations: 83.72 kB / 386.6 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003991/2.58, allocations: 50.14 kB / 386.6 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/2.583, allocations: 1.727 MB / 388.3 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006796/2.584, allocations: 35.02 kB / 388.4 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/2.584, allocations: 18.59 kB / 388.4 MB, free: 14.63 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.000253/2.584, allocations: 134.6 kB / 388.5 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/2.584, allocations: 34.69 kB / 388.6 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/2.584, allocations: 36.56 kB / 388.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/2.584, allocations: 3.875 kB / 388.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/2.584, allocations: 0 / 388.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/2.584, allocations: 7.812 kB / 388.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/2.586, allocations: 0.8543 MB / 389.5 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/2.586, allocations: 0 / 389.5 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/2.587, allocations: 23.3 kB / 389.5 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004139/2.587, allocations: 72.55 kB / 389.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.794e-05/2.587, allocations: 7.922 kB / 389.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/2.589, allocations: 1.561 MB / 391.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/2.59, allocations: 0 / 391.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001259/2.591, allocations: 0.4995 MB / 391.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001651/2.593, allocations: 0.9937 MB / 392.6 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/2.593, allocations: 141.4 kB / 392.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/2.593, allocations: 3.312 kB / 392.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006006/2.594, allocations: 31.59 kB / 392.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/2.594, allocations: 30.64 kB / 392.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/2.594, allocations: 11.77 kB / 392.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003263/2.594, allocations: 185.6 kB / 393 MB, free: 11.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003335/2.598, allocations: 184.1 kB / 393.2 MB, free: 11.59 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.0003294/2.598, allocations: 125.6 kB / 393.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001958/2.6, allocations: 0.6819 MB / 394 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/2.6, allocations: 0 / 394 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006366/2.601, allocations: 240.7 kB / 394.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006726/2.601, allocations: 50.98 kB / 394.3 MB, free: 11.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/2.604, allocations: 0.5133 MB / 394.8 MB, free: 10.78 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006664/2.604, allocations: 0.8553 MB / 395.6 MB, free: 10 MB / 314.7 MB Notification: Performance of SimCode: time 1.754e-06/2.604, allocations: 0 / 395.6 MB, free: 10 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_R_res.mat does not exist to compare? outputFormat=mat