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.115/2.115, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.188e-05, allocations: 2.75 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 44.51 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4613/0.5724, allocations: 77.26 MB / 371.6 MB, free: 7.211 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003543/0.5728, allocations: 85.17 kB / 371.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02979/0.6026, allocations: 6.805 MB / 378.5 MB, free: 21.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6026, allocations: 4 kB / 378.5 MB, free: 21.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.319e-05/0.6027, allocations: 15.62 kB / 378.5 MB, free: 21.93 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.001653/0.6043, allocations: 0.6961 MB / 379.2 MB, free: 21.37 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.6044, allocations: 7.75 kB / 379.2 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.6046, allocations: 58.52 kB / 379.2 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006732/0.6053, allocations: 356.6 kB / 379.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.6053, allocations: 11.19 kB / 379.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.988e-05/0.6054, allocations: 31.02 kB / 379.6 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007514/0.6062, allocations: 251.3 kB / 379.9 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009186/0.6071, allocations: 371.7 kB / 380.2 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.6072, allocations: 3.938 kB / 380.2 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.6072, allocations: 0 / 380.2 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.6073, allocations: 19.56 kB / 380.3 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003272/0.6105, allocations: 1.573 MB / 381.8 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008484/0.6114, allocations: 269.5 kB / 382.1 MB, free: 19.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004205/0.6119, allocations: 149.1 kB / 382.2 MB, free: 19.81 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.6119, allocations: 7.969 kB / 382.3 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004839/0.6124, allocations: 215.8 kB / 382.5 MB, free: 19.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.447e-06/0.6124, allocations: 0 / 382.5 MB, free: 19.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008377/0.6133, allocations: 300.7 kB / 382.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.6134, allocations: 136.2 kB / 382.9 MB, free: 19.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.6137, allocations: 248.2 kB / 383.1 MB, free: 19.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.6138, allocations: 33.45 kB / 383.2 MB, free: 19.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.614, allocations: 227.9 kB / 383.4 MB, free: 19.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.854e-05/0.6141, allocations: 98.64 kB / 383.5 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.114e-05/0.6142, allocations: 0 / 383.5 MB, free: 19.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.6143, allocations: 343.5 kB / 383.8 MB, free: 18.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.6146, allocations: 94.44 kB / 383.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.615, allocations: 206.1 kB / 384.1 MB, free: 18.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.6153, allocations: 113.6 kB / 384.2 MB, free: 18.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.6153, allocations: 3.969 kB / 384.2 MB, free: 18.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009379/0.6162, allocations: 358.1 kB / 384.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006492/0.6169, allocations: 1.432 MB / 386 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.6169, allocations: 7.812 kB / 386 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004387/0.6174, allocations: 81.67 kB / 386.1 MB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/0.6179, allocations: 65.84 kB / 386.2 MB, free: 16.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002446/0.6203, allocations: 1.692 MB / 387.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006526/0.621, allocations: 54.38 kB / 387.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.742e-05/0.6211, allocations: 21.34 kB / 387.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.086e-06/0.6211, allocations: 0 / 387.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00101/0.6221, allocations: 317.3 kB / 388.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.6221, allocations: 3.906 kB / 388.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003477/0.6225, allocations: 79 kB / 388.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.6229, allocations: 54.67 kB / 388.4 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.6253, allocations: 1.695 MB / 390.1 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005517/0.6259, allocations: 42.97 kB / 390.1 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.6259, allocations: 15.38 kB / 390.1 MB, free: 14.03 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.0002255/0.6262, allocations: 134.5 kB / 390.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007401/0.6269, allocations: 293.9 kB / 390.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.453e-05/0.627, allocations: 38.66 kB / 390.6 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.6271, allocations: 37.2 kB / 390.6 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.6272, allocations: 7.797 kB / 390.6 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.6272, allocations: 0 / 390.6 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.6272, allocations: 3.984 kB / 390.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.629, allocations: 0.8784 MB / 391.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.629, allocations: 0 / 391.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003549/0.6294, allocations: 38.67 kB / 391.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003156/0.6297, allocations: 65.81 kB / 391.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.655e-05/0.6297, allocations: 11.95 kB / 391.6 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00211/0.6319, allocations: 1.62 MB / 393.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.6319, allocations: 7.875 kB / 393.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.633, allocations: 0.5287 MB / 393.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.6332, allocations: 141 kB / 393.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.666e-05/0.6334, allocations: 7.969 kB / 393.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.6339, allocations: 23.41 kB / 393.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.634, allocations: 34.02 kB / 394 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.6341, allocations: 15.61 kB / 394 MB, free: 11.51 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002887/0.6344, allocations: 187.9 kB / 394.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6344, allocations: 0 / 394.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001279/0.6357, allocations: 196.6 kB / 394.4 MB, free: 11.38 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.001615/0.6373, allocations: 1.161 MB / 395.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.639, allocations: 0.7778 MB / 396.3 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.6391, allocations: 4.281 kB / 396.3 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005112/0.6396, allocations: 263.2 kB / 396.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005965/0.6402, allocations: 42.69 kB / 396.6 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.6425, allocations: 0.6371 MB / 397.2 MB, free: 9.629 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005365/0.6431, allocations: 0.8274 MB / 398.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004187/0.6435, allocations: 57.16 kB / 398.1 MB, free: 8.836 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.6438, allocations: 130.4 kB / 398.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6438, allocations: 0 / 398.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06923/0.713, allocations: 8.381 MB / 406.6 MB, free: 4.82 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003663/0.7134, allocations: 191.6 kB / 406.8 MB, free: 4.625 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.192/3.906, allocations: 0 / 406.8 MB, free: 4.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