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"}) Notification: Performance of loadModel(Modelica): time 2.715/2.715, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.059e-05, allocations: 3.312 kB / 249.8 MB, free: 5.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1146, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5122/0.6269, allocations: 77.27 MB / 371.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004343/0.6274, allocations: 86.14 kB / 371.6 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04519/0.6726, allocations: 6.844 MB / 378.5 MB, free: 21.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.377e-06/0.6727, allocations: 0 / 378.5 MB, free: 21.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.264e-05/0.6728, allocations: 16.83 kB / 378.5 MB, free: 21.65 MB / 314.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.003073/0.6758, allocations: 0.6962 MB / 379.2 MB, free: 21.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.572e-05/0.676, allocations: 11.61 kB / 379.2 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002621/0.6762, allocations: 60.03 kB / 379.3 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.6766, allocations: 54.64 kB / 379.3 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.6779, allocations: 372.7 kB / 379.7 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.606e-05/0.678, allocations: 20.78 kB / 379.7 MB, free: 20.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.6782, allocations: 27.06 kB / 379.7 MB, free: 20.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001391/0.6796, allocations: 251.6 kB / 380 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.6813, allocations: 373.2 kB / 380.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.198e-05/0.6814, allocations: 0 / 380.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.6815, allocations: 0 / 380.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.6815, allocations: 19.67 kB / 380.4 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006177/0.6877, allocations: 1.572 MB / 381.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.6892, allocations: 265.4 kB / 382.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005384/0.6898, allocations: 142.5 kB / 382.3 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.6899, allocations: 3.844 kB / 382.3 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006391/0.6905, allocations: 214.6 kB / 382.5 MB, free: 19.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.168e-06/0.6905, allocations: 7.875 kB / 382.5 MB, free: 19.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.001146/0.6917, allocations: 291.7 kB / 382.8 MB, free: 19.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.6919, allocations: 136.1 kB / 383 MB, free: 19.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.6924, allocations: 251.3 kB / 383.2 MB, free: 19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.6925, allocations: 32.89 kB / 383.2 MB, free: 18.97 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/0.6928, allocations: 232 kB / 383.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.6929, allocations: 99.3 kB / 383.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.693, allocations: 4.031 kB / 383.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.6932, allocations: 344.3 kB / 383.9 MB, free: 18.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000328/0.6935, allocations: 84.16 kB / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/0.6939, allocations: 213.2 kB / 384.2 MB, free: 18.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.6943, allocations: 112.4 kB / 384.3 MB, free: 18.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.6943, allocations: 0 / 384.3 MB, free: 18.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001217/0.6956, allocations: 369.6 kB / 384.7 MB, free: 18.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009705/0.6966, allocations: 1.42 MB / 386.1 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.6966, allocations: 3.875 kB / 386.1 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007791/0.6974, allocations: 80.77 kB / 386.2 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006684/0.6981, allocations: 73.53 kB / 386.2 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003018/0.7011, allocations: 1.689 MB / 387.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000847/0.702, allocations: 66.8 kB / 388 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.909e-05/0.7021, allocations: 15.47 kB / 388 MB, free: 15.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.7021, allocations: 3.844 kB / 388 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001025/0.7032, allocations: 312 kB / 388.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.7032, allocations: 7.906 kB / 388.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004464/0.7037, allocations: 66.11 kB / 388.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.7042, allocations: 61.5 kB / 388.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.7071, allocations: 1.692 MB / 390.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007609/0.7079, allocations: 42.98 kB / 390.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.713e-05/0.708, allocations: 15.34 kB / 390.2 MB, free: 13.7 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.0002886/0.7083, allocations: 122.8 kB / 390.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.7084, allocations: 42.89 kB / 390.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.7086, allocations: 37.36 kB / 390.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.7086, allocations: 3.938 kB / 390.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.7087, allocations: 4.375 kB / 390.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.7087, allocations: 3.953 kB / 390.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002416/0.7111, allocations: 0.8844 MB / 391.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.7112, allocations: 0 / 391.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004959/0.7117, allocations: 43.3 kB / 391.3 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004111/0.7121, allocations: 72.66 kB / 391.4 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.736e-05/0.7122, allocations: 0 / 391.4 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002721/0.7149, allocations: 1.625 MB / 393 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/0.715, allocations: 3.984 kB / 393 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.7165, allocations: 0.5184 MB / 393.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000338/0.7169, allocations: 143.1 kB / 393.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.717, allocations: 3.562 kB / 393.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006421/0.7177, allocations: 26.97 kB / 393.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.7179, allocations: 38.64 kB / 393.8 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.003e-05/0.7179, allocations: 11.45 kB / 393.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003351/0.7183, allocations: 195.1 kB / 394 MB, free: 11.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.7183, allocations: 0 / 394 MB, free: 11.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001526/0.7198, allocations: 190.9 kB / 394.1 MB, free: 11.14 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.001953/0.7218, allocations: 1.161 MB / 395.3 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.7239, allocations: 0.7886 MB / 396.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.724, allocations: 4.062 kB / 396.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006275/0.7246, allocations: 260 kB / 396.4 MB, free: 9.781 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000719/0.7254, allocations: 43.7 kB / 396.4 MB, free: 9.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.7282, allocations: 0.6321 MB / 397 MB, free: 9.391 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.7288, allocations: 0.8341 MB / 397.9 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005047/0.7294, allocations: 53.88 kB / 397.9 MB, free: 8.598 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/0.7297, allocations: 129.3 kB / 398 MB, free: 8.578 MB / 314.7 MB Notification: Performance of SimCode: time 1.432e-06/0.7297, allocations: 0 / 398 MB, free: 8.578 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07876/0.8085, allocations: 8.719 MB / 406.8 MB, free: 4.418 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003454/0.8089, allocations: 187.7 kB / 406.9 MB, free: 4.223 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.006/4.815, allocations: 3.938 kB / 406.9 MB, free: 4.219 MB / 314.7 MB "" Variables in the reference:time,inductor.i,meanCurrent.x,meanVoltage.x,meanCurrent.y,meanVoltage.y,chopperStepDown.vDC1,chopperStepDown.iDC1,chopperStepDown.vDC2,chopperStepDown.iDC2 Variables in the result:L,R,_D_whenCondition1,_D_whenCondition2,_D_whenCondition3,_D_whenCondition4,chopperStepDown.GoffDiode,chopperStepDown.GoffTransistor,chopperStepDown.LossPower,chopperStepDown.RonDiode,chopperStepDown.RonTransistor,chopperStepDown.T,chopperStepDown.T_heatPort,chopperStepDown.VkneeDiode,chopperStepDown.VkneeTransistor,chopperStepDown.andCondition_p.u1,chopperStepDown.andCondition_p.u2,chopperStepDown.andCondition_p.y,chopperStepDown.constantEnable,chopperStepDown.dc_n1.i,chopperStepDown.dc_n1.v,chopperStepDown.dc_n2.i,chopperStepDown.dc_n2.v,chopperStepDown.dc_p1.i,chopperStepDown.dc_p1.v,chopperStepDown.dc_p2.i,chopperStepDown.dc_p2.v,chopperStepDown.diode.Goff,chopperStepDown.diode.LossPower,chopperStepDown.diode.Ron,chopperStepDown.diode.T,chopperStepDown.diode.T_heatPort,chopperStepDown.diode.Vknee,chopperStepDown.diode.i,chopperStepDown.diode.n.i,chopperStepDown.diode.n.v,chopperStepDown.diode.off,chopperStepDown.diode.p.i,chopperStepDown.diode.p.v,chopperStepDown.diode.s,chopperStepDown.diode.useHeatPort,chopperStepDown.diode.v,chopperStepDown.enableLogic.booleanReplicator.nout,chopperStepDown.enableLogic.booleanReplicator.u,chopperStepDown.enableLogic.booleanReplicator.y[1],chopperStepDown.enableLogic.constantEnable,chopperStepDown.enableLogic.enableConstantSource.k,chopperStepDown.enableLogic.enableConstantSource.y,chopperStepDown.enableLogic.internalEnable[1],chopperStepDown.enableLogic.m,chopperStepDown.enableLogic.useConstantEnable,chopperStepDown.fire_p,chopperStepDown.iDC1,chopperStepDown.iDC2,chopperStepDown.m,chopperStepDown.powerDC1,chopperStepDown.powerDC2,chopperStepDown.transistor.Goff,chopperStepDown.transistor.LossPower,chopperStepDown.transistor.Ron,chopperStepDown.transistor.T,chopperStepDown.transistor.T_heatPort,chopperStepDown.transistor.Vknee,chopperStepDown.transistor.fire,chopperStepDown.transistor.i,chopperStepDown.transistor.n.i,chopperStepDown.transistor.n.v,chopperStepDown.transistor.off,chopperStepDown.transistor.p.i,chopperStepDown.transistor.p.v,chopperStepDown.transistor.s,chopperStepDown.transistor.useHeatPort,chopperStepDown.transistor.v,chopperStepDown.useConstantEnable,chopperStepDown.useHeatPort,chopperStepDown.vDC1,chopperStepDown.vDC2,constantVoltage.V,constantVoltage.i,constantVoltage.n.i,constantVoltage.n.v,constantVoltage.p.i,constantVoltage.p.v,constantVoltage.v,currentSensor.i,currentSensor.n.i,currentSensor.n.v,currentSensor.p.i,currentSensor.p.v,der(inductor.i),der(meanCurrent.x),der(meanVoltage.x),f,ground.p.i,ground.p.v,inductor.L,inductor.i,inductor.n.i,inductor.n.v,inductor.p.i,inductor.p.v,inductor.v,meanCurrent.f,meanCurrent.t0,meanCurrent.u,meanCurrent.x,meanCurrent.x0,meanCurrent.y,meanCurrent.yGreaterOrEqualZero,meanVoltage.f,meanVoltage.t0,meanVoltage.u,meanVoltage.x,meanVoltage.x0,meanVoltage.y,meanVoltage.yGreaterOrEqualZero,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.useHeatPort,resistor.v,signalPWM.const.k,signalPWM.const.y,signalPWM.constantDutyCycle,signalPWM.f,signalPWM.fire,signalPWM.greaterEqual.u1,signalPWM.greaterEqual.u2,signalPWM.greaterEqual.y,signalPWM.inverse.u,signalPWM.inverse.y,signalPWM.limiter.limitsAtInit,signalPWM.limiter.strict,signalPWM.limiter.u,signalPWM.limiter.uMax,signalPWM.limiter.uMin,signalPWM.limiter.y,signalPWM.notFire,signalPWM.sawtooth.T_start,signalPWM.sawtooth.amplitude,signalPWM.sawtooth.count,signalPWM.sawtooth.nperiod,signalPWM.sawtooth.offset,signalPWM.sawtooth.period,signalPWM.sawtooth.startTime,signalPWM.sawtooth.y,signalPWM.startTime,signalPWM.useConstantDutyCycle,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.samplePeriod,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.startTime,signalPWM.zeroOrderHold.u,signalPWM.zeroOrderHold.y,signalPWM.zeroOrderHold.ySample,time,voltageSensor.n.i,voltageSensor.n.v,voltageSensor.p.i,voltageSensor.p.v,voltageSensor.v